Prevent guests from screen-sharing, unmuting or screen sharing
This commit is contained in:
parent
6877bd4969
commit
9fe17a1d1d
5 changed files with 60 additions and 25 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue