Skip to content

Commit

Permalink
fix(call): calling sound fix (#4443)
Browse files Browse the repository at this point in the history
Co-authored-by: ThomBos <thombos@MBP-di-ThomBos.station>
  • Loading branch information
ThomBos and ThomBos committed Aug 24, 2022
1 parent f696e4e commit e56a729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/Iridium/webrtc/WebRTCManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ export default class WebRTCManager extends Emitter {
call.mute({ did: this.iridium.connector?.id, kind: 'audio' })
}

$Sounds.stopSound(Sounds.CALL)
$Sounds.stopSounds([Sounds.CALL])
$Sounds.playSound(Sounds.CONNECTED)
}
call.on('CONNECTED', onCallConnected)
Expand Down Expand Up @@ -795,7 +795,7 @@ export default class WebRTCManager extends Emitter {
call.off('DESTROY', onCallDestroy)
call.off('ERROR', onCallDestroy)
$WebRTC.destroyCall(call.callId)
$Sounds.stopSound(Sounds.CALL)
$Sounds.stopSounds([Sounds.CALL])
$Sounds.playSound(Sounds.HANGUP)
}
call.on('DESTROY', onCallDestroy)
Expand Down

0 comments on commit e56a729

Please sign in to comment.