1
0
Fork 0
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:
Luke Pulverenti 2013-09-07 11:59:47 -04:00
parent 6beb7121a9
commit 5f7f1f0258
2 changed files with 4 additions and 6 deletions

View file

@ -1939,7 +1939,7 @@
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 viewMenuTextLink' + (view == 'music' ? selectedCssClass : '') + '" href="musicrecommended.html">' + (view == 'music' ? selectedHtml : '') + '<span class="viewName">Music</span></a>';
}

View file

@ -493,7 +493,7 @@
}
else if (videoStream.Width >= 720) {
baseParams.videoBitrate = 400000;
baseParams.videoBitrate = 420000;
}
}
@ -840,8 +840,6 @@
self.playlist = items;
currentPlaylistIndex = 0;
var nowPlayingBar = $('#nowPlayingBar');
};
self.playInternal = function (item, startPosition, user) {
@ -1541,7 +1539,7 @@
// We have media info
if (videoStream && videoStream.Width) {
maxAllowedWidth = Math.min(videoStream.Width, maxAllowedWidth);
maxAllowedWidth = videoStream.Width;
}
// Some 1080- videos are reported as 1912?
@ -1556,7 +1554,7 @@
}
if (maxAllowedWidth >= 480) {
options.push({ name: '480p', maxWidth: 720, videoBitrate: 400000 });
options.push({ name: '480p', maxWidth: 720, videoBitrate: 420000 });
}
if (maxAllowedWidth >= 360) {
options.push({ name: '360p', maxWidth: 640, videoBitrate: 400000 });