Skip to content

Commit c457ec5

Browse files
committed
build fixes from proto upgrade
1 parent faf71a2 commit c457ec5

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

livekit-ffi/protocol/participant.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ enum ParticipantKind {
4040
PARTICIPANT_KIND_EGRESS = 2;
4141
PARTICIPANT_KIND_SIP = 3;
4242
PARTICIPANT_KIND_AGENT = 4;
43+
PARTICIPANT_KIND_CONNECTOR = 5;
4344
}
4445

4546
enum DisconnectReason {

livekit-ffi/src/conversion/participant.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ impl From<ParticipantKind> for proto::ParticipantKind {
4646
ParticipantKind::Ingress => proto::ParticipantKind::Ingress,
4747
ParticipantKind::Egress => proto::ParticipantKind::Egress,
4848
ParticipantKind::Agent => proto::ParticipantKind::Agent,
49+
ParticipantKind::Connector => proto::ParticipantKind::Connector,
4950
}
5051
}
5152
}

livekit/src/proto.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ impl From<participant_info::Kind> for participant::ParticipantKind {
154154
participant_info::Kind::Egress => participant::ParticipantKind::Egress,
155155
participant_info::Kind::Sip => participant::ParticipantKind::Sip,
156156
participant_info::Kind::Agent => participant::ParticipantKind::Agent,
157+
participant_info::Kind::Connector => participant::ParticipantKind::Connector,
157158
}
158159
}
159160
}

livekit/src/room/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,11 +1186,13 @@ impl RoomSession {
11861186
sdp: answer.to_string(),
11871187
r#type: answer.sdp_type().to_string(),
11881188
id: 0,
1189+
mid_to_track_id: Default::default(),
11891190
}),
11901191
offer: Some(proto::SessionDescription {
11911192
sdp: offer.to_string(),
11921193
r#type: offer.sdp_type().to_string(),
11931194
id: 0,
1195+
mid_to_track_id: Default::default(),
11941196
}),
11951197
track_sids_disabled: Vec::default(), // TODO: New protocol version
11961198
subscription: Some(proto::UpdateSubscription {

livekit/src/room/participant/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub enum ParticipantKind {
4444
Egress,
4545
Sip,
4646
Agent,
47+
Connector,
4748
}
4849

4950
#[derive(Debug, Clone, Copy, Eq, PartialEq)]

livekit/src/rtc_engine/rtc_session.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ impl SessionInner {
932932
r#type: "answer".to_string(),
933933
sdp: answer.to_string(),
934934
id: 0,
935+
mid_to_track_id: Default::default(),
935936
}))
936937
.await;
937938
}
@@ -1056,6 +1057,7 @@ impl SessionInner {
10561057
r#type: "offer".to_string(),
10571058
sdp: offer.to_string(),
10581059
id: 0,
1060+
mid_to_track_id: Default::default(),
10591061
}))
10601062
.await;
10611063
}

0 commit comments

Comments
 (0)