Gökhan YILDIZ
Gökhan YILDIZ

Reputation: 141

Why HTML5 video does not work on google chrome?

my code:

<video width="600" height="400" controls="controls">
 <source src="uploads/video/patientenhandset_uk_high.mp4" type="video/mp4" />
 <source src="uploads/video/patientenhandset_uk_high.ogg" type="video/ogg" />
 Your browser not supported this video.
</video>

This code IE10, IE9, firefox and opera works. So why does not work in chrome?

Upvotes: 2

Views: 8096

Answers (2)

Robert McKee
Robert McKee

Reputation: 21487

That code looks fine. Are you serving the right mime type for mp4?

The latest chrome plays HTML5 video fine, so you have something wrong, but it doesn't appear to be in your HTML. You may also want to try switching your source tags to using a fully qualified domain name, like http://www.yourdomain.com/yourvideo.mp4

Upvotes: 0

Matt Asbury
Matt Asbury

Reputation: 5662

I believe Chrome uses the WebM format (video/webm), so you'll probably need to offer this as another <source> alternative.

Upvotes: 1

Related Questions