下面是在页面上播放媒体播放器的代码。现在我想使用 javascript 在嵌入中设置文件名和 src 的值。我的意思是我想使用 javascript 放置视频文件名,所以每次它都会在按钮单击时设置
<div id="MideaPlayer" style="display: none">
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" height="270" width="300" codebase="http://www.microsoft.com/Windows/MediaPlayer/" style="height: 236px">
<param name="Filename" value="http://localhost:4047/Videos/1/New1/m2.mp4">
<param name="AutoStart" value="false">
<param name="ShowControls" value="true">
<param name="BufferingTime" value="2">
<param name="ShowStatusBar" value="true">
<param name="AutoSize" value="true">
<param name="InvokeURLs" value="false">
<embed src="http://localhost:4047/Videos/1/New1/m2.mp4" type="application/x-mplayer2" autostart="0" enabled="1" showstatusbar="1" showdisplay="1" showcontrols="1" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" width="480" height="360"></embed>
</object>
</div>
提前致谢