Hand raised sound
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
980f162c96
commit
c126ca1016
4 changed files with 39 additions and 2 deletions
|
@ -14,6 +14,19 @@ const ringtoneEventQueue = new PQueue({
|
|||
class CallingTones {
|
||||
private ringtone?: Sound;
|
||||
|
||||
async handRaised() {
|
||||
const canPlayTone = window.Events.getCallRingtoneNotification();
|
||||
if (!canPlayTone) {
|
||||
return;
|
||||
}
|
||||
|
||||
const tone = new Sound({
|
||||
soundType: SoundType.CallingHandRaised,
|
||||
});
|
||||
|
||||
await tone.play();
|
||||
}
|
||||
|
||||
async playEndCall(): Promise<void> {
|
||||
const canPlayTone = window.Events.getCallRingtoneNotification();
|
||||
if (!canPlayTone) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue