mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
update SocketHttpListener
This commit is contained in:
parent
a8a609a04d
commit
0129027afa
@ -20,6 +20,8 @@ button.listItem {
|
||||
line-height: 160%;
|
||||
border-bottom: 1px solid #2a2a2a;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.listItem-nosidepadding {
|
||||
|
@ -165,7 +165,7 @@
|
||||
|
||||
var html = '';
|
||||
html += '<h2 class="dialogHeader">';
|
||||
html += '<button type="button" is="emby-button" icon="arrow-back" class="fab mini btnCloseDialog" tabindex="-1"><iron-icon icon="arrow-back"></iron-icon></button>';
|
||||
html += '<button type="button" is="emby-button" icon="arrow-back" class="fab mini btnCloseDialog" tabindex="-1"><i class="md-icon">arrow_back</i></button>';
|
||||
|
||||
html += '<div style="display:inline-block;margin-left:.6em;vertical-align:middle;">' + options.library.Name + '</div>';
|
||||
html += '</h2>';
|
||||
|
@ -427,6 +427,7 @@
|
||||
|
||||
//html += '<div>';
|
||||
var showTranscodingInfo = false;
|
||||
|
||||
if (session.TranscodingInfo && session.TranscodingInfo.IsAudioDirect && session.TranscodingInfo.IsVideoDirect) {
|
||||
html += Globalize.translate('LabelPlayMethodDirectStream');
|
||||
}
|
||||
@ -455,28 +456,30 @@
|
||||
|
||||
var line = [];
|
||||
|
||||
if (session.TranscodingInfo.Bitrate) {
|
||||
if (session.TranscodingInfo) {
|
||||
if (session.TranscodingInfo.Bitrate) {
|
||||
|
||||
if (session.TranscodingInfo.Bitrate > 1000000) {
|
||||
line.push((session.TranscodingInfo.Bitrate / 1000000).toFixed(1) + ' Mbps');
|
||||
} else {
|
||||
line.push(Math.floor(session.TranscodingInfo.Bitrate / 1000) + ' kbps');
|
||||
if (session.TranscodingInfo.Bitrate > 1000000) {
|
||||
line.push((session.TranscodingInfo.Bitrate / 1000000).toFixed(1) + ' Mbps');
|
||||
} else {
|
||||
line.push(Math.floor(session.TranscodingInfo.Bitrate / 1000) + ' kbps');
|
||||
}
|
||||
}
|
||||
}
|
||||
if (session.TranscodingInfo.Container) {
|
||||
if (session.TranscodingInfo.Container) {
|
||||
|
||||
line.push(session.TranscodingInfo.Container);
|
||||
}
|
||||
line.push(session.TranscodingInfo.Container);
|
||||
}
|
||||
|
||||
if (session.TranscodingInfo.VideoCodec) {
|
||||
if (session.TranscodingInfo.VideoCodec) {
|
||||
|
||||
//line.push(Globalize.translate('LabelVideoCodec').replace('{0}', session.TranscodingInfo.VideoCodec));
|
||||
line.push(session.TranscodingInfo.VideoCodec);
|
||||
}
|
||||
if (session.TranscodingInfo.AudioCodec && session.TranscodingInfo.AudioCodec != session.TranscodingInfo.Container) {
|
||||
//line.push(Globalize.translate('LabelVideoCodec').replace('{0}', session.TranscodingInfo.VideoCodec));
|
||||
line.push(session.TranscodingInfo.VideoCodec);
|
||||
}
|
||||
if (session.TranscodingInfo.AudioCodec && session.TranscodingInfo.AudioCodec != session.TranscodingInfo.Container) {
|
||||
|
||||
//line.push(Globalize.translate('LabelAudioCodec').replace('{0}', session.TranscodingInfo.AudioCodec));
|
||||
line.push(session.TranscodingInfo.AudioCodec);
|
||||
//line.push(Globalize.translate('LabelAudioCodec').replace('{0}', session.TranscodingInfo.AudioCodec));
|
||||
line.push(session.TranscodingInfo.AudioCodec);
|
||||
}
|
||||
}
|
||||
|
||||
if (line.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user