Embed: mews: disable ABR when the viewer has selected a specific video track

This commit is contained in:
Cat 2021-08-05 15:33:09 +02:00 committed by Thulinma
parent e17420534d
commit 2f12c9fca7
7 changed files with 135 additions and 26 deletions

View file

@ -724,6 +724,11 @@ p.prototype.build = function (MistVideo,callback) {
};
f();
}
me.api.ABR_resize = function(size){
MistVideo.log("Requesting the video track with the resolution that best matches the player size");
me.api.setTracks({video:"~"+[size.width,size.height].join("x")});
};
me.api.unload = function(){
try {