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

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>

3 Community Answers

Donni

JW Player Support Agent  
0 rated :

Media Format Reference

Your file may have the wrong mimetype or needs to be encoded for web (the moov atom isn’t at the beginning of the file)

theballetbod

User  
0 rated :

But when I play same file in HTML 5 Video player, it runs fine

Donni

JW Player Support Agent  
0 rated :

The browser may be forcing it to play. I would recommend re-encoding the video and check “web optimized” or “fast start” depending on which application you are using to encode it.

This question has received the maximum number of answers.