1

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?

thirtydot
  • 224,678
  • 48
  • 389
  • 349
Chris Cates
  • 75
  • 1
  • 1
  • 6
  • So do you use `buyers.ogg` or `/video/buyers.ogg`? You're code says one thing but your relative path is different. – Rob Feb 13 '12 at 00:35
  • I use both and NEITHER work. And the html document and .ogg video are in the same folder. PROBLEM? YES – Chris Cates Feb 13 '12 at 00:37
  • What browser and version are you using? – Rob Feb 13 '12 at 00:45
  • Opera, Firefox, Google Chrome and IE IN ALL cases they do not work. – Chris Cates Feb 13 '12 at 00:48
  • I would assume that you are using the latest versions of these browsers but just for precautionary measures, [here is a link](http://www.w3schools.com/html5/html5_video.asp) for information on which browsers and versions that support the ` – Rob Feb 13 '12 at 00:53
  • The video is in the same folder as the html document. I can't stress it enough. The codecs are fine because I can watch other .mp4 or .ogg videos in all those browsers. No one seems to know why this happens. – Chris Cates Feb 13 '12 at 00:57
  • Well maybe if someone actually answered a question I would accept it. I appreciate the help, but, I can't accept an answer unless it's been answered. How would I "hard-code" the location? You mean the exact location from C:/? – Chris Cates Feb 13 '12 at 01:08
  • Understandable, and yes the exact location from C:/. – Rob Feb 13 '12 at 01:10
  • Funny. It doesn't work, yet it works in VLC and Windows Media player. It's also funny how if I go online and watch an .ogg video, it works, but, when I do it locally it doesn't. Thanks Mike, you're pinpointing the problem here. It may be codecs. But the problem is, even if I upload it to my website, it still doesn't work. – Chris Cates Feb 13 '12 at 01:17
  • You're very welcome. I'm going to continue researching the problem and I'll let you know what I find sometime tomorrow. – Rob Feb 13 '12 at 01:23
  • At this point I would compare the codec of the viewable videos with your videos. Heck, I would even try putting ` ` at the beginning of your HTML file if you haven't done so. – Rob Feb 13 '12 at 23:59
  • There is a at the beginning. – Chris Cates Feb 14 '12 at 16:46

4 Answers4

3

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!

Community
  • 1
  • 1
Rob
  • 435
  • 1
  • 5
  • 25
  • Thanks, but, the .htaccess file didn't do anything. Useful to have an .htaccess file regardless. – Chris Cates Feb 13 '12 at 19:13
  • Except this time. It takes longer for it to load, and, then fail. Close, but, no cigar. – Chris Cates Feb 13 '12 at 19:17
  • This is pissing me off. SERIOUSLY, WHY CAN NO ONE EXPLAIN WHY THE VIDEO DOESNT PLAY. I tried using HTML5 video player. It will play their video but not mine?? WTF – Chris Cates Feb 13 '12 at 19:29
  • @ChrisCates Okay, one final suggestion... is your web page currently in the testing phase or is it up and running? If it is up and running, you should check out the link that I posted in my answer. – Rob Feb 13 '12 at 20:28
  • There's a follow-up question (duplicate?) here: http://stackoverflow.com/questions/9267129/html5-video-not-working-locally-or-on-server-never. – thirtydot Feb 13 '12 at 23:50
  • @thirtydot Thank you for fixing my post with the funny quotes ;) I have a strange tendency to put quotes around things that don't need quotes... and thank you for the update on the other question! – Rob Feb 14 '12 at 00:02
0

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?

cotton.m
  • 455
  • 2
  • 10
0

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

Jörn Berkefeld
  • 2,540
  • 20
  • 31
-1

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

paul
  • 11