Kay
Kay

Reputation: 213

Problem with HTML 5 video, the video is not showing

so I madean HTML5 video for chrome and firefox ... mp4 and .ogv of course The problem im having is that the video is working on some chrome browsers while it doesnt on others and the video is not showing at all on any firefox browser ( keep in mind that all browsers that were tested on were fully updated meaning they support HTML5 video ) here is my source code

<video id="the-video" width="550px" height="550px" controls>
<source src="videos/intro.mp4"  type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="videos/intro.ogv"  type='video/ogg; codecs="theora, vorbis"'>

</video>

Upvotes: 2

Views: 12014

Answers (3)

Paul B&#246;nisch
Paul B&#246;nisch

Reputation: 294

add *.webm and make it first source

Upvotes: 1

Ian Devlin
Ian Devlin

Reputation: 18870

Try renaming the .ogv to .ogg, the server might not be set up to serve .ogv files. This has happened me in the past.

Alternatively, if you have access to the server, add the MIME type video/ogg for .ogv extensions.

Upvotes: 0

Caio
Caio

Reputation: 3215

Firefox doesn't support H.264, Chrome does but will drop soon.

Anyway you should use Webm video format for HTML 5.

Upvotes: 0

Related Questions