Arkadaşlar (sitem Wordpress-imzamda) Youtube playerını değiştirmek istiyorum. Bunun için CoolPlayer diye eklenti buldum fakat video açılırken biraz bekliyor. Birde elle bir çok video ekledim farklı eklentide.

Şimdi sorum http://chi-v290.chi.youtube.com/get_...klgfwWtOZM.flv bunu nasıl yapabilirim?

CoolPlayer'ın kodlarını karıştırdım şunlarla karşılaştım:
1.

http://www.youtube.com/watch_video?v=$video_id

Bu şöyle oluyor:
http://www.youtube.com/swf/l.swf?vid...rel=1&border=0

2.
http://www.youtube.com/get_video?vid...mediatype=.flv
Bunda da gerekli değişkenleri eklediğimde ise video indiriliyor.

CoolPlayer'ın kodlar:

function is_youtube_video(&$url, &$info, &$previewimage) {
if ((strpos(strtolower($url), 'http://www.youtube') === 0) ||
(strpos(strtolower($url), 'http://youtube') === 0)) {
if (preg_match('/v=([^(\&|$)]*)/', $url, $match) || 
preg_match('/video_id=([^(\&|$)]*)/', $url, $match) ||
preg_match('/youtube\.com\/v\/([^(\&|$)]*)/', $url, $match)) {
$video_id = $match[1];
$url = "http://www.youtube.com/watch_video?v=$video_id";
$content = fetchURL($url, true);
if (preg_match('/iurl=([^\&]*)\&t=([^(\r|\n)]*)/', $content, $match)) {
$previewimage = urldecode($match[1]);
$t = $match[2];
$url = "http://www.youtube.com/get_video?video_id=$video_id&t=$t&mediatype=.flv";
if (strpos($info, $video_id) !== false || $info == "watch") {
$info = "YouTube Video";
}
return true;
}
}
}
return false;
}
CoolPlayer'ın sayfadaki kaynak kodları:
<span class="coolplayer_wrapper"><span id="coolplayer_container_951320730"></span><span class="coolplayer_info" id="coolplayer_info_951320730" style="width: 478px;display: none;" ondblclick="coolplayer_input(this, '480', '380', '1', '0', 'utf-8', '');" title="Double click to input your media URL, and press enter to play it.">Loading...</span><script type="text/javascript"><!--
coolplayer('http://www.youtube.com/watch?v=_SoPALsXu3I', '951320730', '480', '380', '1', '0', 'utf-8', '');
//--></script></span>