diff options
author | Alib <aliboba@free.fr> | 2010-03-18 11:10:34 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-18 11:10:34 +0100 |
commit | beecdfa67aa0067a69e948c6903c85b6baa03375 (patch) | |
tree | bd213d3967a7663b08849917e1840e091c4f4de5 /js | |
parent | a5234303ee152e0f24d626425809d918b10d9b1f (diff) | |
download | istreamdev-beecdfa67aa0067a69e948c6903c85b6baa03375.tar.gz istreamdev-beecdfa67aa0067a69e948c6903c85b6baa03375.tar.bz2 |
added enc status
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index 16144d4..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;
- if (type == 'tv') { var pic='tv.png';var typerunning = 'Tv: ' }
- else if (type == 'rec') { var pic='record.png'; var typerunning = 'Rec: ' }
- else if (type == 'vid') { var pic='video.png'; var typerunning = 'Vid: ' }
- $('#home #runningsessions').append('<li class="arrow"><a rel="' + session + '" href="#"><img class="menuicon" src="img/' + pic + '" /><span class="menuname">' + typerunning + name + '</span></a></li>');
+ 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">' + encstatus + name + '</span></a></li>');
});
$('#home #runningsessions').append('<li><a rel="killsessions" href="#"><span class="menuname">Stop all sessions</span></a></li>');
}
|