Started work on queue panel
This commit is contained in:
parent
4f6b3318a0
commit
42c20455e5
16 changed files with 342 additions and 14 deletions
|
|
@ -156,6 +156,9 @@ module.exports = class{
|
|||
|
||||
//Replace the existing schedule map with our new one
|
||||
this.schedule = newSchedule;
|
||||
|
||||
//Broadcast the channel queue
|
||||
this.broadcastQueue();
|
||||
}
|
||||
|
||||
start(mediaObj){
|
||||
|
|
@ -285,4 +288,8 @@ module.exports = class{
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
broadcastQueue(){
|
||||
this.server.io.in(this.channel.name).emit('queue',{queue: Array.from(this.schedule)})
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue