
How do I reverse qualities order?
I'm trying to reverse the quality order with
getQualityLevels()
onQualityLevels()
How can I do this?
I'm trying to reverse the quality order with
getQualityLevels()
onQualityLevels()
How can I do this?
You will need to reverse the order in your sources block:
jwplayer(“player”).setup({
image: ‘video.jpg’,
sources: [
{file: ‘video-src1.mp4’, label: ’320p’},
{file: ‘video-src2.mp4’, label: ‘540p’, ‘default’: true},
{file: ‘video-src3.mp4’, label: ’720p’}
],
width:‘100%’
});
Change to:
jwplayer(“player”).setup({
image: ‘video.jpg’,
sources: [
{file: ‘video-src3.mp4’, label: ’720p’},
{file: ‘video-src2.mp4’, label: ‘540p’, ‘default’: true},
{file: ‘video-src1.mp4’, label: ’320p’}
],
width:‘100%’
});
-Cooper
The thing is that I have and encoded script that does link grabbing, and orders like that
I would like to know how to invert the quality array with javascript API
getQualityLevels()
onQualityLevels()
This cannot be with any API methods, the only way to do this is to re-order the sources array manually using JavaScript.
Cooper