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

How do I reverse qualities order?


I'm trying to reverse the quality order with

getQualityLevels()
onQualityLevels()

How can I do this?

3 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

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

rimiperi

User  
0 rated :

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()

Cooper Reid

JW Player Support Agent  
0 rated :

This cannot be with any API methods, the only way to do this is to re-order the sources array manually using JavaScript.
Cooper

This question has received the maximum number of answers.