How to play html5 video? When the file is file.m4v?

后端 未结 4 1908
走了就别回头了
走了就别回头了 2021-02-08 19:06

I have tried several methods but none is playing the file2.m4v using html5 see screen shot.

But if i use that same file using VLC/Mplayer it play the film nicely (no pr

4条回答
  •  礼貌的吻别
    2021-02-08 19:17

    HTML5 is a web standard (in other words, a specification), not a technology, so the phrase "html5 cant play it" implies a bit of misunderstanding on your part. The file is decoded by the browser according to the settings you specify in the tag. It is worth noting that not every browser and/or operating system has the same codecs available, so first verify that you can play the video natively.

    Firefox, for one, cannot decode anything encoded with the H.264 codec, which I believe is used in .m4v files (anyone who knows better, please correct me).

    Lastly, as someone else pointed out, your path is likely wrong. Remove the 'var' and 'www' portions of the path.

提交回复
热议问题