
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"
}]});