coure2011
coure2011

Reputation: 42494

html5 mp4 video player

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>

Upvotes: 3

Views: 5533

Answers (2)

Mike Eng
Mike Eng

Reputation: 1681

For Firefox, you'll have to encode the video as Theora and save as an .ogv file.

http://diveintohtml5.info/video.html#what-works

Upvotes: 1

Frizi
Frizi

Reputation: 2940

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

Upvotes: 3

Related Questions