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.

93 lines
4.2 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
4 years ago
​
​
​
​
​
​
​
​
4 years ago
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
3 years ago
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. id: 'db_node_%%%NODEID%%%_pic',
  28. border: true,
  29. width: '100%',
  30. html: '<div id="video-%%%NODEID%%%" width="100%" ></video>'
  31. //html: '<video id="video-%%%NODEID%%%" class="video-js" controls preload="auto" poster="/style/assets/no-signal.png" width="100%" data-setup="{}"></video>'
  32. }/*{
  33. xtype: 'button',
  34. id: 'db_download_video',
  35. scale: 'large',
  36. enableToggle: true,
  37. disabled: true,
  38. text: 'Download Video File',
  39. width: '100%',
  40. handler: function(){
  41. if( DownloadVideoLink!= '' ){
  42. var link = document.createElement("a");
  43. // If you don't know the name or want to use
  44. // the webserver default set name = ''
  45. //link.setAttribute('download', name );
  46. link.setAttribute('download', '' );
  47. link.href = DownloadVideoLink;
  48. document.body.appendChild(link);
  49. link.click();
  50. link.remove();
  51. }
  52. }
  53. }*/],
  54. listeners:{
  55. resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){
  56. if( rawWidth!= undefined ){
  57. if( p.sukaMineWidth != adjWidth ){
  58. p.sukaMineWidth = adjWidth;
  59. var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%;
  60. p.setHeight( XX + 32 );
  61. //var z = Ext.getCmp('db_download_video');
  62. var z = document.getElementById( 'video-%%%NODEID%%%' );
  63. z.height = XX;
  64. };
  65. };
  66. },
  67. afterrender: function( p ){
  68. var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%;
  69. p.setHeight( xx + 32 );
  70. VideoLinks[%%%NODEID%%%] = '';
  71. /*
  72. $('#video-%%%NODEID%%%').on('timeupdate', function(){
  73. if( cEventETS > 0 ){
  74. if( this.currentTime > cEventETS ) {
  75. cEventETS = 0;
  76. this.pause();
  77. };
  78. };//console.log('the time was updated to: ' + this.currentTime);
  79. });
  80. var player = videojs( 'video-%%%NODEID%%%' );
  81. player.fluid(true);
  82. //player.fill(true);
  83. */
  84. },
  85. beforedestroy: function(){
  86. var oldPlayer = document.getElementById( 'video-%%%NODEID%%%' );
  87. /*
  88. videojs( oldPlayer ).dispose();
  89. */
  90. }
  91. }
  92. }