欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

优酷播放器——可全屏,无跳转,去除图标

shiping1 的头像

优酷播放器——可全屏,无跳转,去除图标

完整的优酷播放器代码:

<embed
src="http://player.youku.com/player.php/sid/XNjE2NDAxNDQ=/v.swf"
type="application/x-shockwave-flash"
quality="high"
allowfullscreen="true"
flashvars="isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&isAutoPlay=false&isDebug=false
&UserID=&winType=interior&playMovie=true&MM
Control=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3
007,3008,9999"
pluginspage="http://www.macromedia.com/go/getflashplayer"
width="650"
height="600"

>
</embed>

 

但是我们在“用”优酷或土豆的资源时,如果在embed里面少些了参数,会出现的问题是暂停、声音和设置都是正常的,但是全屏的话就会链接到此网站,而不是直接全屏,解决方法是加上flashvars参数和allowfullscreen参数

<embed src="http://player.youku.com/player.php/sid/XMjMxMDQ3MTA4/v.swf" width="500" height="400" type="application/x-shockwave-flash"
allowfullscreen="true"
flashvars="isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&isAutoPlay=true&isDebug=false&UserID=&winType=interior&playMovie=true&MMControl=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3007,3008,9999"

加上这两句代码:可全屏,无跳转,去除播放器优酷图标和链接

 

来自 http://www.fufuok.com/kill-ad-youku.html

 

普通分类: