Start on implementing a fake live-kit server
This commit is contained in:
parent
fb5c6493cf
commit
288c039929
6 changed files with 134 additions and 35 deletions
|
@ -66,11 +66,7 @@ impl Client {
|
|||
) -> impl Future<Output = Result<()>> {
|
||||
let response = self.request(
|
||||
"twirp/livekit.RoomService/RemoveParticipant",
|
||||
token::VideoGrant {
|
||||
room_admin: Some(true),
|
||||
room: Some(&room),
|
||||
..Default::default()
|
||||
},
|
||||
token::VideoGrant::to_admin(&room),
|
||||
proto::RoomParticipantIdentity {
|
||||
room: room.clone(),
|
||||
identity,
|
||||
|
@ -87,13 +83,7 @@ impl Client {
|
|||
&self.key,
|
||||
&self.secret,
|
||||
Some(identity),
|
||||
token::VideoGrant {
|
||||
room: Some(room),
|
||||
room_join: Some(true),
|
||||
can_publish: Some(true),
|
||||
can_subscribe: Some(true),
|
||||
..Default::default()
|
||||
},
|
||||
token::VideoGrant::to_join(room),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue