Embed: mews: disable ABR when the viewer has selected a specific video track
This commit is contained in:
parent
e17420534d
commit
2f12c9fca7
7 changed files with 135 additions and 26 deletions
|
@ -1383,7 +1383,11 @@ MistSkins["default"] = {
|
|||
var checkboxes = {};
|
||||
|
||||
function changeToTracks(type,value){
|
||||
MistVideo.log("User selected "+type+" track with id "+value);
|
||||
if (value) { MistVideo.log("User selected "+type+" track with id "+value); }
|
||||
else {
|
||||
MistVideo.log("User selected automatic track selection for "+type);
|
||||
MistUtil.event.send("trackSetToAuto",type,MistVideo.video);
|
||||
}
|
||||
|
||||
if (!MistVideo.options.setTracks) { MistVideo.options.setTracks = {}; }
|
||||
MistVideo.options.setTracks[type] = value;
|
||||
|
@ -2430,6 +2434,12 @@ MistSkins.dev = {
|
|||
}
|
||||
return new Promise(function(resolve,reject){resolve();},function(){});
|
||||
}
|
||||
},
|
||||
"Current bitrate": function(){
|
||||
if (MistVideo.player.monitor && ("currentBps" in MistVideo.player.monitor)) {
|
||||
var out = MistUtil.format.bits(MistVideo.player.monitor.currentBps);
|
||||
return out ? out+"ps" : out;
|
||||
}
|
||||
}
|
||||
};
|
||||
var updates = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue