<div class="detail-con clear">
<div id="mod_player_wrap" class="mod_player_wrap">
<div class="mod_inner">
<div id="mod_inner" class="mod_player_section center mod_independent">
<div>
<div id="mod_player" class="mod_player">
<div id="mod_player_skin"> </div>
<!-- 這個(gè)div是播放(fàng)器(qì)準備輸出的位置 --><!-- 引入騰訊視頻播放(fàng)器(qì)組件(jiàn) --><script language="javascript" src="static/js/tvp.player.js" charset="utf-8"></script><script language="javascript">
//定義視頻對象
var video = new tvp.VideoInfo();
//向視頻對象傳入視頻vid
video.setVid("c0146k6imdf");
//定義播放(fàng)器(qì)對象
var player = new tvp.Player(320, 240);
//設置播放(fàng)器(qì)初始化時加載的視頻
player.setCurVideo(video);
//設置精簡皮膚,僅點播有效
//player.addParam("flashskin", "static/file/TencentPlayerMiniSkin.swf");
//輸出播放(fàng)器(qì),參數就(jiù)是上(shàng)面div的id,希望輸出到(dào)哪個(gè)HTML元素裡(lǐ),就(jiù)寫哪個(gè)元素的id
player.addParam("autoplay","1");
player.addParam("wmode","transparent");
//player.addParam("pic","static/picture/80547435.jpg");
player.write("mod_player_skin");
</script></div>
</div>
</div>
</div>
</div>
</div>
PS:将對應的
video.setVid("c0146k6imdf");中的vid替換成自(zì)己得視頻id即可.