Videos not playing in browsers

前端 未结 4 1423
自闭症患者
自闭症患者 2021-01-14 03:45

I am having 6 different types of video formats, namely .avi, .mkv, .mov, .ogv, .wmv,

4条回答
  •  悲&欢浪女
    2021-01-14 04:08

    The simple answer is that for various reasons not all browsers support all the available codecs/containers.

    There is a fairly up-to-date list here http://en.wikipedia.org/wiki/HTML5_video and this answer shows how you can test specific support yourself Mobile detection for specific parts of websites

    You mention (in one of the comments) that you get an error thrown ... if you let us know what error that is (if the canPlayType() doesn't answer the question) then we could research some more

提交回复
热议问题