mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
adjust 360p bitrate
This commit is contained in:
parent
6beb7121a9
commit
5f7f1f0258
2 changed files with 4 additions and 6 deletions
|
@ -1939,7 +1939,7 @@
|
||||||
html += '<a class="viewMenuLink viewMenuTextLink' + (view == 'tvshows' ? selectedCssClass : '') + '" href="tvrecommended.html">' + (view == 'tvshows' ? selectedHtml : '') + '<span class="viewName">TV</span></a>';
|
html += '<a class="viewMenuLink viewMenuTextLink' + (view == 'tvshows' ? selectedCssClass : '') + '" href="tvrecommended.html">' + (view == 'tvshows' ? selectedHtml : '') + '<span class="viewName">TV</span></a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (counts.SongCount) {
|
if (counts.SongCount || counts.MusicVideoCount) {
|
||||||
html += '<a class="viewMenuLink viewMenuImageLink" href="musicrecommended.html" title="Music"><img src="css/images/views/music.png" alt="Music" /></a>';
|
html += '<a class="viewMenuLink viewMenuImageLink" href="musicrecommended.html" title="Music"><img src="css/images/views/music.png" alt="Music" /></a>';
|
||||||
html += '<a class="viewMenuLink viewMenuTextLink' + (view == 'music' ? selectedCssClass : '') + '" href="musicrecommended.html">' + (view == 'music' ? selectedHtml : '') + '<span class="viewName">Music</span></a>';
|
html += '<a class="viewMenuLink viewMenuTextLink' + (view == 'music' ? selectedCssClass : '') + '" href="musicrecommended.html">' + (view == 'music' ? selectedHtml : '') + '<span class="viewName">Music</span></a>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -493,7 +493,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (videoStream.Width >= 720) {
|
else if (videoStream.Width >= 720) {
|
||||||
baseParams.videoBitrate = 400000;
|
baseParams.videoBitrate = 420000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -840,8 +840,6 @@
|
||||||
|
|
||||||
self.playlist = items;
|
self.playlist = items;
|
||||||
currentPlaylistIndex = 0;
|
currentPlaylistIndex = 0;
|
||||||
|
|
||||||
var nowPlayingBar = $('#nowPlayingBar');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
self.playInternal = function (item, startPosition, user) {
|
self.playInternal = function (item, startPosition, user) {
|
||||||
|
@ -1541,7 +1539,7 @@
|
||||||
// We have media info
|
// We have media info
|
||||||
if (videoStream && videoStream.Width) {
|
if (videoStream && videoStream.Width) {
|
||||||
|
|
||||||
maxAllowedWidth = Math.min(videoStream.Width, maxAllowedWidth);
|
maxAllowedWidth = videoStream.Width;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some 1080- videos are reported as 1912?
|
// Some 1080- videos are reported as 1912?
|
||||||
|
@ -1556,7 +1554,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (maxAllowedWidth >= 480) {
|
if (maxAllowedWidth >= 480) {
|
||||||
options.push({ name: '480p', maxWidth: 720, videoBitrate: 400000 });
|
options.push({ name: '480p', maxWidth: 720, videoBitrate: 420000 });
|
||||||
}
|
}
|
||||||
if (maxAllowedWidth >= 360) {
|
if (maxAllowedWidth >= 360) {
|
||||||
options.push({ name: '360p', maxWidth: 640, videoBitrate: 400000 });
|
options.push({ name: '360p', maxWidth: 640, videoBitrate: 400000 });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue