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.

90 lines
5.5 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. {
  2. id: 'db_node_%%%NODEID%%%',
  3. layout:'vbox',
  4. tools: [{
  5. id:'gear',
  6. handler: function(){
  7. }
  8. }],
  9. frame: true,
  10. draggable: false,
  11. collapsible: false,
  12. bodyStyle: 'padding: 0px;',
  13. title: '%%%NODENAME%%%',
  14. sukaMineWidth: -1,
  15. /*
  16. {
  17. id: 'db_node_%%%NODEID%%%_pic',
  18. border: true,
  19. width: '100%',
  20. //html: '<div id="img-%%%NODEID%%%" style="display: flex;align-items: center;" ><img id="img-img-%%%NODEID%%%" ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" src="%%%SELURL%%%" width="100%" /><div style="float: left; position: absolute; left: 30px; bottom: 50px; z-index: 1000;"><table width="100%" border=0><tr><td width="24"><img id="img_btn_010_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/010.png"></td><td width="24"><img id="img_btn_032_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/032.png"></td><td width="24"><img id="img_btn_033_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/033.png"></td><td width="24"><img id="img_btn_034_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/034.png"></td><td>&nbsp;</td></tr><tr><td><img id="img_btn_011_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/011.png"></td><td><img id="img_btn_031_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/031.png"></td><td><img id="img_btn_020_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/basic/020.png"></td><td><img id="img_btn_027_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/027.png"></td><td>&nbsp;</td></tr><tr><td>%%%HBTN%%%</td><td><img id="img_btn_030_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/030.png"></td><td><img id="img_btn_029_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/029.png"></td><td><img id="img_btn_028_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/028.png"></td><td>&nbsp;</td></tr></table></div></div>'
  21. //html: '<div id="img-%%%NODEID%%%" style="display: flex;align-items: center;" ><img id="img-img-%%%NODEID%%%" ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" src="/style/assets/no-signal.png" width="100%" /></div>'
  22. //html: '<video id="video-%%%NODEID%%%" class="video-js" controls preload="auto" width="640" height="264" data-setup="{}"><source src="/lib/controller/data/videos/e4e18614af6059501d88ca39e76db15b.mp4" type="video/mp4"></video>'
  23. html:''
  24. },
  25. */
  26. items:[{
  27. xtype: 'button',
  28. id: 'db_download_video',
  29. scale: 'large',
  30. enableToggle: true,
  31. disabled: true,
  32. text: 'Download Video File',
  33. width: '100%',
  34. handler: function(){
  35. if( DownloadVideoLink!= '' ){
  36. var link = document.createElement("a");
  37. // If you don't know the name or want to use
  38. // the webserver default set name = ''
  39. //link.setAttribute('download', name );
  40. link.setAttribute('download', '' );
  41. link.href = DownloadVideoLink;
  42. document.body.appendChild(link);
  43. link.click();
  44. link.remove();
  45. }
  46. }
  47. }],
  48. listeners:{
  49. resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){
  50. if( rawWidth!= undefined ){
  51. if( p.sukaMineWidth != adjWidth ){
  52. p.sukaMineWidth = adjWidth;
  53. var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%;
  54. p.setHeight( XX + 32 );
  55. var z = Ext.getCmp('db_download_video');
  56. z.setHeight( XX );
  57. };
  58. };
  59. },
  60. afterrender: function( p ){
  61. var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%;
  62. p.setHeight( xx + 32 );
  63. //var z = Ext.getCmp('db_node_%%%NODEID%%%_pic');
  64. //z.setHeight( xx - 132 );
  65. /*
  66. document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  67. document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  68. document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  69. document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  70. document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  71. document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  72. document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  73. document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  74. document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  75. document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  76. document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  77. document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  78. document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  79. document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  80. document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  81. document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  82. document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  83. document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  84. document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop );
  85. document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove );
  86. document.getElementById('img_btn_020_%%%NODEID%%%').addEventListener( 'mousedown', makePtzStop );
  87. */
  88. }
  89. }
  90. }