Unverified 提交 983fbd1a authored 作者: Nazar Mokrynskyi's avatar Nazar Mokrynskyi 提交者: GitHub

Merge pull request #651 from Hartigan/fix_stats

Fix FailedToParse errors during get_stats() for Consumer and Producer in rust API
...@@ -239,7 +239,7 @@ pub struct ConsumerStat { ...@@ -239,7 +239,7 @@ pub struct ConsumerStat {
pub packet_count: usize, pub packet_count: usize,
pub byte_count: usize, pub byte_count: usize,
pub bitrate: u32, pub bitrate: u32,
pub round_trip_time: Option<u32>, pub round_trip_time: Option<f32>,
} }
/// RTC statistics of the consumer, may or may not include producer statistics. /// RTC statistics of the consumer, may or may not include producer statistics.
......
...@@ -198,11 +198,11 @@ pub struct ProducerStat { ...@@ -198,11 +198,11 @@ pub struct ProducerStat {
pub packet_count: usize, pub packet_count: usize,
pub byte_count: usize, pub byte_count: usize,
pub bitrate: u32, pub bitrate: u32,
pub round_trip_time: Option<u32>, pub round_trip_time: Option<f32>,
pub rtx_packets_discarded: Option<u32>, pub rtx_packets_discarded: Option<u32>,
// RtpStreamRecv specific. // RtpStreamRecv specific.
pub jitter: u32, pub jitter: u32,
pub bitrate_by_layer: HashMap<String, u32>, pub bitrate_by_layer: Option<HashMap<String, u32>>,
} }
/// 'trace' event data. /// 'trace' event data.
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论