Finished up with player UI-Bar functionality, including 'reload' and 'sync' controls.
This commit is contained in:
parent
6dc9ad7b34
commit
f38eae170d
7 changed files with 222 additions and 50 deletions
|
|
@ -39,10 +39,10 @@ module.exports = class{
|
|||
const mediaObj = queuedMedia.fromMedia(inputMedia, new Date().getTime());
|
||||
|
||||
//Start playback
|
||||
this.play(mediaObj);
|
||||
this.start(mediaObj);
|
||||
}
|
||||
|
||||
play(mediaObj){
|
||||
start(mediaObj){
|
||||
//Silently end the media
|
||||
this.end(true);
|
||||
|
||||
|
|
@ -109,11 +109,11 @@ module.exports = class{
|
|||
//If a socket is specified
|
||||
if(socket != null){
|
||||
//Send data out to specified socket
|
||||
socket.emit("play", data);
|
||||
socket.emit("start", data);
|
||||
//Otherwise
|
||||
}else{
|
||||
//Send that shit out to the entire channel
|
||||
this.server.io.in(this.channel.name).emit("play", data);
|
||||
this.server.io.in(this.channel.name).emit("start", data);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue