This website requires JavaScript.
Explore
Help
Sign In
nephele
/
haikuwebkit
Watch
1
Star
0
Fork
You've already forked haikuwebkit
0
Code
Issues
Releases
Activity
haiku
haikuwebkit
/
LayoutTests
/
webrtc
/
peer-connection-audio-mute2...
4 lines
47 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
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
Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) https://bugs.webkit.org/show_bug.cgi?id=217016 Reviewed by Zalan Bujtas. Done with this command: find LayoutTests -name '*-expected.txt' | grep -v imported | xargs awk '/^CONSOLE MESSAGE:/ { next }; /^<\?xml/ { nextfile }; { print FILENAME; nextfile }' | xargs perl -i -pe 's/ +$//g' This affects many files, and it's not helpful to clog the change log with a list of them. Canonical link: https://commits.webkit.org/229803@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-27 02:15:19 +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