请问下我这样写为什么rm/rmvb格式的播放不了?
<html>
<head>
<title>Player Demo</title>
<script>
var rmID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA";
var wmID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95";
var swfID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; var thePlayer; function doPlay(fPath){
if(fPath==""||fPath==null)return(false);
fType=fPath.substring(fPath.lastIndexOf(".")+1).toLowerCase();
if(thePlayer){
document.getElementById("theTurePlayerID").outerHTML="";
}
thePlayer=document.createElement("object");
thePlayer.width="100%";
thePlayer.height="100%";
thePlayer.style.display="none";
thePlayer.id="theTurePlayerID";
document.getElementById("playerDIV").appendChild(thePlayer);
switch(fType){
case "rm":case "rmvb":
thePlayer.classid=rmID;
with(thePlayer){
_ExtentX=23627;_ExtentY=15187;
AUTOSTART=-1;SHUFFLE=0;PREFETCH=0;
NOLABELS=0;CONTROLS="ImageWindow";
CONSOLE="Clip1";LOOP=0;NUMLOOP=0;CENTER=0;
MAINTAINASPECT=0;BACKGROUNDCOLOR="#000000";
}
thePlayer.Resource=fPath;
thePlayer.DoPlay(); break;
case "swf":
thePlayer.classid=swfID;
thePlayer.movie=fPath;
break;
default:
thePlayer.classid=wmID;
thePlayer.fileName=fPath;
thePlayer.Play();
}
setTimeout("thePlayer.style.display='';",1000);
}
</script>
</head>
<body>
<div id="playerDIV" style="width:600px;height:450px;"></div>
<a href="javascript:doPlay('导火线.rm');">导火线 (RM)</a>
<a href="javascript:thePlayer.Stop();">Stop</a>
</body>
</html>
<html>
<head>
<title>Player Demo</title>
<script>
var rmID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA";
var wmID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95";
var swfID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; var thePlayer; function doPlay(fPath){
if(fPath==""||fPath==null)return(false);
fType=fPath.substring(fPath.lastIndexOf(".")+1).toLowerCase();
if(thePlayer){
document.getElementById("theTurePlayerID").outerHTML="";
}
thePlayer=document.createElement("object");
thePlayer.width="100%";
thePlayer.height="100%";
thePlayer.style.display="none";
thePlayer.id="theTurePlayerID";
document.getElementById("playerDIV").appendChild(thePlayer);
switch(fType){
case "rm":case "rmvb":
thePlayer.classid=rmID;
with(thePlayer){
_ExtentX=23627;_ExtentY=15187;
AUTOSTART=-1;SHUFFLE=0;PREFETCH=0;
NOLABELS=0;CONTROLS="ImageWindow";
CONSOLE="Clip1";LOOP=0;NUMLOOP=0;CENTER=0;
MAINTAINASPECT=0;BACKGROUNDCOLOR="#000000";
}
thePlayer.Resource=fPath;
thePlayer.DoPlay(); break;
case "swf":
thePlayer.classid=swfID;
thePlayer.movie=fPath;
break;
default:
thePlayer.classid=wmID;
thePlayer.fileName=fPath;
thePlayer.Play();
}
setTimeout("thePlayer.style.display='';",1000);
}
</script>
</head>
<body>
<div id="playerDIV" style="width:600px;height:450px;"></div>
<a href="javascript:doPlay('导火线.rm');">导火线 (RM)</a>
<a href="javascript:thePlayer.Stop();">Stop</a>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货