public static function get_duration_video($content) { global $fv_fp, $post; if (!$post || !isset($fv_fp->conf['db_duration']) || $fv_fp->conf['db_duration'] != 'true') { return $content; } $aArgs = func_get_args(); if ($sDuration = flowplayer::get_duration($post->ID, $aArgs[1]->aCurArgs['src'])) { $content .= '<div class="fvfp_duration">' . $sDuration . '</div>'; } return $content; }
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(); } }