WIP
This commit is contained in:
parent
499b8f5f55
commit
8c1c98a0bf
9 changed files with 336 additions and 47 deletions
|
@ -38,6 +38,18 @@ pub struct VideoGrant<'a> {
|
|||
pub recorder: Option<bool>,
|
||||
}
|
||||
|
||||
impl<'a> VideoGrant<'a> {
|
||||
pub fn to_join(room: &'a str) -> Self {
|
||||
Self {
|
||||
room: Some(room),
|
||||
room_join: Some(true),
|
||||
can_publish: Some(true),
|
||||
can_subscribe: Some(true),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn create(
|
||||
api_key: &str,
|
||||
secret_key: &str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue