haikuwebkit/LayoutTests/webrtc/peer-connection-audio-unmut...

4 lines
79 B
Plaintext
Raw Permalink Normal View History

PeerConnection should respect tracks that are muted at the time they are added https://bugs.webkit.org/show_bug.cgi?id=172771 Patch by Youenn Fablet <youenn@apple.com> on 2017-05-31 Reviewed by Eric Carlson. Source/WebCore: Tests: webrtc/peer-connection-audio-unmute.html webrtc/video-unmute.html Making sure that muted/enabled state of sources are correctly handled at creation time of the outgoing webrtc sources. This should trigger silent audio and black frames. * platform/mediastream/mac/RealtimeOutgoingAudioSource.cpp: (WebCore::RealtimeOutgoingAudioSource::RealtimeOutgoingAudioSource): (WebCore::RealtimeOutgoingAudioSource::setSource): (WebCore::RealtimeOutgoingAudioSource::initializeConverter): * platform/mediastream/mac/RealtimeOutgoingAudioSource.h: * platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp: (WebCore::RealtimeOutgoingVideoSource::RealtimeOutgoingVideoSource): (WebCore::RealtimeOutgoingVideoSource::setSource): (WebCore::RealtimeOutgoingVideoSource::sourceMutedChanged): (WebCore::RealtimeOutgoingVideoSource::sourceEnabledChanged): (WebCore::RealtimeOutgoingVideoSource::initializeFromSource): (WebCore::RealtimeOutgoingVideoSource::AddOrUpdateSink): (WebCore::RealtimeOutgoingVideoSource::RemoveSink): (WebCore::RealtimeOutgoingVideoSource::sendBlackFramesIfNeeded): (WebCore::RealtimeOutgoingVideoSource::setSizeFromSource): Deleted. (WebCore::RealtimeOutgoingVideoSource::sendBlackFrames): Deleted. * platform/mediastream/mac/RealtimeOutgoingVideoSource.h: LayoutTests: * webrtc/audio-replace-track.html: * webrtc/peer-connection-audio-unmute-expected.txt: Added. * webrtc/peer-connection-audio-unmute.html: Added. * webrtc/routines.js: * webrtc/video-unmute-expected.txt: Added. * webrtc/video-unmute.html: Added. Canonical link: https://commits.webkit.org/189671@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-05-31 20:51:12 +00:00
PASS Muting a local audio track before adding it should be correctly handled
PeerConnection should respect tracks that are muted at the time they are added https://bugs.webkit.org/show_bug.cgi?id=172771 Patch by Youenn Fablet <youenn@apple.com> on 2017-05-31 Reviewed by Eric Carlson. Source/WebCore: Tests: webrtc/peer-connection-audio-unmute.html webrtc/video-unmute.html Making sure that muted/enabled state of sources are correctly handled at creation time of the outgoing webrtc sources. This should trigger silent audio and black frames. * platform/mediastream/mac/RealtimeOutgoingAudioSource.cpp: (WebCore::RealtimeOutgoingAudioSource::RealtimeOutgoingAudioSource): (WebCore::RealtimeOutgoingAudioSource::setSource): (WebCore::RealtimeOutgoingAudioSource::initializeConverter): * platform/mediastream/mac/RealtimeOutgoingAudioSource.h: * platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp: (WebCore::RealtimeOutgoingVideoSource::RealtimeOutgoingVideoSource): (WebCore::RealtimeOutgoingVideoSource::setSource): (WebCore::RealtimeOutgoingVideoSource::sourceMutedChanged): (WebCore::RealtimeOutgoingVideoSource::sourceEnabledChanged): (WebCore::RealtimeOutgoingVideoSource::initializeFromSource): (WebCore::RealtimeOutgoingVideoSource::AddOrUpdateSink): (WebCore::RealtimeOutgoingVideoSource::RemoveSink): (WebCore::RealtimeOutgoingVideoSource::sendBlackFramesIfNeeded): (WebCore::RealtimeOutgoingVideoSource::setSizeFromSource): Deleted. (WebCore::RealtimeOutgoingVideoSource::sendBlackFrames): Deleted. * platform/mediastream/mac/RealtimeOutgoingVideoSource.h: LayoutTests: * webrtc/audio-replace-track.html: * webrtc/peer-connection-audio-unmute-expected.txt: Added. * webrtc/peer-connection-audio-unmute.html: Added. * webrtc/routines.js: * webrtc/video-unmute-expected.txt: Added. * webrtc/video-unmute.html: Added. Canonical link: https://commits.webkit.org/189671@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-05-31 20:51:12 +00:00