我正在尝试在我的网站上播放视频。它致力于生产。在域名播放器上发布网站后不播放视频。相反,它在媒体播放器栏上显示msgs就像 “准备连接”,“连接......”和“就绪”,显示黑屏。
这是我的视频代码。
<SPAN id="music1">
<OBJECT style="width:560px; height:300px" id=mediaPlayer
codeBase=http://activex.microsoft.com/activex/controls/mplayer/
en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject
standby="Loading Microsoft Windows Media Player components..."
style="margin-left: 0px" classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>
<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows
/mediaplayer/en/download/" bgcolor="darkblue" showcontrols="true"
showpositioncontrols="true" showstatusbar="tue" showgotobar="true"
src="videos/1.wmv" autostart="true" designtimesp="5311"
loop="true" height="600" width="470">
</OBJECT></SPAN>
请让我知道,我做错了什么,或者它的域名问题? 提前致谢
答案 0 :(得分:4)
试试这个简单的:
<embed src="videos/1.wmv" width="600" height="470" type="video/x-ms-wmv"></embed>
答案 1 :(得分:2)
您的对象似乎没有指定视频的来源。嵌入有但不是对象
<SPAN id="music1">
<OBJECT style="width:560px; height:300px; margin-left: 0px" id="mediaPlayer"
codeBase="http://activex.microsoft.com/activex/controls/mplayer/
en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject"
standby="Loading Microsoft Windows Media Player components..."
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<PARAM NAME="URL" VALUE="videos/1.wmv">
<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows
/mediaplayer/en/download/" bgcolor="darkblue" showcontrols="true"
showpositioncontrols="true" showstatusbar="tue" showgotobar="true"
src="videos/1.wmv" autostart="true" designtimesp="5311"
loop="true" height="600" width="470" />
</OBJECT>
</SPAN>
您也可以尝试完全放弃对象,只需依靠嵌入。
答案 2 :(得分:1)
尝试使用
<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4" />
<source src="movie.ogg" type="video/ogg" />
Your browser does not support the video tag.
</video>
答案 3 :(得分:0)
你可以尝试这个:
classid=CLSID:clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6