diff --git a/src/lib/media/Voice.ts b/src/lib/media/Voice.ts index af3b7a3a9..404c06907 100644 --- a/src/lib/media/Voice.ts +++ b/src/lib/media/Voice.ts @@ -1,3 +1,4 @@ +import { playSound, Sounds } from "$lib/components/utils/SoundHandler" import { CallDirection } from "$lib/enums" import { Store } from "$lib/state/Store" import { create_cancellable_handler, type Cancellable } from "$lib/utils/CancellablePromise" @@ -194,6 +195,7 @@ export class CallRoom { let stream = await VoiceRTCInstance.getLocalStream() log.debug(`Sending local stream ${stream} to ${peer}`) room.addStream(stream, peer) + playSound(Sounds.Joined) if (!this.start) { this.start = new Date() } @@ -205,6 +207,7 @@ export class CallRoom { VoiceRTCInstance.remoteVideoCreator.delete(participant[0]) delete this.participants[participant[0]] } + playSound(Sounds.Disconnect) if (this.empty) { VoiceRTCInstance.leaveCall(true) }