mirror of
https://github.com/pion/webrtc.git
synced 2025-11-02 11:34:32 +08:00
Implement more webrtc-stats
InboundRTPStreamStats: * https://www.w3.org/TR/webrtc-stats/#dom-rtcinboundrtpstreamstats-pausecount * https://www.w3.org/TR/webrtc-stats/#dom-rtcinboundrtpstreamstats-totalpausesduration * https://www.w3.org/TR/webrtc-stats/#dom-rtcinboundrtpstreamstats-freezecount * https://www.w3.org/TR/webrtc-stats/#dom-rtcinboundrtpstreamstats-totalfreezesduration * https://www.w3.org/TR/webrtc-stats/#dom-rtcinboundrtpstreamstats-powerefficientdecoder OutboundRTPStreamStats: * https://www.w3.org/TR/webrtc-stats/#dom-rtcoutboundrtpstreamstats-powerefficientencoder * https://www.w3.org/TR/webrtc-stats/#dom-rtcoutboundrtpstreamstats-scalabilitymode
This commit is contained in:
@@ -145,6 +145,11 @@ func getStatsSamples() []statSample {
|
||||
"123": 23,
|
||||
},
|
||||
DecoderImplementation: "libvpx",
|
||||
PauseCount: 48,
|
||||
TotalPausesDuration: 48.123,
|
||||
FreezeCount: 49,
|
||||
TotalFreezesDuration: 49.321,
|
||||
PowerEfficientDecoder: true,
|
||||
}
|
||||
inboundRTPStreamStatsJSON := `
|
||||
{
|
||||
@@ -212,7 +217,12 @@ func getStatsSamples() []statSample {
|
||||
"perDscpPacketsReceived": {
|
||||
"123": 23
|
||||
},
|
||||
"decoderImplementation": "libvpx"
|
||||
"decoderImplementation": "libvpx",
|
||||
"pauseCount": 48,
|
||||
"totalPausesDuration": 48.123,
|
||||
"freezeCount": 49,
|
||||
"totalFreezesDuration": 49.321,
|
||||
"powerEfficientDecoder": true
|
||||
}
|
||||
`
|
||||
outboundRTPStreamStats := OutboundRTPStreamStats{
|
||||
@@ -268,6 +278,8 @@ func getStatsSamples() []statSample {
|
||||
},
|
||||
Active: true,
|
||||
EncoderImplementation: "libvpx",
|
||||
PowerEfficientEncoder: true,
|
||||
ScalabilityMode: "L1T1",
|
||||
}
|
||||
outboundRTPStreamStatsJSON := `
|
||||
{
|
||||
@@ -322,7 +334,9 @@ func getStatsSamples() []statSample {
|
||||
"123": 23
|
||||
},
|
||||
"active": true,
|
||||
"encoderImplementation": "libvpx"
|
||||
"encoderImplementation": "libvpx",
|
||||
"powerEfficientEncoder": true,
|
||||
"scalabilityMode": "L1T1"
|
||||
}
|
||||
`
|
||||
remoteInboundRTPStreamStats := RemoteInboundRTPStreamStats{
|
||||
|
||||
Reference in New Issue
Block a user