[iOS] Switching cameras in a WebRTC call makes black frames being sent
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Jun 2017 23:16:38 +0000 (23:16 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Jun 2017 23:16:38 +0000 (23:16 +0000)
commitad7c7e3d0af32e516e3f5cae6b02abb317f274c4
treee4a4e8987c90112e0ca2abb368322b9ab93f5ef1
parent3f34536517d223edd748f88f4e26a29955465974
[iOS] Switching cameras in a WebRTC call makes black frames being sent
https://bugs.webkit.org/show_bug.cgi?id=173486

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

Source/WebCore:

Test: webrtc/video-replace-muted-track.html

* platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp:
(WebCore::RealtimeOutgoingVideoSource::updateBlackFramesSending):
Ensuring the timer is stopped if needed.
(WebCore::RealtimeOutgoingVideoSource::initializeFromSource):
Calling updateBlackFramesSending to stop sending frame if needed.

LayoutTests:

* webrtc/video-replace-muted-track-expected.txt: Added.
* webrtc/video-replace-muted-track.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/webrtc/video-replace-muted-track-expected.txt [new file with mode: 0644]
LayoutTests/webrtc/video-replace-muted-track.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp