Chris Cates
Chris Cates

Reputation: 75

HTML5 Video not found

So the video and the html file are both in the same folder.

    <video width="320" height="240" controls="controls" autoplay="autoplay">
      <source src="buyers.ogg" type="video/ogg" />
      Your browser does not support the video tag.
    </video>

The video does not load and is not found. I do relative path (../video/buyers.ogg). Can someone please help me?

Upvotes: 1

Views: 18799

Answers (4)

paul
paul

Reputation: 11

had the same problem i just downloaded a older version of firefox and it works now

Upvotes: -1

J&#246;rn Berkefeld
J&#246;rn Berkefeld

Reputation: 2579

Add an eventlistener for error to the video node.check the w3c spec on html5 video to make sense of what that event tells you (I'm on my iPad right now, else I'd give you more details....)

Also check the console for error messages and if your htaccess add type actually worked. Might be your provider disabled that. Which browsers did you test it in? Ie9 is very picky, chrome takes it all and firefox is kinda in between, like safari)

Last but not least, using ogv and webm is overkill. Decide for one of them. You only NEED mp4 and ONE of e others. Go to www.caniuse.com and search for "video" to understand why

Upvotes: 0

anon
anon

Reputation:

Based on our discussion, here's something that may fix your problem.

If you don't have an file, create one and add these lines to it:


AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

For more information, go to this post.


UPDATE:
Check out this link. The poster sounds like he had the same problem as you are having currently. Perhaps the addition of these tags will help.

<mimeMap fileExtension=".ogg" mimeType="video/ogg" />
<mimeMap fileExtension=".ogv" mimeType="video/ogg" />

Your site may not be hosted by GoDaddy, but it might help you pinpoint your problem. Let me know if it works!

Upvotes: 3

cotton.m
cotton.m

Reputation: 455

The extension you have in your htaccess doesn't match what you are asking for (.ogv vs .ogg). But are you sure that the file itself isn't available to the browser?

Upvotes: 0

Related Questions