Problems about embeding youtube videos,can it be someone else?
Hi all~
I'm from China and I like Boonex dolphin very much. It's nice and cool especially in video function.
But as u know we can not visit youtube directly because of the damn gov firewall. As a result, I'm wondering that if I can use Youku (something like Youtube) as an subsititution.
I just go through the video module and find upload.js and BxVideosConfig.php. (Dolphin 7.0.7)
and I changed it like this:
var bResult = (/^http:\/\/(www.)?v.youku.com\/v_show\/id_([0-9A-Za-z_-]{13})$/.test(sText) || /^http:\/\/(www.)?v.youku.com\/v_show\/id([0-9A-Za-z_-]{14})$/.test(sText)) && $('#accepted_files_block').text() == "";
if(bResult)
if(!defined("YOUTUBE_VIDEO_PLAYER"))
define("YOUTUBE_VIDEO_PLAYER", '<object width="100%" height="344" style="display:block;"><param name="movie" value="http://static.youku.com/v/swf/loader.swf?VideoIDS=#video#&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1&autoplay=#autoplay#&iv_load_policy=3&showinfo=0"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="#wmode#"></param><embed src="http://static.youku.com/v/swf/loader.swf?VideoIDS=#video#&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1&autoplay=#autoplay#&iv_load_policy=3&showinfo=0" type="application/x-shockwave-flash" allowfullscreen="true" width="100%" height="344" wmode="#wmode#"></embed></object>');
if(!defined("YOUTUBE_VIDEO_EMBED"))
define("YOUTUBE_VIDEO_EMBED", '<object width="425" height="344" style="display:block;"><param name="movie" value="http://static.youku.com/v/swf/loader.swf?VideoIDS=#video#&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1&autoplay=#autoplay#"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="#wmode#"></param><embed src="http://static.youku.com/v/swf/loader.swf?VideoIDS=#video#&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1&autoplay=#autoplay#" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344" wmode="#wmode#"></embed></object>');
But it just didn't work. I can embed the Youku URL but after I submit it, it shows "embeding video failed "
Do I missed something?
Any suggestions will be appreciated. THX~
BTW,Youku URL example : http://v.youku.com/v_show/id_XMzE2NTk4NjIw