25 Commits

Author SHA1 Message Date
philipch07
370412f694 Improve code cov 2025-09-16 21:39:38 -04:00
cnderrauber
dae0af938b Add Req/Res count/time to candidate stats (#3043)
See https://github.com/pion/ice/pull/763
2025-02-27 13:37:55 +08:00
Joe Turki
feeeebf251 Upgrade golangci-lint, more linters
Introduces new linters, upgrade golangci-lint to version (v1.63.4)
2025-01-18 07:16:06 -06:00
5ur3
b47fbb6b5e 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
2025-01-08 09:59:30 -05:00
Aleksandr Alekseev
80b5649f43 Add Encoder/Decoder info to stats 2024-12-26 23:34:44 -05:00
boks1971
dc1f8ffd1c Add ice transport api to get selected pair stats
In use cases like SFU, it is useful to get just the selected candidate
pair stats to have access to current RTT on the peer connection. The
standard has a way to do `GetSelectedCandidatePair` on `ICETransport`,
but does not have a way to get stats of that pair.

Although not in standard, adding a method to `ICETransport` to get
selected candidate pair along similar lines of above method.
2024-10-07 21:00:33 +05:30
Artem Tarasiuk
891d96fe0e Support more data from webrtc stats 2024-10-05 16:52:02 +03:00
Sean DuBois
3aab0355e0 Upgrade dtls, ice, stun and turn
New major version of all packages caused by DTLS upgrade
2024-08-12 13:45:35 -04:00
Sean DuBois
898fdd6f6c Fix ICECandidateStats.NetworkType type
Should be be marshaled/unmarshaled as a string to match the spec [0]

[0] https://www.w3.org/TR/2018/WD-webrtc-stats-20180627/#rtcnetworktype-enum
2023-09-11 09:35:19 -04:00
renovate[bot]
ea23dec2b9 Update module transport, srtp, ice and turn
ReplayDetector introduced a breaking change
2023-09-03 23:59:43 -04:00
Will Forcey
ee483daf56 Add SCTPTransportStats 2023-08-21 00:19:32 -04:00
Hans Gylling
1d12dc8f76 Revert breaking change in ICECandidateStats 2023-08-18 13:21:59 -04:00
Aleksandr Alekseev
2926b99173 Stats: improve JSON support, add missing structs
- Fix json marshalling of stats containing enums
- Add UnmarshalStatsJSON helper
- Add marshalling/unmarshalling tests
- Add missing AudioSourceStats, VideoSourceStats AudioPlayoutStats
  defined in https://www.w3.org/TR/webrtc-stats
- Deprecate ICECandidateStats' NetworkType, use plain string
  instead of enum which does not suite the definition:
  https://clck.ru/354H9r
2023-08-17 13:15:07 -04:00
Steffen Vogel
683fc837d0 Make repo REUSE compliant 2023-05-05 11:58:49 -04:00
Sean DuBois
7edfb701e0 New Track API
The Pion WebRTC API has been dramatically redesigned. The design docs
are located here [0]

You can also read the release notes [1] on how to migrate your
application.

[0] https://github.com/pion/webrtc-v3-design
[1] https://github.com/pion/webrtc/wiki/Release-WebRTC@v3.0.0
2020-11-15 09:20:47 -08:00
Sean DuBois
804a12fed3 Update CI configs to v0.4.7
Update lint scripts and CI configs.
2020-09-30 09:06:34 -07:00
obasajujoshua31
7d79c766c9 Add GetMediaStats to StatsReport
Add an API to get basic stats around media.

Relates to #610

mend
2020-09-22 14:05:06 -04:00
Pion
4b75ba8a08 Update CI configs to v0.3.4
Update lint scripts and CI configs.
2020-08-24 23:44:20 -07:00
Sean DuBois
bb3aa9717f Move to pion/ice@v2
Removed support for trickle ice

Resolves #1274
2020-06-28 00:01:47 -07:00
Vicken Simonian
5f25df2209 Various spell fixes
For error types, vars, docs and comments
2019-10-17 23:31:21 -07:00
Sean DuBois
d54b494292 Remove RTCDataChannel priority
This has been removed from webrtc-pc[0]

Relates to #748

[0] https://github.com/w3c/webrtc-pc/issues/2258
2019-09-26 15:44:19 -07:00
Hugo Arregui
93261960b1 Basic stats
Load DC, CandidatePair and Candidate basic stats
2019-06-25 19:36:57 +00:00
Max Hawkins
3d2c1c2c32 Clean up stats structs / remove Stats interface
Related to #610
2019-04-21 11:26:23 -07:00
Max Hawkins
402293bb53 Name the coverage: add a dumb test
Related to #610
2019-04-21 11:26:23 -07:00
Max Hawkins
23274311d6 Add Stats-related structs
Definitions from https://www.w3.org/TR/webrtc/#dom-rtcstats

Related to #610
2019-04-21 11:26:23 -07:00