getReceivers() should return transceivers that have only an active receiver
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Jun 2017 17:41:13 +0000 (17:41 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Jun 2017 17:41:13 +0000 (17:41 +0000)
commit8f9ec8dbc571e693eb89a249273bc4c4fc8573a5
tree0c97659c25f87f4e52614dbbc7d7b81d435ae820
parentc30f4b1cdf0f957608fd7a8ad2a2e4272f2b6aa3
getReceivers() should return transceivers that have only an active receiver
https://bugs.webkit.org/show_bug.cgi?id=173313

Patch by Youenn Fablet <youenn@apple.com> on 2017-06-13
Reviewed by Alex Christensen.

Source/WebCore:

Test: webrtc/video-receivers.html

Creating transceivers for receivers created from an offer.
Setting these as recvonly.

* Modules/mediastream/RTCRtpTransceiver.h:
* Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:
(WebCore::LibWebRTCPeerConnectionBackend::videoReceiver):
(WebCore::LibWebRTCPeerConnectionBackend::audioReceiver):

LayoutTests:

* fast/mediastream/RTCPeerConnection-addTrack-reuse-sender-expected.txt:
* webrtc/video-receivers-expected.txt: Added.
* webrtc/video-receivers.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/mediastream/RTCPeerConnection-addTrack-reuse-sender-expected.txt
LayoutTests/webrtc/video-receivers-expected.txt [new file with mode: 0644]
LayoutTests/webrtc/video-receivers.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/RTCRtpTransceiver.h
Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp