且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Html在Visual Studio 2005中添加视频?

更新时间:2023-01-13 08:32:09

要自动启动视频,请使用autoplay属性:



To start a video automatically use the autoplay attribute:

<video width="320" height="240" autoplay>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>





HTML视频 - 浏览器支持

目前,有3种支持的视频格式用于&放大器;放大器; lt;视频&安培;放大器;放大器; GT;元素:MP4,WebM和Ogg:



浏览器MP4 WebM Ogg

Internet Explorer是否否

Chrome是YES YES

Firefox是是是

Safari是否NO

Opera YES(来自Opera 25)YES YES



HTML Video - Browser Support
Currently, there are 3 supported video formats for the &amp;amp;lt;video&amp;amp;gt; element: MP4, WebM, and Ogg:

Browser MP4 WebM Ogg
Internet Explorer YES NO NO
Chrome YES YES YES
Firefox YES YES YES
Safari YES NO NO
Opera YES (from Opera 25) YES YES