
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?
Hello is still not work HD Quality Toggling selection save (JWP 7.1.0)?
When You plan to fix this issue?
I will get an updated timeframe from the engineers and update you when I know more.
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