webrtcstats: Improve selected candidate pair stats by adding ICE candidate info
authorSherrill Lin <lshuying@amazon.com>
Wed, 30 Jun 2021 20:01:10 +0000 (16:01 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 26 May 2022 10:54:59 +0000 (10:54 +0000)
commit3e7fb8339324b3601598ee07d65562420b3194f3
tree430d8ae4ca18cb9804a8c9b36ac52d1102782863
parent2042c2d4f0b99d2557c4a7e421cf444e258fbe7d
webrtcstats: Improve selected candidate pair stats by adding ICE candidate info

The implementation follows w3.org specs:
* https://www.w3.org/TR/webrtc-stats/#icecandidate-dict*
* https://www.w3.org/TR/webrtc-stats/#candidatepair-dict*

Corresponding unit tests are also added.

Rebased and updated from
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1462

Fixes #1207

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1998>
subprojects/gst-plugins-bad/ext/webrtc/fwd.h
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcice.c
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcice.h
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcstats.c
subprojects/gst-plugins-bad/tests/check/elements/webrtcbin.c