support choosing optimal video version
This commit is contained in:
parent
02a810cf1e
commit
0f37c36d24
3 changed files with 33 additions and 10 deletions
|
@ -587,14 +587,14 @@
|
|||
// Just use the first audio stream
|
||||
return audioStreams.length ? audioStreams[0].Index : null;
|
||||
};
|
||||
|
||||
|
||||
function getVideoQualityOptions(mediaStreams) {
|
||||
|
||||
var videoStream = mediaStreams.filter(function (stream) {
|
||||
return stream.Type == "Video";
|
||||
})[0];
|
||||
|
||||
var bitrateSetting = parseInt(localStorage.getItem('preferredVideoBitrate') || '') || 1500000;
|
||||
var bitrateSetting = self.getBitrateSetting();
|
||||
|
||||
var maxAllowedWidth = Math.max(screen.height, screen.width);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue