提交 679e4220 authored 作者: Anatoly Safonov's avatar Anatoly Safonov

Fix round_trip_time parsing in mediasoup rust api

上级 afaaf4b9
...@@ -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<f64>,
} }
/// 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,7 +198,7 @@ pub struct ProducerStat { ...@@ -198,7 +198,7 @@ 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<f64>,
pub rtx_packets_discarded: Option<u32>, pub rtx_packets_discarded: Option<u32>,
// RtpStreamRecv specific. // RtpStreamRecv specific.
pub jitter: u32, pub jitter: u32,
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论