腾讯视频API --关闭广告推荐
官方文档:http://v.qq.com/open/doc/tvpapi2.0.pdf
使用:
<script src="http://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2.js" type="text/javascript" ></script> <div id="mod_player"></div> <script> var video = new tvp.VideoInfo(); video.setVid("i001216370f"); var player =new tvp.Player(); player.create({ width:480, height:360, video:video, modId:"mod_player", autoplay:true }); </script>
结束视频推荐关闭,其中 vodFlashExtVars与isVodFlashShowEnd 都有对 视频结束配置的扩展,但 后者在测试中不生效
player.create({ width: '876', height: '492', video:video, modId:"container", autoplay:true, vodFlashExtVars:{ showend:0, favorite:0, searchbar:0 }, onwrite:function(){console.log("播放器显示完毕");} });