最近打算使用騰訊視頻,研究了下API,手機播放良好,目前的問題是不知道騰訊視頻有多少皮膚,只找到默認的和精簡皮膚,而且下面的彈幕登錄框不知道怎么去掉
1 <div id="videoId"></div> 2 <script src="http://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2_jq.js" type="text/javascript" ></script> 3 <script type="text/javascript"> 4 (function(){ 5 var videoSet={ 6 vid:'d0382qswus7', 7 poster:'http://i.gtimg.cn/qqlive/img/jpgcache/files/qqvideo/hori/j/jk97cgptoachp45.jpg',//手機端poster圖 8 width:'600', 9 height:"330" 10 } 11 var video = new tvp.VideoInfo(); 12 video.setVid(videoSet.vid); 13 var player = new tvp.Player(); 14 player.create({ 15 video: video, 16 modId: "videoId", 17 width:videoSet.width, 18 height:videoSet.height, 19 pic:videoSet.poster, 20 isHtml5ShowPosterOnEnd:true, 21 isiPhoneShowPosterOnPause:true, 22 vodFlashSkin:'http://imgcache.qq.com/minivideo_v1/vd/res/skins/TencentPlayerMiniSkin.swf',//精簡皮膚 23 onwrite: function() { 24 console.log("播放器顯示完畢"); 25 }, 26 onpause:function(){ 27 console.log('暫停了') 28 }, 29 onallended:function(){ 30 console.log('播放完了') 31 } 32 }); 33 })(); 34 </script>