Merge branch 'release-1.34'
This commit is contained in:
commit
5a20ef959f
|
@ -48,7 +48,7 @@ function changeScale() {
|
||||||
|
|
||||||
streamImg.src = streamImg.src.replace(/scale=\d+/i, 'scale='+(scale== 'auto' ? autoScale : scale));
|
streamImg.src = streamImg.src.replace(/scale=\d+/i, 'scale='+(scale== 'auto' ? autoScale : scale));
|
||||||
} else {
|
} else {
|
||||||
console.error('No element found for liveStream.');
|
console.error('No element found for liveStream'+monitorId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -742,10 +742,14 @@ function handleClick( event ) {
|
||||||
|
|
||||||
function appletRefresh() {
|
function appletRefresh() {
|
||||||
if ( streamStatus && (!streamStatus.paused && !streamStatus.delayed) ) {
|
if ( streamStatus && (!streamStatus.paused && !streamStatus.delayed) ) {
|
||||||
var streamImg = $('liveStream');
|
var streamImg = $('liveStream'+monitorId);
|
||||||
|
if ( streamImg ) {
|
||||||
var parent = streamImg.getParent();
|
var parent = streamImg.getParent();
|
||||||
streamImg.dispose();
|
streamImg.dispose();
|
||||||
streamImg.inject( parent );
|
streamImg.inject( parent );
|
||||||
|
} else {
|
||||||
|
console.error("Nothing found for liveStream"+monitorId);
|
||||||
|
}
|
||||||
if ( appletRefreshTime ) {
|
if ( appletRefreshTime ) {
|
||||||
appletRefresh.delay( appletRefreshTime*1000 );
|
appletRefresh.delay( appletRefreshTime*1000 );
|
||||||
}
|
}
|
||||||
|
@ -798,11 +802,14 @@ function initPage() {
|
||||||
eventCmdTimer = eventCmdQuery.delay( (Math.random()+0.1)*statusRefreshTimeout );
|
eventCmdTimer = eventCmdQuery.delay( (Math.random()+0.1)*statusRefreshTimeout );
|
||||||
watchdogCheck.pass('event').periodical(eventsRefreshTimeout*2);
|
watchdogCheck.pass('event').periodical(eventsRefreshTimeout*2);
|
||||||
|
|
||||||
if ( canStreamNative || streamMode == 'single' ) {
|
if ( canStreamNative || (streamMode == 'single') ) {
|
||||||
var streamImg = $('imageFeed').getElement('img');
|
var streamImg = $('imageFeed').getElement('img');
|
||||||
if ( !streamImg ) {
|
if ( !streamImg ) {
|
||||||
streamImg = $('imageFeed').getElement('object');
|
streamImg = $('imageFeed').getElement('object');
|
||||||
}
|
}
|
||||||
|
if ( !streamImg ) {
|
||||||
|
console.error('No streamImg found for imageFeed');
|
||||||
|
} else {
|
||||||
if ( streamMode == 'single' ) {
|
if ( streamMode == 'single' ) {
|
||||||
streamImg.addEvent('click', fetchImage.pass(streamImg));
|
streamImg.addEvent('click', fetchImage.pass(streamImg));
|
||||||
fetchImage.pass(streamImg).periodical(imageRefreshTimeout);
|
fetchImage.pass(streamImg).periodical(imageRefreshTimeout);
|
||||||
|
@ -811,7 +818,8 @@ function initPage() {
|
||||||
handleClick(event);
|
handleClick(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
} // end if have streamImg
|
||||||
|
} // streamMode native or single
|
||||||
|
|
||||||
if ( refreshApplet && appletRefreshTime ) {
|
if ( refreshApplet && appletRefreshTime ) {
|
||||||
appletRefresh.delay(appletRefreshTime*1000);
|
appletRefresh.delay(appletRefreshTime*1000);
|
||||||
|
|
Loading…
Reference in New Issue