Html5 mp4 video player

I am trying to play mp4 video using html5 video tag. But in FF 3.6, it just shows a black window with an intersection sign. His game is in Chrome.

I can play this video in a Windows media player (i.e. installed codec)

How can I play this video in FF too?

<video id="video1" width="200" height="200" controls="true">
        <source src="video1.mp4" type='video/mp4; codecs="avc1.64001E, mp4a.40.2"' />
        Your browser does not support mp4 videos
    </video>
+3
source share
2 answers

firefox does not support most MPEG4 due to licensing. You can save your video in several different types and use the canPlayType (type) method.

here: http://wiki.whatwg.org/wiki/Video_type_parameters http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#dom-navigator-canplaytype

+3
source
+1

Source: https://habr.com/ru/post/1778463/


All Articles