
Live Streaming issue (Video doesn't play until it is fully buffered)
Hi,
My videos (mp4) are hosted on Amazon server and these are 30 mins and above in length. When I click Play button, jwplayer starts buffering and doesn't play video until its fully biffered. Need help.
My code is given below.
<script src="{{ path('@web/js/jwplayer/jwplayer.js') }}"></script>
<script>jwplayer.key="api_key_here=";</script>
<script type="text/javascript">
var playerInstance = jwplayer("mediaplayer");
$(function(){
playerInstance.setup({
'width': '450',
'height': '292',
'file': "{{lesson.video_file_link}}",
'primary':'flash',
'autostart' : 'false',
}).on('play', function(e) {
//some code
}).on('pause', function(e) {
//some code
}).on('complete', function(e) {
//some code
});
});
</script>