v3nt
v3nt

Reputation: 2912

video will play in firefox but not when in html5 video tag?

so we're building a video site with a html5 player (and backup flash for windows).

But what's really stumping me is when i view this file in firefox it plays; http://www.roguefilms.com.local/media/uploads/2010/07/1495/8_lg-poke.mov (stored locally) but when its in the html video tag is does nothing. It shows the poster but doesn't play the video. It doesn't even show the 'Sorry - your browser is not supported!'

I know ff prefers ogg and we can use the flash backup player but if it can play it as a ht64 .mov without the player why can't it with? Seems a bit daft?

If anyone knows anything it would be great...

<video controls="controls"  
    id="myVideo"
    src="/media/uploads/2010/07/1495/8_lg-poke.mov"
    poster="/media/uploads/2010/07/1495/still.jpg" 
    height="360" 
    width="640">

            Sorry - your browser is not supported!

</video>

best, Dan.

Upvotes: 5

Views: 13583

Answers (3)

sdwilsh
sdwilsh

Reputation: 4682

When you just load the .mov file, the content-type your server provides causes Firefox to check and see and see if any plugins handle the content. In this case, QuickTime handles it, which is why it plays.

The video tag doesn't launch plugins to play content, however.

Upvotes: 5

Ian Devlin
Ian Devlin

Reputation: 18870

Firefox doesn't support h264, as you mentioned, although am surprised it plays the video in its own, unless its forcing it into a Flash player automatically, which is possible.

To get the "sorry" message to display you'll need to use the source element:

<video controls="controls" id="myVideo" poster="/media/uploads/2010/07/1495/still.jpg" height="360" width="640">
   <source src="/media/uploads/2010/07/1495/8_lg-poke.mov">
   Sorry - your browser is not supported!
</video>

I wrote this back in April of last year, but it might help: html5laboratory - using the video element.

Upvotes: 1

Axel Knauf
Axel Knauf

Reputation: 1683

We once had a similar issue with the web server (Apache, in our case) not sending the proper MIME-type for the video file and Firefox first downloaded it completely before starting to play it. Is it possible that the player would work if you just waited long enough? You could use Firebug to see if your browser transfers anything.

Upvotes: 0

Related Questions