Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
1.3 KiB

{
id: 'db_node_%%%NODEID%%%',
layout:'vbox',
tools: [{
id:'gear',
handler: function(){
}
}],
frame: true,
draggable: false,
collapsible: false,
bodyStyle: 'padding: 0px;',
title: '%%%NODENAME%%%',
sukaMineWidth: -1,
items:[{
id: 'db_node_%%%NODEID%%%_pic',
border: true,
width: '100%',
html: '<div id="img-%%%NODEID%%%" style="display: flex;align-items: center;" ><video id="img-vid-%%%NODEID%%%" ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" autoplay playsinline muted width="100%" ></video></div>'
}],
listeners:{
resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){
if( rawWidth!= undefined ){
if( p.sukaMineWidth != adjWidth ){
p.sukaMineWidth = adjWidth;
var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%;
p.setHeight( XX + 32 );
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic');
z.setHeight( XX );
};
};
},
afterrender: function( p ){
var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%;
p.setHeight( xx + 32 );
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic');
z.setHeight( xx );
var tt = document.getElementById( 'img-vid-%%%NODEID%%%' );
tt.poster = "/style/assets/no-signal.png";
startWhepClient( 'img-vid-%%%NODEID%%%', 'stream_%%%NODEID%%%' );
}
}
}