开发者

How to play MPEG4 Visual with HTML5 <video>?

开发者 https://www.devze.com 2023-01-18 13:06 出处:网络
I currently use this to play AVC (H.264 or MPEG-4 Part 10) videos. <video controls preload> <source src=\"xyz.mp4\" type=\'video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"\'>

I currently use this to play AVC (H.264 or MPEG-4 Part 10) videos.

<video controls preload>
  <source src="xyz.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
</video>

However, that doesn't work for MP4V (MPEG-4 Visual or MPEG-4 Part 2) vide开发者_C百科os. I tried codecs="mp4v.20.8, mp4a.40.2" but that doesn't seem to work either.

Does any of the major browsers support MP4V in HTML5 <video>? If yes, what type/codecs should I specify in the <source> tag? Alternatively, do Flash players like flowplayer support MP4V?


MP4 Supporting Browser: IE9+,Chrome 4+, Safari 3.2+, Andriod 2.1+

Flash Player supports MP4 since version 9.0.115.0

0

精彩评论

暂无评论...
验证码 换一张
取 消