Skip to content Skip to sidebar Skip to footer

Directly Viewing Webm Or Ogg File Works In Firefox But Not In Chrome

I'm having an issue with getting local videos working for the HTML5 Video element. If I try and view a local OGG or WebM file directly, in Firefox 16.0.2 it works, but in chrome 22

Solution 1:

  • First of all try with adding support for more video types

Link - http://www.htmlgoodies.com/html5/client/how-to-embed-video-using-html5.html

video id="sampleMovie" width="640" height="360" preload controls

<source src="HTML5Sample_H264.mov"type='video/mp4;' />
<source src="HTML5Sample_Ogg.ogv"type='video/ogg;' />
<source src="HTML5Sample_WebM.webm"type='video/webm;' />

video

  • Second check your .htaccess file for content type - add mime type for webm, ogg, mp4

Link - http://docs.sublimevideo.net/troubleshooting

Link - http://www.htaccess-guide.com/adding-mime-types/

These solved my problem of playing video in HTML5 video tag. Hope it helps you too.

As i checked in the CHROME your content is not getting loaded with correct "TYPE"

If applicable (and nothing works) you can use- http://www.longtailvideo.com/players

Post a Comment for "Directly Viewing Webm Or Ogg File Works In Firefox But Not In Chrome"