转自:https://blog.csdn.net/boyit0/article/details/53125983
调用腾讯视频播放器APi代码
[html] view plain <https://blog.csdn.net/boyit0/article/details/53125983#> copy
<https://blog.csdn.net/boyit0/article/details/53125983#>
* <!doctype html>
* <html>
* <head>
* <meta charset="utf-8">
* <title>调用腾讯视频播放器APi</title>
* <script src="http://qzs.qq.com/tencentvideo_v1/js/tvp/tvp.player.js"
charset="utf-8"></script>
* </head>
*
* <body>
* <div id="videoCon" class="video"></div>
* <script>
* var video = new tvp.VideoInfo();
* video.setVid("q0011iyvdam");//视频vid
* var player = new tvp.Player(750, 450);//视频高宽
* player.setCurVideo(video);
* player.addParam("autoplay","0");//是否自动播放,1为自动播放,0为不自动播放
* player.addParam("wmode","opaque");
* player.addParam("showend",0);
* player.addParam("adplay",0);
* player.addParam("wmode","transparent");
*
player.addParam("pic","http://ossweb-img.qq.com/images/roco/act/a20120925movie/video_pic.jpg");//默认图片地址
*
player.addParam("flashskin", "http://imgcache.qq.com/minivideo_v1/vd/res/skins/TencentPlayerMiniSkin.swf");//是否调用精简皮肤,不使用则删掉此行代码
* player.write("videoCon");
* </script>
*
* </body>
* </html>
热门工具 换一换