Add mute toggling controls

This commit is contained in:
Mikayla Maki
2023-06-20 09:35:57 -07:00
parent 3e3079b513
commit e58f0ac72f
5 changed files with 189 additions and 61 deletions
+14
View File
@@ -475,6 +475,20 @@ impl Drop for Room {
pub struct LocalTrackPublication;
impl LocalTrackPublication {
pub fn mute(&self) -> impl Future<Output = Result<()>> {
async {
Ok(())
}
}
pub fn unmute(&self) -> impl Future<Output = Result<()>> {
async {
Ok(())
}
}
}
#[derive(Clone)]
pub struct LocalVideoTrack {
frames_rx: async_broadcast::Receiver<Frame>,