Prevent guests from screen-sharing, unmuting or screen sharing

This commit is contained in:
Conrad Irwin
2024-01-03 19:31:43 -07:00
parent 6877bd4969
commit 9fe17a1d1d
5 changed files with 60 additions and 25 deletions
+5
View File
@@ -1251,6 +1251,11 @@ impl Room {
.unwrap_or(false)
}
pub fn can_publish(&self) -> bool {
self.local_participant().role == proto::ChannelRole::Member
|| self.local_participant().role == proto::ChannelRole::Admin
}
pub fn is_speaking(&self) -> bool {
self.live_kit
.as_ref()