opentalk_roomserver_types_livekit/
command.rs1use std::collections::BTreeSet;
6
7use opentalk_roomserver_signaling::signaling_module::CreateReplica;
8use opentalk_types_signaling::ParticipantId;
9
10use crate::event::LiveKitEvent;
11
12#[derive(Debug, PartialEq, serde::Deserialize, serde::Serialize)]
14#[serde(rename_all = "snake_case", tag = "action")]
15pub enum LiveKitCommand {
16 CreateNewAccessToken,
18
19 GrantScreenSharePermission {
21 participants: BTreeSet<ParticipantId>,
23 },
24
25 RevokeScreenSharePermission {
27 participants: BTreeSet<ParticipantId>,
29 },
30
31 RequestPopoutStreamAccessToken,
33}
34
35impl CreateReplica<LiveKitEvent> for LiveKitCommand {
36 fn replicate(&self) -> Option<LiveKitEvent> {
37 None
38 }
39}