sound
This commit is contained in:
1 parent
5f8b0e60d4
commit
f3c735b808
1 file changed
+3
@@ -254,6 +254,7 @@ async function joinVoice(room) {
|
|||||||
await openSignaling(room);
|
await openSignaling(room);
|
||||||
S.room = room;
|
S.room = room;
|
||||||
S.connecting = false;
|
S.connecting = false;
|
||||||
|
playRetroCue('join');
|
||||||
renderAll();
|
renderAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -281,6 +282,8 @@ async function fetchRooms() {
|
|||||||
|
|
||||||
function leaveVoice(reason) {
|
function leaveVoice(reason) {
|
||||||
if (!S.room && !S.ws) return;
|
if (!S.room && !S.ws) return;
|
||||||
|
const wasConnected = Boolean(S.room);
|
||||||
|
if (wasConnected) playRetroCue('leave');
|
||||||
if (S.sharing) stopScreenShare(undefined, true);
|
if (S.sharing) stopScreenShare(undefined, true);
|
||||||
for (const peer of S.peers.values()) destroyPeer(peer);
|
for (const peer of S.peers.values()) destroyPeer(peer);
|
||||||
S.peers.clear();
|
S.peers.clear();
|
||||||
|
|||||||
Reference in new issue
Block a user