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

HD Quality Toggling - cookie save


Hello is still not work HD Quality Toggling selection save (JWP 7.1.0)?
When You plan to fix this issue?

2 Community Answers

Todd

JW Player Support Agent  
2 rated :

I will get an updated timeframe from the engineers and update you when I know more.

Cooper Reid

JW Player Support Agent  
1 rated :

As a temporary workaround while this is being fixed, you could tie into our event listeners and read/write to a cookie:

// $cookie is a cookie utility that has a getter/setter
// http://stackoverflow.com/questions/22811065/how-to-set-and-read-cookies-javascript#answer-22811241

jwplayer(“player”).setup({
file: ‘bunny.mp4’,
image: ‘bunny.jpg’,
sources: [
{file: ‘bunny.mp4’, label: ’320p’},
{file: ‘bunny.mp4’, label: ‘540p’, ‘default’: true},
{file: ‘bunny.mp4’, label: ’720p’}
],
width:‘100%’
});
jwplayer().on(‘levelsChanged’, function(evt) {
$cookie.setItem(‘qualityIdx’, evt.currentQuality);
});
jwplayer().on(‘firstFrame’, function(evt) {
var preselected = $cookie.getItem(‘qualityIdx’);
if(preselected) {
jwplayer().setCurrentQuality(preselected);
console.log(preselected);
}
});

Cooper

This question has received the maximum number of answers.