Add support for DataChannel and MediaStreamTrack stats
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Mar 2017 16:32:53 +0000 (16:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Mar 2017 16:32:53 +0000 (16:32 +0000)
commitcc8081d9df5fbac3b9d08ef1fd671ba500cc7b97
tree097f287a71504eae18090701950bff9e345ae9d7
parent6eae187454b1743890395bdf46e881bfbc275773
Add support for DataChannel and MediaStreamTrack stats
https://bugs.webkit.org/show_bug.cgi?id=170031

Patch by Youenn Fablet <youenn@apple.com> on 2017-03-24
Reviewed by Eric Carlson.

Source/WebCore:

Tests: webrtc/datachannel/datachannel-stats.html
       webrtc/video-mediastreamtrack-stats.html

Exposing libwebrtc stats through WebRTC stats API, gathered for data channel and media stream tracks.

* Modules/mediastream/RTCStatsReport.h:
(WebCore::RTCStatsReport::MediaStreamTrackStats::MediaStreamTrackStats):
(WebCore::RTCStatsReport::DataChannelStats::DataChannelStats):
* Modules/mediastream/RTCStatsReport.idl:
* Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
(WebCore::fillRTCMediaStreamTrackStats):
(WebCore::fillRTCDataChannelStats):
(WebCore::LibWebRTCMediaEndpoint::StatsCollector::OnStatsDelivered):

LayoutTests:

* webrtc/datachannel/datachannel-stats-expected.txt: Added.
* webrtc/datachannel/datachannel-stats.html: Added.
* webrtc/video-mediastreamtrack-stats-expected.txt: Added.
* webrtc/video-mediastreamtrack-stats.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/webrtc/datachannel/datachannel-stats-expected.txt [new file with mode: 0644]
LayoutTests/webrtc/datachannel/datachannel-stats.html [new file with mode: 0644]
LayoutTests/webrtc/video-mediastreamtrack-stats-expected.txt [new file with mode: 0644]
LayoutTests/webrtc/video-mediastreamtrack-stats.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/RTCStatsReport.h
Source/WebCore/Modules/mediastream/RTCStatsReport.idl
Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp