These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:04 pm Advanced search

firefox video issue

If you are stuck or have questions regarding HTML or other Web technologies, ask your questions here. No question too dumb!

firefox video issue

Postby veets » Wed Oct 10, 2012 10:38 pm

I have a problem with embedded video in firefox 15.0.1. the code works on the hard drive at home...
when I upload it to my website it will only work in chrome...for all 3 video types.
firefox reports "video format or mime type not supported". I have used filename.ogv,
filename.webm, and filename.mp4. Whether I list all three video types, as seen in
below, or only list one at a time, only chrome will play them and it plays
them all....firefox plays the page perfectly from its folder on my local hard drive.
Can anyone help me please? sigh...it works so well in chrome...(I am aware that it
is unsupported in IE but that is irrelevant for my purposes)
this has occured on xp and win7 systems
I know the script is very basic, and I don't know why it won't work. Any help would be appreciated...
as I am very new at this. what am I doing wrong???

Code: Select all
<html>
<head>
<title>5990 Waterfall Way</title>
<style>
    body{ background: black;
   color: #000000;
   
</style>   
</head>


<body>
     <center>
        <br><br><br><br><br><br><br><br>                         
   <video  controls="controls" tabindex=0  autoplay="autoplay">         
   <source src="5990_Waterfall_Way.webm"  type="video/webm" />
        <source src="5990_waterfall_way.ogv"   type="video/ogg" />
   <source src="5990_Waterfal_Way.mp4"    type="video/mp4" />
   
   </video>
      </center>


</body>
</html>
veets
<h6>
 
Posts: 4
Joined: Wed Oct 10, 2012 9:58 pm

Re: firefox video issue

Postby JAB Creations » Thu Oct 11, 2012 12:48 am

Try giving it a CSS height and width. While Firefox automatically renders images their native resolution it's not intelligent enough to do the same for object elements. I'm not sure if it's the same with video elements though that is the first thing I would try.
User avatar
JAB Creations
<aside>
 
Posts: 566
Joined: Tue Mar 13, 2007 4:48 am
Location: Sarasota Florida, USA

Re: firefox video issue

Postby zcorpan » Thu Oct 11, 2012 4:47 am

JAB Creations wrote:Try giving it a CSS height and width.
That won't help.

JAB Creations wrote:While Firefox automatically renders images their native resolution it's not intelligent enough to do the same for object elements.
Do you have a test case demonstrating this?

JAB Creations wrote:I'm not sure if it's the same with video elements though that is the first thing I would try.
video has default dimensions of 300x150 and resize to match the video's dimensions when it loads.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Re: firefox video issue

Postby zcorpan » Thu Oct 11, 2012 4:49 am

veets wrote:firefox reports "video format or mime type not supported".

And that's the problem you're seeing. The server gives the wrong MIME type.

https://developer.mozilla.org/en-US/doc ... er_support
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Re: firefox video issue

Postby veets » Fri Oct 12, 2012 9:30 pm

zcorpan wrote:
veets wrote:firefox reports "video format or mime type not supported".

And that's the problem you're seeing. The server gives the wrong MIME type.

https://developer.mozilla.org/en-US/doc ... er_support

thanks ...I now have something to try...
if the mime type is not set correctly on the server, how does chrome manage it? Is it just a better bit of code?
veets
<h6>
 
Posts: 4
Joined: Wed Oct 10, 2012 9:58 pm

Re: firefox video issue

Postby veets » Sat Oct 13, 2012 6:13 am

zcorpan wrote:
veets wrote:firefox reports "video format or mime type not supported".

And that's the problem you're seeing. The server gives the wrong MIME type.

https://developer.mozilla.org/en-US/doc ... er_support


thanks for this. I went to the hosting site and they do NOT list .ovg or .webm as supported mime types. .
.mp4 IS listed, which explains why chrome played the page. on further testing I realised that chrome
would ONLY play the .mp4 file.

spoke to that mob(go-daddy) and the bloke said the video files were corrupt.
couldn't say why chrome played the mp4 okay....
he was totally unwilling to consider adding the two other mime types.., sigh!...

so is there any other way to do it?
can I embed a player? and if so ...how? is there a howto page to help me?

Oh and can anyone recommend a better hosting service that supports these codecs?
veets
<h6>
 
Posts: 4
Joined: Wed Oct 10, 2012 9:58 pm

Re: firefox video issue

Postby zcorpan » Mon Oct 15, 2012 8:04 am

veets wrote:thanks for this. I went to the hosting site and they do NOT list .ovg or .webm as supported mime types. .

Is it an apache server? Maybe you can fix this yourself with .htaccess as suggested in MDN.

veets wrote:.mp4 IS listed, which explains why chrome played the page.

I think Chrome ignores the MIME type, it just tries to play it even if the server is mis-configured.

veets wrote:on further testing I realised that chrome
would ONLY play the .mp4 file.
Then maybe the other video files are corrupt?

veets wrote:spoke to that mob(go-daddy) and the bloke said the video files were corrupt.
couldn't say why chrome played the mp4 okay....
Maybe the MP4 file is not corrupt?

Can you link to your video files?
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Re: firefox video issue

Postby veets » Tue Oct 16, 2012 10:59 pm

zcorpan wrote:
veets wrote:thanks for this. I went to the hosting site and they do NOT list .ovg or .webm as supported mime types. .

Is it an apache server? Maybe you can fix this yourself with .htaccess as suggested in MDN.

veets wrote:.mp4 IS listed, which explains why chrome played the page.

I think Chrome ignores the MIME type, it just tries to play it even if the server is mis-configured.

veets wrote:on further testing I realised that chrome
would ONLY play the .mp4 file.
Then maybe the other video files are corrupt?

veets wrote:spoke to that mob(go-daddy) and the bloke said the video files were corrupt.
couldn't say why chrome played the mp4 okay....
Maybe the MP4 file is not corrupt?
this worked because it was a video type they supported

Can you link to your video files?


thank you again...you pointed the way. I got an email response to the problem, as I had impatiently sent in a query online as well as by phone. they totally support me adding these video types and showed me how to do it in a web.config file in the site's root directory. having done that, the videos played in both browsers.
without your help I never would have thought of that...
veets
<h6>
 
Posts: 4
Joined: Wed Oct 10, 2012 9:58 pm


Return to Help & Advice

Who is online

Users browsing this forum: No registered users and 1 guest