diff options
-rw-r--r-- | js/istreamdev.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index 763dd3a..2218667 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -184,10 +184,13 @@ var dataString = "action=getRunningSessions"; session = broadcast.session;
name = broadcast.name;
type = broadcast.type;
+ encoding = broadcast.encoding;
+ if (encoding == 1) { encstatus = '*'; }
+ else { encstatus = ''; }
if (type == 'tv') { var pic='tv.png'; }
else if (type == 'rec') { var pic='record.png'; }
else if (type == 'vid') { var pic='video.png'; }
- $('#home #runningsessions').append('<li class="arrow"><a rel="' + session + '" href="#"><img class="menuicon" src="img/' + pic + '" /><span class="menuname">*Live: ' + name + '</span></a></li>');
+ $('#home #runningsessions').append('<li class="arrow"><a rel="' + session + '" href="#"><img class="menuicon" src="img/' + pic + '" /><span class="menuname">' + encstatus + name + '</span></a></li>');
});
$('#home #runningsessions').append('<li><a rel="killsessions" href="#"><span class="menuname">Stop all sessions</span></a></li>');
}
|