Added Go-Live button to queue panel.

This commit is contained in:
rainbow napkin 2025-05-16 06:32:45 -04:00
parent b0cca2c6fc
commit 89f78ae265
4 changed files with 70 additions and 16 deletions

View file

@ -174,6 +174,8 @@ class rawFileBase extends mediaHandler{
}
destroyPlayer(){
//Stops playback
this.video.pause();
//Remove player from page
this.video.remove();
//Run derived method
@ -511,9 +513,6 @@ class hlsBase extends rawFileBase{
constructor(client, player, media, type){
//Call derived constructor
super(client, player, media, type);
//Create property to hold HLS object
this.hls = null;
}
buildPlayer(){
@ -533,6 +532,14 @@ class hlsBase extends rawFileBase{
this.hls.on(Hls.Events.MANIFEST_PARSED, this.onMetadataLoad.bind(this));
}
end(){
//Stop hls.js from loading any more of the stream
this.hls.stopLoad();
//Call derived method
super.end();
}
onMetadataLoad(){
//Call derived method
super.onMetadataLoad();