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

JWPlayer 6 and pseudo streaming (Nginx mp4 module)


I've set up a basic example with JWPlayer 6, trying to get pseudo streaming to work. In Chrome it appears to be working just fine (HTML5), but in Firefox and Opera (Flash) it does not.

I have configured my nginx server as such:
bc.. location ~ .mp4$ {
access_log /var/log/nginx/mp4.access.log;
mp4;
mp4_buffer_size 1m;
mp4_max_buffer_size 15m;
}



The access log does not contain _any_ requests with the _start_ query string.

HTML:
bc.. <script type='text/javascript'>
jwplayer('my-video').setup({
playlist: [{
sources: [{
file: 'http://vpn.davidsteinsland.net/media/video/movie-1000kbps.mp4',
label: '1000 kbps',
type: 'mp4'
}, {
file: 'http://vpn.davidsteinsland.net/media/video/movie.mp4',
label: 'HD',
type: 'mp4'
}],
title: 'Test video',
captions: [{
file: "sub.srt",
label: "Norwegian"
}]
}],
flashplayer: 'jwplayer/jwplayer.flash.swf',
width: '640',
height: '360',
startparam: 'start',
primary: 'html5',
autostart: 'true',
});
</script>



Information about the mp4 module:
http://nginx.org/en/docs/http/ngx_http_mp4_module.html

3 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

It works in Chrome because HTML5 does not require a pseudo streaming module.

We have some information here – http://www.longtailvideo.com/support/jw-player/28855/pseudo-streaming-in-flash

I would try apstart, or starttime, instead of start, though.

JW Player

User  
0 rated :

Correct me if I am wrong, but it would seem as though the problem perhaps was with the movie file. It was transcoded from MKV to MP4 using _avconv_, but this does not support the metadata entries in the beginning of the file I think. After I ran the file through MP4Box, it appears that things started to work. The query parameter is still not found in the logs, though ...

Ethan Feldman

JW Player Support Agent  
0 rated :

Ah, yes, then that might be the issue, the encoding.

This question has received the maximum number of answers.