Close broadcast on 'streamEnd'
This commit is contained in:
parent
580ef5a652
commit
d3f3668eb5
@ -172,6 +172,10 @@ io.on('connection', function(socket) {
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('closeBroadcast', function() {
|
||||
socket.broadcast.emit('streamEnded');
|
||||
});
|
||||
|
||||
socket.on('joinRoom', function (data) {
|
||||
joinRoom(socket, data ? data.slice(0, 6) : data)
|
||||
});
|
||||
|
@ -74,6 +74,10 @@ $(function() {
|
||||
viewer();
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('streamEnded', function(data) {
|
||||
dispose();
|
||||
});
|
||||
});
|
||||
|
||||
function presenterResponse(message) {
|
||||
|
Loading…
Reference in New Issue
Block a user