1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update video quality options

This commit is contained in:
Luke Pulverenti 2015-06-13 11:16:08 -04:00
parent 4556c02e47
commit 1299364d00
2 changed files with 8 additions and 6 deletions

View file

@ -862,9 +862,10 @@
var videoStream = self.currentMediaSource.MediaStreams.filter(function (stream) {
return stream.Type == "Video";
})[0];
var videoWidth = videoStream ? videoStream.Width : null;
var videoHeight = videoStream ? videoStream.Height : null;
var options = self.getVideoQualityOptions(videoHeight);
var options = self.getVideoQualityOptions(videoWidth, videoHeight);
if (isStatic) {
options[0].name = "Direct";