Html5 mp4 video player

html5-video

I am trying to play mp4 video using html5 video tag. But in FF 3.6 its just showing a black window with cross sign. Its playing in Chrome.

I can play that video in windows media player (i.e. the required codec are installed)

How can i play that 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>

Best Answer

firefox does not support most MPEG4 natively due to licencing. you can save your video in a few different types and use canPlayType(type) method.

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

Related Topic