调用腾讯视频播放器API代码 - 网络技能论坛 - 经验分享 - 小轻秀场

调用腾讯视频播放器API代码

<!doctype html&gt;
<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>

请登录后发表评论

    没有回复内容