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.
29 lines
700 B
29 lines
700 B
{
|
|
xtype: 'panel',
|
|
html: '<center><video id="hls-%%%HLSID%%%" class="video-js vjs-default-skin" width="244" height="200"></video></center>',
|
|
plr: null,
|
|
listeners:{
|
|
afterrender: function( t ){
|
|
t.plr = videojs.getPlayer('hls-%%%HLSID%%%');
|
|
if( t.plr == null ){
|
|
t.plr = videojs('hls-%%%HLSID%%%',{
|
|
autoplay: 'muted',
|
|
controls: true,
|
|
controlBar: {
|
|
volumePanel: false,
|
|
playToggle: false,
|
|
pictureInPictureToggle: false
|
|
}
|
|
});
|
|
|
|
};
|
|
%%%HLSOFFSET%%%
|
|
t.plr.src({type: 'application/x-mpegURL', src: '%%%HLSSRC%%%'});
|
|
return true;
|
|
},
|
|
destroy: function( t ){
|
|
if( t.plr != null ) t.plr.dispose();
|
|
t.plr = null;
|
|
}
|
|
}
|
|
}
|