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

How to auto select the highest quality when in Full Screen


I found this code

jwplayer().onFullscreen(function(event) {
jwplayer().setCurrentQuality(0);
});

But I cant get it to work
I want to make 360p as default as it is, and the best quality in full screen

My code is like this
jwplayer("player").onFullscreen(function(event) {
jwplayer("player").setCurrentQuality(0);
});
jwplayer("player").setup({
width: 854,
height: 480,
primary: "html5",
sources: [{
file: " ",
type: 'mp4',
label: "1080p HD"
},{
file: " ",
type: 'mp4',
label: "720p HD"
},{
file: " ",
label: "480p"
},{
file: " ",
type: 'mp4',
label: "360p",
"default": "true"
}]});

3 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Hi,

Is there a live page that you can set up to have us look at?

rimiperi

User  
0 rated :

I set a test page here
Its a test domain

http://aww.website/html5/index1.html

Andrew

JW Player Support Agent  
0 rated :

Please place the following after your player embed.
jwplayer(“test”).onFullscreen(function(event) {
jwplayer(“test”).setCurrentQuality(0);
});
instead of before. This seemed to fix things for me.

This question has received the maximum number of answers.