Video tag does not play in Chromium (works in Chrome & other browsers)

823 views
Skip to first unread message

Shachar Weis

unread,
Jan 15, 2015, 3:32:19 PM1/15/15
to chromium...@chromium.org

<script>
 function failed(e) { alert("Error: "+e.target.error.code); }
</script>

<video controls onerror="failed(event)">
  <source id="videoSource" src="video_62.mp4" type="video/mp4"/>
</video>

<video controls onerror="failed(event)" src="video_62.mp4">
</video>

This is my code. Both video tags work in Chrome. 
In Chromium, the first does nothing - it will not even attempt to load the video. The <source> tag seems to be ignored. 
The second throws an error code of 4 - MEDIA_ERR_SRC_NOT_SUPPORTED

Any ideas ? What am I missing ?

Thanks.



Christian Biesinger

unread,
Jan 15, 2015, 3:40:37 PM1/15/15
to shach...@gmail.com, Chromium-discuss
Chromium does not support H.264 (mp4) videos.
http://www.chromium.org/audio-video

-christian
> --
> --
> Chromium Discussion mailing list: chromium...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-discuss
>

Shachar Weis

unread,
Jan 15, 2015, 3:49:55 PM1/15/15
to chromium...@chromium.org, shach...@gmail.com
Thanks. 
I changed it to OGV and the second video tag works.
Does Chromium support the <source> tag inside the <video> ?

Christian Biesinger

unread,
Jan 15, 2015, 3:51:14 PM1/15/15
to shach...@gmail.com, Chromium-discuss
It does - did you also change the type attribute?

-christian

Shachar Weis

unread,
Jan 15, 2015, 4:04:11 PM1/15/15
to chromium...@chromium.org, shach...@gmail.com
I tried ogv but turns out that ogg is what works.
Thanks for your help !

Shachar Weis

unread,
Jan 15, 2015, 4:24:00 PM1/15/15
to chromium...@chromium.org
Is there any way to get Chromium to play MP4 files? With a 3rd party plugin? OGG has poor support across the platforms.

Christian Biesinger

unread,
Jan 16, 2015, 10:22:51 AM1/16/15
to shach...@gmail.com, Chromium-discuss
I don't believe so, unless you compile it yourself with special flags
(and buy a patent license from MPEGLA). Why do you need MP4 support in
Chromium, instead of just using Chrome?

-christian
Reply all
Reply to author
Forward
0 new messages