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

added ChannelLayout

This commit is contained in:
Luke Pulverenti 2013-11-12 11:08:23 -05:00
parent 0d42ff8792
commit 8fc1c01ad5

View file

@ -802,6 +802,10 @@
var attributes = [];
if (stream.Language) {
attributes.push('<span class="mediaInfoAttribute">' + stream.Language + '</span>');
}
if (stream.Codec && stream.Codec != "dca") {
attributes.push('<span class="mediaInfoAttribute">' + stream.Codec + '</span>');
}
@ -810,10 +814,6 @@
attributes.push('<span class="mediaInfoAttribute">' + stream.Profile + '</span>');
}
if (stream.Language) {
attributes.push('<span class="mediaInfoAttribute">' + stream.Language + '</span>');
}
if (stream.Width || stream.Height) {
attributes.push('<span class="mediaInfoAttribute">' + stream.Width + 'x' + stream.Height + '</span>');
}
@ -822,12 +822,15 @@
attributes.push('<span class="mediaInfoAttribute">' + stream.AspectRatio + '</span>');
}
if (stream.BitRate && stream.Codec != "mjpeg") {
attributes.push('<span class="mediaInfoAttribute">' + (parseInt(stream.BitRate / 1000)) + ' kbps</span>');
if (stream.ChannelLayout) {
attributes.push('<span class="mediaInfoAttribute">' + stream.ChannelLayout + '</span>');
}
else if (stream.Channels) {
attributes.push('<span class="mediaInfoAttribute">' + stream.Channels + ' ch</span>');
}
if (stream.Channels) {
attributes.push('<span class="mediaInfoAttribute">' + stream.Channels + ' ch</span>');
if (stream.BitRate && stream.Codec != "mjpeg") {
attributes.push('<span class="mediaInfoAttribute">' + (parseInt(stream.BitRate / 1000)) + ' kbps</span>');
}
if (stream.SampleRate) {