FEAT: now play a sound when a user quit the webrtc group
This commit is contained in:
parent
e2c81c4eb1
commit
a1aedaa594
4 changed files with 11 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue