From 8fc1c01ad59f6b7a28c5764b74056ce2c21a9ad2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 12 Nov 2013 11:08:23 -0500 Subject: [PATCH] added ChannelLayout --- dashboard-ui/scripts/Itemdetailpage.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index 4f2d27f800..82cc66a204 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -802,6 +802,10 @@ var attributes = []; + if (stream.Language) { + attributes.push('' + stream.Language + ''); + } + if (stream.Codec && stream.Codec != "dca") { attributes.push('' + stream.Codec + ''); } @@ -810,10 +814,6 @@ attributes.push('' + stream.Profile + ''); } - if (stream.Language) { - attributes.push('' + stream.Language + ''); - } - if (stream.Width || stream.Height) { attributes.push('' + stream.Width + 'x' + stream.Height + ''); } @@ -822,12 +822,15 @@ attributes.push('' + stream.AspectRatio + ''); } - if (stream.BitRate && stream.Codec != "mjpeg") { - attributes.push('' + (parseInt(stream.BitRate / 1000)) + ' kbps'); + if (stream.ChannelLayout) { + attributes.push('' + stream.ChannelLayout + ''); + } + else if (stream.Channels) { + attributes.push('' + stream.Channels + ' ch'); } - if (stream.Channels) { - attributes.push('' + stream.Channels + ' ch'); + if (stream.BitRate && stream.Codec != "mjpeg") { + attributes.push('' + (parseInt(stream.BitRate / 1000)) + ' kbps'); } if (stream.SampleRate) {