diff options
author | Alib <aliboba@free.fr> | 2010-03-29 10:45:11 +0200 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-29 10:45:11 +0200 |
commit | 89962dd7b02d576e8ca9fb3e948031489cb7c868 (patch) | |
tree | 0ca31609bb1e880f5fb24d1d3f18a6fa45806287 | |
parent | f6334ee8e1f60d65edc1217d6c3040dc5222380c (diff) | |
download | istreamdev-89962dd7b02d576e8ca9fb3e948031489cb7c868.tar.gz istreamdev-89962dd7b02d576e8ca9fb3e948031489cb7c868.tar.bz2 |
fixed thumb
-rw-r--r-- | js/istreamdev.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index 1a87870..e5488a3 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -512,7 +512,8 @@ function gen_streaming(session) { dataString,
function(data){
var stream = data.stream;
- $('#streaming').find('#thumbnail').attr('src','ram/session' + stream.session + '/thumb.png');
+ var time = new Date();
+ $('#streaming').find('#thumbnail').attr('src','ram/session' + stream.session + '/thumb.png?'+time);
$("#streaming").find('span[rel="thumbwidth"]').html(stream.thumbwidth);
$("#streaming").find('span[rel="thumbheight"]').html(stream.thumbheight);
if (stream.type == "tv")
@@ -584,11 +585,12 @@ function playvideo(session,name) { var status = data.status;
var message = data.message;
var url = data.url;
+ var time = new Date();
var thumbwidth = $('#streaming span[rel="thumbwidth"]').text();
var thumbheight = $('#streaming span[rel="thumbheight"]').text();
$('#streaming ul[class="streamstatus"]').find('span[class="mode"]').html(message);
if ( status == "ready" || status == "error" ) {
- $('#player').html('<video id="videofeed" width="' + thumbwidth + '" height="' + thumbheight + '" poster="ram/session' + session + '/thumb.png" src="' + url + '" ></video><span rel="ready"></span>');
+ $('#player').html('<video id="videofeed" width="' + thumbwidth + '" height="' + thumbheight + '" poster="ram/session' + session + '/thumb.png?' + time + '" src="' + url + '" ></video><span rel="ready"></span>');
return false;
}
prevmsg = message;
|