关于用Js控制Windows Media Player的问题
说明:Video为播放器Id
我想在网页中插入一个Media Player,想添加播放列表.代码如下:
<script language="javascript">
Video.mediaCollection.add("theTest.wma");
Video.mediaCollection.add("Play.wmv");
var myList=Video.playlistCollection.newPlaylist("我的列表");
Video.myList.appendItem("Laure");
Video.myList.appendItem("Play");
Video.currentPlaylist=myList;
showResult("idList",Video.currentPlaylist.item(0).name+"\n"+Video.currentPlaylist.item(0).sourceURL);
function showResult(sId,mId)
{
document.getElementById(sId).innerHTML=mId;
}
</script>
但没有能实现..
请问怎么样才能给网页中的播放器添加播放列表?谢谢!
Video.mediaCollection.add("theTest.wma");
Video.mediaCollection.add("Play.wmv");
var myList=Video.playlistCollection.newPlaylist("我的列表");
Video.myList.appendItem("Laure");
Video.myList.appendItem("Play");
Video.currentPlaylist=myList;
showResult("idList",Video.currentPlaylist.item(0).name+"\n"+Video.currentPlaylist.item(0).sourceURL);
function showResult(sId,mId)
{
document.getElementById(sId).innerHTML=mId;
}
</script>
但没有能实现..
请问怎么样才能给网页中的播放器添加播放列表?谢谢!