FEAT: now play a sound when a user quit the webrtc group

This commit is contained in:
kharhamel 2020-12-11 15:35:13 +01:00
parent e2c81c4eb1
commit a1aedaa594
4 changed files with 11 additions and 3 deletions

View file

@ -202,8 +202,8 @@ export class SimplePeer {
* This is triggered twice. Once by the server, and once by a remote client disconnecting
*/
private closeConnection(userId : number) {
mediaManager.playWebrtcOutSound();
try {
//mediaManager.removeActiveVideo(userId);
const peer = this.PeerConnectionArray.get(userId);
if (peer === undefined) {
console.warn("closeConnection => Tried to close connection for user "+userId+" but could not find user");