function fv_player_time() { global $post, $fv_fp; if ($post->ID > 0 && isset($fv_fp->aCurArgs['src'])) { return flowplayer::get_duration($post->ID, $fv_fp->aCurArgs['src']); } else { return flowplayer::get_duration_post(); } }