Does HTML5 <video> playback support the .avi format?

前端 未结 4 461
再見小時候
再見小時候 2020-11-29 05:12

I am wondering if the HTML5 tag now supports playback of .avi format video files.

4条回答
  •  感情败类
    2020-11-29 05:49

    There are three formats with a reasonable level of support: H.264 (MPEG-4 AVC), OGG Theora (VP3) and WebM (VP8). See the wiki linked by Sam for which browsers support which; you will typically need at least one of those plus Flash fallback.

    Whilst most browsers won't touch AVI, there are some browser builds that expose all the multimedia capabilities of the underlying OS to . These browser will indeed be able to play AVI, as long as they have matching codecs installed (AVI can contain about a million different video and audio formats). In particular Safari on OS X with QuickTime, or Konqi with GStreamer.

    Personally I think this is an absolutely disastrous idea, as it exposes a very large codec codebase to the net, a codebase that was mostly not written to be resistant to network attacks. One of the worst drawbacks of media player plugins was the huge number of security holes they made available to every web page exploit. Let's not make this mistake again.

提交回复
热议问题