Skip to content

Commit

Permalink
fix builds - connection_quality LOST (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom authored Dec 20, 2023
1 parent 3c40dc1 commit 76c1d5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions livekit-ffi/protocol/room.proto
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ enum ConnectionQuality {
QUALITY_POOR = 0;
QUALITY_GOOD = 1;
QUALITY_EXCELLENT = 2;
QUALITY_LOST = 3;
}

enum ConnectionState {
Expand Down
1 change: 1 addition & 0 deletions livekit-ffi/src/conversion/room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ impl From<ConnectionQuality> for proto::ConnectionQuality {
ConnectionQuality::Excellent => Self::QualityExcellent,
ConnectionQuality::Good => Self::QualityGood,
ConnectionQuality::Poor => Self::QualityPoor,
ConnectionQuality::Lost => Self::QualityLost,
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions livekit-ffi/src/livekit.proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2664,6 +2664,7 @@ pub enum ConnectionQuality {
QualityPoor = 0,
QualityGood = 1,
QualityExcellent = 2,
QualityLost = 3,
}
impl ConnectionQuality {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -2675,6 +2676,7 @@ impl ConnectionQuality {
ConnectionQuality::QualityPoor => "QUALITY_POOR",
ConnectionQuality::QualityGood => "QUALITY_GOOD",
ConnectionQuality::QualityExcellent => "QUALITY_EXCELLENT",
ConnectionQuality::QualityLost => "QUALITY_LOST",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -2683,6 +2685,7 @@ impl ConnectionQuality {
"QUALITY_POOR" => Some(Self::QualityPoor),
"QUALITY_GOOD" => Some(Self::QualityGood),
"QUALITY_EXCELLENT" => Some(Self::QualityExcellent),
"QUALITY_LOST" => Some(Self::QualityLost),
_ => None,
}
}
Expand Down

0 comments on commit 76c1d5c

Please sign in to comment.