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

Switching video streaming to higher bit-rate automatically if bandwidth available


While streaming videos we want to start videos with a lower bit-rate and then switch to a higher bit-rate, if bandwidth is available, automatically.
Currently we are doing this manually by selecting video resolution in screen.
We don't want our user's to wait for long while starting videos.
Please suggest what all configurations required to achieve this.

1 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

I am not quite sure I understand the question as the player will perform this naturally with ABR (Adaptive Bit Rate). Most often people want to force a quality with a set stream and after a certain amount of seconds switch the stream to a dynamic feed. You can achieve this with the following sample code:

jwplayer().on(‘firstFrame’,function() {jwplayer().setCurrentQuality(2);});

setTimeout(function(){jwplayer().setCurrentQuality(0);}, 10000);

(2) Will dictate the quality selected in the quality array.

Hope this helps,

Randy

This question has received the maximum number of answers.