Web UI for ARGUS server
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.

28 lines
700 B

5 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. {
  2. xtype: 'panel',
  3. html: '<center><video id="hls-%%%HLSID%%%" class="video-js vjs-default-skin" width="244" height="200"></video></center>',
  4. plr: null,
  5. listeners:{
  6. afterrender: function( t ){
  7. t.plr = videojs.getPlayer('hls-%%%HLSID%%%');
  8. if( t.plr == null ){
  9. t.plr = videojs('hls-%%%HLSID%%%',{
  10. autoplay: 'muted',
  11. controls: true,
  12. controlBar: {
  13. volumePanel: false,
  14. playToggle: false,
  15. pictureInPictureToggle: false
  16. }
  17. });
  18. };
  19. %%%HLSOFFSET%%%
  20. t.plr.src({type: 'application/x-mpegURL', src: '%%%HLSSRC%%%'});
  21. return true;
  22. },
  23. destroy: function( t ){
  24. if( t.plr != null ) t.plr.dispose();
  25. t.plr = null;
  26. }
  27. }
  28. }