homepage Welcome to WebmasterWorld Guest from 54.196.69.189
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
html5 video on firefox
.ogv does not play on firefox
phex




msg:4305340
 12:49 pm on Apr 28, 2011 (gmt 0)

Hi guys

I am using this following html5 video tag to play various file formats of the same video on different browsers. On my local machine all the videos are playing fine but after uploading them, firefox cannot play movie.ogv on the online server.

<video width="320" height="240" controls poster="logo.png">
<source src="movie.mp4" type="video/mp4" />
<source src="movie.webm" type="video/webm" />
<source src="movie.ogv" type="video/ogg" />
<embed src="movie.swf" type="application/x-shockwave-flash" width="300" height="300" allowscriptaccess="always" allowfullscreen="true" ></embed>
</video>

Any help

 

Samizdata




msg:4305370
 1:55 pm on Apr 28, 2011 (gmt 0)

You probably need to set the MIME-type on your server for that extension.

...

phex




msg:4305450
 4:02 pm on Apr 28, 2011 (gmt 0)

Samizdata, i dont understand. Can you pleas tell the procedure.

Samizdata




msg:4305513
 5:42 pm on Apr 28, 2011 (gmt 0)

If you are on an Apache webserver then you would place an .htaccess directive either in the root directory or in each directory where .ogv files are stored. The code (which I have not tested) should be:

AddType video/ogg .ogv

If you are on some other type of webserver I can't help you.

...

JPcinemamaster




msg:4307071
 8:34 pm on May 2, 2011 (gmt 0)

this might be a silly question. But if I add also a FLV under the 'video' tag to a browser that supports HTML5 video, wouldn't the video will show twice?

phex




msg:4307808
 1:09 pm on May 4, 2011 (gmt 0)

JPcinemamaster
No. the browser will only show the video file format that its support.

JPcinemamaster




msg:4321312
 10:03 pm on Jun 2, 2011 (gmt 0)

thank you for your info.
I think I have an issue with Firefox and my server:
the code works file in every browser but when I try to see it in Firefox, it keeps loading.
Here is one thing:
When I copy the full URL of my video and paste it in Firefox, instead of watching the video in the browser, I get an "you have chosen to open video.org" pop up window.
Is there a problem with my server? because I can do the same thing with other videos (from other websites) and they work fine. will the .htaccess fix this issue?
Thank you in advance.
JP

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved