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

quality selectors set bitrates and resolution (new values from Tikuf)

This commit is contained in:
Techywarrior 2013-03-27 22:05:26 -07:00
parent 06c6765dda
commit e863a9449d
2 changed files with 15 additions and 13 deletions

View file

@ -70,13 +70,12 @@
//display image and title
var imageTags = item.ImageTags || {};
var html = '';
var url = "";
if (item.BackdropImageTags && item.BackdropImageTags.length) {
url = ApiClient.getImageUrl(item.Id, {
type: "Backdrop",
height: 36,
height: 30,
tag: item.BackdropImageTags[0]
});
}
@ -84,7 +83,7 @@
url = ApiClient.getImageUrl(item.Id, {
type: "Thumb",
height: 36,
height: 30,
tag: item.ImageTags.Thumb
});
}
@ -92,7 +91,7 @@
url = ApiClient.getImageUrl(item.Id, {
type: "Primary",
height: 36,
height: 30,
tag: item.ImageTags.Primary
});
}else {
@ -100,7 +99,7 @@
}
var name = item.Name;
var seriesName = '';
var series_name = '';
if (item.IndexNumber != null) {
name = item.IndexNumber + " - " + name;
@ -109,11 +108,11 @@
name = item.ParentIndexNumber + "." + name;
}
if (item.SeriesName || item.Album || item.ProductionYear) {
seriesName = item.SeriesName || item.Album || item.ProductionYear;
series_name = item.SeriesName || item.Album || item.ProductionYear;
}
html += "<div><img class='nowPlayingBarImage' alt='' title='' src='" + url + "' style='height:36px;display:inline-block;' /></div>";
html += '<div>'+name+'<br/>'+seriesName+'</div>';
html += "<div><img class='clientNowPlayingImage' alt='' title='' src='" + url + "' style='height:30px;display:inline-block;' /></div>";
html += '<div>'+name+'<br/>'+series_name+'</div>';
$('#mediaInfo', nowPlayingBar).html(html);
},
@ -172,7 +171,7 @@
var baseParams = {
audioChannels: 2,
audioBitrate: 128000,
videoBitrate: 1800000,
videoBitrate: 1500000,
maxWidth: screenWidth,
maxHeight: screenHeight,
StartTimeTicks: 0