Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .changeset/libwebrtc_network_type_stat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
libwebrtc: minor
livekit: patch
livekit-ffi: patch
---

# Expose network_type on IceCandidateStats

Chromium's local `RTCIceCandidateStats` carries a non-standard `networkType` field (WiFi,
cellular, ethernet, etc.), but `IceCandidateStats` had no place to put it, so it was silently
dropped during `get_stats()` deserialization. Adds `network_type: Option<String>` to the struct;
non-breaking since it already derives `#[serde(default)]`.
3 changes: 3 additions & 0 deletions libwebrtc/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ pub mod dictionaries {
pub related_port: i32,
pub username_fragment: String,
pub tcp_type: Option<IceTcpCandidateType>,
/// Chromium's non-standard `RTCIceCandidateStats.networkType` (WiFi, cellular, ethernet,
/// etc.), reported only for local candidates.
pub network_type: Option<String>,
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
}

#[derive(Debug, Default, Clone, Deserialize)]
Expand Down
Loading