Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Wowza, HTML5, Firefox, and MP4


Hi,

Forgive me if this has already been answered, but I searched for a while and couldn't find a solution that worked for me. Before I get into the details of the configurations I tried, can someone tell me if it's possible to use JWPlayer to stream MP4 files from Wowza Media Server to a non-Safari browser (Firefox or Chrome, for example) without Flash Player installed - using HTML5, in other words?

I saw some examples using m3u8 playlists, but I wasn't sure if using a playlist was a requirement, or if this would even work in non-Safari browsers.

Thanks so much.

Dan

13 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Hi Dan,

This is possible with Chrome with Flash disabled.

Firefox does not support MP4 files in HTML5 mode though.

You can test this here – http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/single_mp4.html

-Ethan

JW Player

User  
0 rated :

Hi Ethan,

Thanks for your quick response. I'm a bit confused about the outcome of the test, though. I'm using Firefox 11 on Windows 7, and when I disable Flash and attempt to play the video (in HTML5 rendering mode) it redirects me to a different site (http://wpc.413c.edgecastcdn.net) but plays the video anyway, but at a smaller resolution. With Flash enabled, the test produces the outcome I'd expect - it stays on the same page and plays the video at the resolution of the preview picture. Can you explain what might be happening here?

Thanks.
Dan

Ethan Feldman

JW Player Support Agent  
0 rated :

Hi Dan,

The player goes Flash > HTML5 > Download, so Firefox is probably trying to download the video.

More information – http://www.longtailvideo.com/html5/

Thanks,
-Ethan

JW Player

User  
0 rated :

Ethan,

Aha - I forgot about the download fallback option. Thanks for clarifying.

So, this brings me to the code I'm trying to get to work with Chrome (with Flash disabled).

The following code works (with Flash enabled, obviously):

<embed flashvars="file=/test.mp4&streamer=rtmp://myserver.com:1935/lrc&pro
vider=rtmp&autostart=true" allowfullscreen="true" allowscriptaccess="always" id="player1" name="player1" s
rc="/jwplayer/player.swf" height="456" width="810">

But when I try to make HTML5-friendly code for the same server and file, it doesn't work:

<script type="text/javascript">
jwplayer('mediaplayer').setup({
'id': 'player1',
'width': '810',
'height': '456',
'image': '/thumbs/bunny.jpg',
'modes': [
{type: 'html5',
config: {
file: "http://myserver.com:1935/lrc/mp4:test.mp4",
provider: "http", autostart: "true"}
},
{type: 'flash', src: 'player.swf'},
{type: 'download'}
]
});
</script>

It gives me the error "The video could not be loaded, either because the server or network failed or because the format is not supported: http://myserver.com:1935/lrc/mp4:test.mp4" I made sure cupertinostreaming was enabled on the Wowza server, but haven't made any other changes yet.

Can you see what I could be doing wrong?

Thanks again,
Dan

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you show me a link to where it isn’t working?

JW Player

User  
0 rated :

Unfortunately, I can't. It's against my employer's policy to allow streaming outside our subnet for copyright reasons. We're an educational institute and if we allow these films to be streamed outside the classroom, we could get sued.

I'd be happy to give you as much information as possible, though - screenshots, server configs (though I'll probably have to obfuscate information as I've done above with 'myserver.com'), etc.

Dan

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you email something? I can’t debug something I can’t see…

JW Player

User  
0 rated :

I'd have to poke a hole in our firewall for you, so I'd need your IP address. And I would have to email it to you so that our server information isn't posted to this forum. But I'll have to run it by my manager first. I know it might be more convenient for you, but I don't understand what you'd be able to see that I couldn't just post for you - all you'll be able to see is the source code of the webpage (which I can give you) and the error message (which I can also give you). But if that's what you'd prefer, would you be willing to give me an IP and work on this via email?

Ethan Feldman

JW Player Support Agent  
0 rated :

That’s fine. You can email me here – http://www.longtailvideo.com/support/contact-us, and I will give you our office IP.

JW Player

User  
0 rated :

Sounds good. I have a meeting to get to now, so if I don't have time to follow up with you today, I'll contact you tomorrow. Thanks!

Dan

Ethan Feldman

JW Player Support Agent  
0 rated :

Ok, np!

JW Player

User  
0 rated :

Just a follow-up for anybody searching these forums: we were never able to get it to work. The only way I could get an MP4 to play with JWPlayer in Chrome using HTML5 (without Flash) was by serving it through apache, and that's not streaming - it's just downloading. If anybody has any hints on how to get this working, let me know.

Ethan Feldman

JW Player Support Agent  
0 rated :

That’s because HTML5 itself has limited support for streaming…

http://www.longtailvideo.com/html5/

This question has received the maximum number of answers.