html5不支持视频

时间:2012-06-13 09:21:13

标签: html5 video

我有最新的FF,我正在尝试使用视频标签嵌入视频。我用test.html将文件保存在桌面上,我的视频也在桌面上 这是我正在使用的代码

<!DOCTYPE html>
<html>
<body>
<video controls>

  <source src="Wildlife.wmv">
  Your browser doesn't support video, you may download the

</video>
</body>
</html>

我收到错误No video with supported format and MIME type found.

知道可能是什么问题吗?

3 个答案:

答案 0 :(得分:1)

浏览器不使用wmv,因为编解码器不能广泛使用 - 根据浏览器使用mp4,ogg或webm。

http://camendesign.com/code/video_for_everybody是了解这里错综复杂的绝佳资源。

答案 1 :(得分:0)

你可以试试这个

 <body>

 <object width="50%" height="50%" type="video/x-ms-asf" url="Wildlife.wmv" data="Wildlife.wmv" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
 <param name="url" value="Wildlife.wmv">
 <param name="filename" value="Wildlife.wmv">
 <param name="autostart" value="1">
 <param name="uiMode" value="full" />
 <param name="autosize" value="1">
 <param name="playcount" value="1"> 
 <embed type="application/x-mplayer2" src="Wildlife.wmv" width="100%" height="100%" autostart="true" showcontrols="true"      pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"></embed>
 </object>

</body>

答案 2 :(得分:0)

如果您在各种用户代理上运行应用程序,请尝试此操作。

<!DOCTYPE html>
    <html>
    <body>
    <video controls>

      <source src="Wildlife.mp4" type="video/mp4">
      <source src="Wildlife.ogg" type="video/ogg">
    <source src="Wildlife.webm" type="video/webm">
    Your browser doesn't support video, you may download the

    </video>
    </body>
    </html>