diff options
author | Alib <aliboba@free.fr> | 2010-03-29 13:29:02 +0200 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-29 13:29:02 +0200 |
commit | 229e825d27c612be4530ee3005f8a0b2cda6e655 (patch) | |
tree | ddf58fdd23c233cfde2e2b302af2d233edd49a38 /js | |
parent | 9b4870ed3581b5469ae06e4900bd1de0b96353d0 (diff) | |
download | istreamdev-229e825d27c612be4530ee3005f8a0b2cda6e655.tar.gz istreamdev-229e825d27c612be4530ee3005f8a0b2cda6e655.tar.bz2 |
added on error image
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index e5488a3..061fe6e 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -190,6 +190,7 @@ $('#streaming').bind('pageAnimationEnd', function(event, info){ $('#streaming').bind('pageAnimationStart', function(event, info){
var session = $("#streaming").find('span[rel="session"]').text();
if (info.direction == 'out') {
+ var time = new Date();
$('#player').html('<img class="thumbnail" id="thumbnail" src="ram/session' + session + '/thumb.png"></img>');
}
})
@@ -518,7 +519,7 @@ function gen_streaming(session) { $("#streaming").find('span[rel="thumbheight"]').html(stream.thumbheight);
if (stream.type == "tv")
{
- $('#streaming').find('h1').html('<img class="menuicon" src="img/tv.png" /> ' + stream.name );
+ $('#streaming').find('h1').html('<img class="menuicon" src="img/tv.png" onerror="this.src=\'img/nologoTV.png\'" /> ' + stream.name );
$('#streaming').find('#player').css('width', '90px');
var streaminfo = '<li><span class="name_now">Now: ' + stream.now_title + '</span>';
streaminfo += '<span class="epgtime_now">' + stream.now_time + '</span>';
@@ -529,7 +530,7 @@ function gen_streaming(session) { }
else if (stream.type == "rec")
{
- $('#streaming').find('h1').html('<img class="menuicon" src="img/record.png" /> ' + stream.name );
+ $('#streaming').find('h1').html('<img class="menuicon" src="img/record.png" onerror="this.src=\'img/nologoREC.png\'" /> ' + stream.name );
$('#streaming').find('#player').css('width', '90px');
var streaminfo = '<li><span class="name_now">' + stream.name + '</span>';
streaminfo += '<span class="epgtime_now">Recorded: ' + stream.recorded + '</span>';
@@ -538,7 +539,7 @@ function gen_streaming(session) { }
else if (stream.type == "vid")
{
- $('#streaming').find('h1').html('<img class="menuicon" src="img/video.png" /> ' + stream.name );
+ $('#streaming').find('h1').html('<img class="menuicon" src="img/video.png" onerror="this.src=\'img/nologoMEDIA.png\'" /> ' + stream.name );
$('#streaming').find('#player').css('width', '190px');
var streaminfo = '<li><span class="name_now">' + stream.name + '</span>';
streaminfo += '<span class="epgtime_now">Duration: ' + stream.duration + '</span>';
|