我有这段代码:
<object id="MediaPlayer1" width="280" height="256" classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701">
<param name="fileName" value="/wp-content/uploads/2012/06/GM-Oh.avi" />
<param name="animationatStart" value="true" />
<param name="transparentatStart" value="true" />
<param name="autoStart" value="true" />
<param name="showControls" value="true" />
<param name="Volume" value="-450" />
<param name="url" value="/wp-content/uploads/2012/06/GM-Oh.avi" />
<param name="pluginspage" value="http://www.microsoft.com/Windows/MediaPlayer/" />
<param name="autostart" value="1" />
<param name="showcontrols" value="1" />
<param name="volume" value="-450" />
<embed id="MediaPlayer1" width="280" height="256" type="application/x-mplayer2" src="/wp-content/uploads/2012/06/GM-Oh.avi" fileName="/wp-content/uploads/2012/06/GM-Oh.avi" animationatStart="true" transparentatStart="true" autoStart="true" showControls="false" Volume="-450" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" autostart="1" showcontrols="1" volume="-450" />
</object>
问题是,我的电影对象出现但电影无法开始播放。
任何想法为什么?
答案 0 :(得分:1)
我建议您将文档类型更改为<!DOCTYPE html>
并使用HTML5播放器。
<video width="280" height="256"controls="controls" autoplay="autoplay">
<source src="/wp-content/uploads/2012/06/GM-Oh.avi" type="video/avi" />
Your browser does not support HTML5 video. Upgrade to <a href="http://abetterbrowser.org/">a better browser</a>.
</video>
您可能需要将视频文件转换为OGG,WebM或MP4,因为我不确定AVI是否会播放。
有关HTML5视频的更多信息:http://www.w3schools.com/html5/html5_video.asp