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.
80 lines
2.1 KiB
80 lines
2.1 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="video-%%%STREAMID%%%" style="display: flex;align-items: center;" ><img id="video-img-%%%STREAMID%%%" ondblclick="fullScreen(\'video-%%%STREAMID%%%\');" style="cursor: zoom-in" src="/style/assets/no-signal.png" width="100%" /><div id="video-ctl-%%%STREAMID%%%" style="float: left; position: absolute; left: 30px; bottom: 30px; z-index: 1000;"></div></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 = document.getElementById( 'video-%%%STREAMID%%%' );
|
|
z.height = XX;
|
|
};
|
|
};
|
|
},
|
|
afterrender: function( p ){
|
|
var xx = p.getWidth() * ( %%%HEIGHT%%% / %%%WIDTH%%% );
|
|
p.setHeight( xx + 32 );
|
|
videoElements[videoElements.length] = %%%STREAMID%%%;
|
|
var xx = new Ext.Panel({
|
|
id: 'video-ctl-panel-%%%STREAMID%%%',
|
|
renderTo: 'video-ctl-%%%STREAMID%%%',
|
|
border: false,
|
|
hidden: true,
|
|
frame: false,
|
|
width: 400,
|
|
height: 42,
|
|
layout: 'hbox',
|
|
items:[{
|
|
xtype: 'button',
|
|
width: 32,
|
|
iconCls: 'download',
|
|
scale: 'medium',
|
|
id: 'video-btn-download-%%%STREAMID%%%',
|
|
handler: function(){
|
|
downloadCurrentVideo( %%%STREAMID%%% );
|
|
}
|
|
},{
|
|
xtype: 'spacer',
|
|
width: 20
|
|
},{
|
|
xtype: 'slider',
|
|
width: 250,
|
|
id: 'video-slider-%%%STREAMID%%%',
|
|
value: 0,
|
|
minValue: 0,
|
|
maxValue: 100,
|
|
listeners:{
|
|
change: function( t, b, o ){
|
|
setVideoSource( %%%STREAMID%%%, b );
|
|
}
|
|
}
|
|
}]
|
|
});
|
|
},
|
|
beforedestroy: function(){
|
|
var oldPlayer = document.getElementById( 'video-%%%STREAMID%%%' );
|
|
/*
|
|
videojs( oldPlayer ).dispose();
|
|
*/
|
|
}
|
|
}
|
|
}
|