视频动态播放文件
我在叶面中写了<OBJECT id="player" style="WIDTH: 240px; HEIGHT: 248px" height="248" width="240" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
VIEWASTEXT >
<PARAM NAME="URL" VALUE="img/aaa.wmv">
<PARAM NAME="rate" VALUE="1">
<PARAM NAME="balance" VALUE="0">
<PARAM NAME="currentPosition" VALUE="0">
<PARAM NAME="defaultFrame" VALUE="">
<PARAM NAME="playCount" VALUE="1">
<PARAM NAME="autoStart" VALUE="-1">
<PARAM NAME="currentMarker" VALUE="0">
<PARAM NAME="invokeURLs" VALUE="-1">
<PARAM NAME="baseURL" VALUE="">
<PARAM NAME="volume" VALUE="50">
<PARAM NAME="mute" VALUE="0">
<PARAM NAME="uiMode" VALUE="full">
<PARAM NAME="stretchToFit" VALUE="0">
<PARAM NAME="windowlessVideo" VALUE="0">
<PARAM NAME="enabled" VALUE="-1">
<PARAM NAME="enableContextMenu" VALUE="-1">
<PARAM NAME="fullScreen" VALUE="0">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIFilename" VALUE="">
<PARAM NAME="captioningID" VALUE="">
<PARAM NAME="enableErrorDialogs" VALUE="0">
<PARAM NAME="_cx" VALUE="6350">
<PARAM NAME="_cy" VALUE="6562">
</OBJECT>
我想动态播放文件怎样做? --------------------编程问答-------------------- 什么叫。。。动态播放? --------------------编程问答-------------------- 如果是说打开网页自动播放的话,
那修改
<param name="autostart" value="1">
这个就可以了 1-自动播放 0-不自动播放 --------------------编程问答-------------------- 不是 是点击一个按钮,播放一个视频文件 url可以修改 --------------------编程问答-------------------- 幫頂 --------------------编程问答-------------------- 把上面的当成字符串,在后台写上输出到客户端吧,想什么URL都可以
也可以document.body.innerHtml = "你上面的" --------------------编程问答-------------------- 五楼 当成字符串不行
我用了一个绑定方法
但是不行
document.body.innerHtml = "你上面的"
是什麽意思
--------------------编程问答-------------------- document.write("整个对象放在里面") --------------------编程问答-------------------- 不是吧,我行你都不行?
//页面
<div id="divPlayer" runat="server">
</div>
//Page_Load
this.divPlayer.InnerHtml =
@"<OBJECT id='player' style='WIDTH: 240px; HEIGHT: 248px' height='248' width='240' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' "
+ "VIEWASTEXT> "
+ "<PARAM NAME='URL' VALUE='img/aaa.wmv'> "
+ "<PARAM NAME='rate' VALUE='1'> "
+ "<PARAM NAME='balance' VALUE='0'> "
+ "<PARAM NAME='currentPosition' VALUE='0'> "
+ "<PARAM NAME='defaultFrame' VALUE=''> "
+ "<PARAM NAME='playCount' VALUE='1'> "
+ "<PARAM NAME='autoStart' VALUE='-1'> "
+ "<PARAM NAME='currentMarker' VALUE='0'> "
+ "<PARAM NAME='invokeURLs' VALUE='-1'> "
+ "<PARAM NAME='baseURL' VALUE=''> "
+ "<PARAM NAME='volume' VALUE='50'> "
+ "<PARAM NAME='mute' VALUE='0'> "
+ "<PARAM NAME='uiMode' VALUE='full'> "
+ "<PARAM NAME='stretchToFit' VALUE='0'> "
+ "<PARAM NAME='windowlessVideo' VALUE='0'> "
+ "<PARAM NAME='enabled' VALUE='-1'> "
+ "<PARAM NAME='enableContextMenu' VALUE='-1'> "
+ "<PARAM NAME='fullScreen' VALUE='0'> "
+ "<PARAM NAME='SAMIStyle' VALUE=''> "
+ "<PARAM NAME='SAMILang' VALUE=''> "
+ "<PARAM NAME='SAMIFilename' VALUE=''> "
+ "<PARAM NAME='captioningID' VALUE=''> "
+ "<PARAM NAME='enableErrorDialogs' VALUE='0'> "
+ "<PARAM NAME='_cx' VALUE='6350'> "
+ "<PARAM NAME='_cy' VALUE='6562'> "
+ "</OBJECT> ";
补充:.NET技术 , ASP.NET