Update collaboration sounds, add sounds to screensharing
This commit is contained in:
parent
31483db5d8
commit
a7ce602bac
10 changed files with 11 additions and 2 deletions
Binary file not shown.
BIN
assets/sounds/joined_call.wav
Normal file
BIN
assets/sounds/joined_call.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
assets/sounds/leave_call.wav
Normal file
BIN
assets/sounds/leave_call.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
assets/sounds/start_screenshare.wav
Normal file
BIN
assets/sounds/start_screenshare.wav
Normal file
Binary file not shown.
BIN
assets/sounds/stop_screenshare.wav
Normal file
BIN
assets/sounds/stop_screenshare.wav
Normal file
Binary file not shown.
Binary file not shown.
|
@ -15,15 +15,19 @@ pub enum Sound {
|
||||||
Leave,
|
Leave,
|
||||||
Mute,
|
Mute,
|
||||||
Unmute,
|
Unmute,
|
||||||
|
StartScreenshare,
|
||||||
|
StopScreenshare,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Sound {
|
impl Sound {
|
||||||
fn file(&self) -> &'static str {
|
fn file(&self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
Self::Joined => "joined",
|
Self::Joined => "joined_call",
|
||||||
Self::Leave => "leave",
|
Self::Leave => "leave_call",
|
||||||
Self::Mute => "mute",
|
Self::Mute => "mute",
|
||||||
Self::Unmute => "unmute",
|
Self::Unmute => "unmute",
|
||||||
|
Self::StartScreenshare => "start_screenshare",
|
||||||
|
Self::StopScreenshare => "stop_screenshare",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1222,6 +1222,9 @@ impl Room {
|
||||||
};
|
};
|
||||||
cx.notify();
|
cx.notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Audio::play_sound(Sound::StartScreenshare, cx);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
|
@ -1311,6 +1314,8 @@ impl Room {
|
||||||
} => {
|
} => {
|
||||||
live_kit.room.unpublish_track(track_publication);
|
live_kit.room.unpublish_track(track_publication);
|
||||||
cx.notify();
|
cx.notify();
|
||||||
|
|
||||||
|
Audio::play_sound(Sound::StopScreenshare, cx);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue