Start on implementing a fake live-kit server

This commit is contained in:
Antonio Scandurra 2022-10-19 14:58:50 +02:00
parent fb5c6493cf
commit 288c039929
6 changed files with 134 additions and 35 deletions

View file

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