This commit is contained in:
Nathan Sobo 2022-10-17 23:24:48 -06:00
parent 499b8f5f55
commit 8c1c98a0bf
9 changed files with 336 additions and 47 deletions

View file

@ -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,