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

4 lines
47 B
Plaintext
Raw Permalink Normal View History

Improve WebRTC track enabled support https://bugs.webkit.org/show_bug.cgi?id=169727 Patch by Youenn Fablet <youenn@apple.com> on 2017-03-16 Reviewed by Alex Christensen. Source/WebCore: Tests: webrtc/peer-connection-audio-mute2.html webrtc/peer-connection-remote-audio-mute.html webrtc/video-remote-mute.html Making sure muted/disabled sources produce silence/black frames. For outgoing audio/video sources, this should be done by the actual a/v providers. We keep this filtering here until we are sure they implement that. * platform/audio/mac/AudioSampleDataSource.mm: (WebCore::AudioSampleDataSource::pullAvalaibleSamplesAsChunks): Ensuring disabled audio tracks send silence. Used for outgoing webrtc tracks. * platform/mediastream/mac/MockRealtimeAudioSourceMac.mm: (WebCore::MockRealtimeAudioSourceMac::render): Ditto. * platform/mediastream/mac/RealtimeIncomingAudioSource.cpp: (WebCore::RealtimeIncomingAudioSource::OnData): Ditto. * platform/mediastream/mac/RealtimeIncomingVideoSource.cpp: (WebCore::RealtimeIncomingVideoSource::pixelBufferFromVideoFrame): Generating black frames if muted. (WebCore::RealtimeIncomingVideoSource::OnFrame): * platform/mediastream/mac/RealtimeIncomingVideoSource.h: * platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp: (WebCore::RealtimeOutgoingVideoSource::videoSampleAvailable): Ensuring we quit after sending black frame. LayoutTests: * TestExpectations: * webrtc/audio-peer-connection-webaudio.html: * webrtc/peer-connection-audio-mute-expected.txt: * webrtc/peer-connection-audio-mute.html: * webrtc/peer-connection-audio-mute2-expected.txt: Added. * webrtc/peer-connection-audio-mute2.html: Added. * webrtc/peer-connection-remote-audio-mute-expected.txt: Added. * webrtc/peer-connection-remote-audio-mute.html: Added. * webrtc/video-mute-expected.txt: * webrtc/video-mute.html: * webrtc/video-remote-mute-expected.txt: Added. * webrtc/video-remote-mute.html: Added. Canonical link: https://commits.webkit.org/186716@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-16 16:09:50 +00:00
PASS Muting and unmuting a local audio track
Improve WebRTC track enabled support https://bugs.webkit.org/show_bug.cgi?id=169727 Patch by Youenn Fablet <youenn@apple.com> on 2017-03-16 Reviewed by Alex Christensen. Source/WebCore: Tests: webrtc/peer-connection-audio-mute2.html webrtc/peer-connection-remote-audio-mute.html webrtc/video-remote-mute.html Making sure muted/disabled sources produce silence/black frames. For outgoing audio/video sources, this should be done by the actual a/v providers. We keep this filtering here until we are sure they implement that. * platform/audio/mac/AudioSampleDataSource.mm: (WebCore::AudioSampleDataSource::pullAvalaibleSamplesAsChunks): Ensuring disabled audio tracks send silence. Used for outgoing webrtc tracks. * platform/mediastream/mac/MockRealtimeAudioSourceMac.mm: (WebCore::MockRealtimeAudioSourceMac::render): Ditto. * platform/mediastream/mac/RealtimeIncomingAudioSource.cpp: (WebCore::RealtimeIncomingAudioSource::OnData): Ditto. * platform/mediastream/mac/RealtimeIncomingVideoSource.cpp: (WebCore::RealtimeIncomingVideoSource::pixelBufferFromVideoFrame): Generating black frames if muted. (WebCore::RealtimeIncomingVideoSource::OnFrame): * platform/mediastream/mac/RealtimeIncomingVideoSource.h: * platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp: (WebCore::RealtimeOutgoingVideoSource::videoSampleAvailable): Ensuring we quit after sending black frame. LayoutTests: * TestExpectations: * webrtc/audio-peer-connection-webaudio.html: * webrtc/peer-connection-audio-mute-expected.txt: * webrtc/peer-connection-audio-mute.html: * webrtc/peer-connection-audio-mute2-expected.txt: Added. * webrtc/peer-connection-audio-mute2.html: Added. * webrtc/peer-connection-remote-audio-mute-expected.txt: Added. * webrtc/peer-connection-remote-audio-mute.html: Added. * webrtc/video-mute-expected.txt: * webrtc/video-mute.html: * webrtc/video-remote-mute-expected.txt: Added. * webrtc/video-remote-mute.html: Added. Canonical link: https://commits.webkit.org/186716@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-16 16:09:50 +00:00