
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