haikuwebkit/LayoutTests/webrtc/video-disabled-black-expect...

5 lines
33 B
Plaintext
Raw Permalink Normal View History

Disabled Media Sources should render black/silence https://bugs.webkit.org/show_bug.cgi?id=168281 Source/WebCore: Reviewed by Eric Carlson. Test: webrtc/video-disabled-black.html Pass the enabled flag setting down from the MediaStreamTrackPrivate to its underlying source, including RealtimeMediaSource and RealtimeOutgoingAudio/VideoSource. When either enabled is cleared or muted is set, generate empty (black or silent) media, as opposed to pausing media or (worse) continuing to send generated media. * platform/mediastream/MediaStreamTrackPrivate.cpp: (WebCore::MediaStreamTrackPrivate::setEnabled): (WebCore::MediaStreamTrackPrivate::sourceEnabledChanged): * platform/mediastream/MediaStreamTrackPrivate.h: * platform/mediastream/RealtimeMediaSource.cpp: (WebCore::RealtimeMediaSource::setEnabled): * platform/mediastream/RealtimeMediaSource.h: (WebCore::RealtimeMediaSource::enabled): * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.h: * platform/mediastream/mac/MockRealtimeAudioSourceMac.mm: (WebCore::MockRealtimeAudioSourceMac::render): * platform/mediastream/mac/RealtimeOutgoingAudioSource.cpp: (WebCore::RealtimeOutgoingAudioSource::sourceMutedChanged): (WebCore::RealtimeOutgoingAudioSource::sourceEnabledChanged): (WebCore::RealtimeOutgoingAudioSource::pullAudioData): * platform/mediastream/mac/RealtimeOutgoingAudioSource.h: * platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp: (WebCore::RealtimeOutgoingVideoSource::sourceMutedChanged): (WebCore::RealtimeOutgoingVideoSource::sourceEnabledChanged): (WebCore::RealtimeOutgoingVideoSource::videoSampleAvailable): * platform/mediastream/mac/RealtimeOutgoingVideoSource.h: * platform/mock/MockRealtimeVideoSource.cpp: (WebCore::MockRealtimeVideoSource::generateFrame): LayoutTests: <rdar://problem/30508003> Reviewed by Eric Carlson. * webrtc/video-disabled-black-expected.txt: Added. * webrtc/video-disabled-black.html: Added. Canonical link: https://commits.webkit.org/185422@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-15 22:44:25 +00:00
PASS Disabled source exchange
Disabled Media Sources should render black/silence https://bugs.webkit.org/show_bug.cgi?id=168281 Source/WebCore: Reviewed by Eric Carlson. Test: webrtc/video-disabled-black.html Pass the enabled flag setting down from the MediaStreamTrackPrivate to its underlying source, including RealtimeMediaSource and RealtimeOutgoingAudio/VideoSource. When either enabled is cleared or muted is set, generate empty (black or silent) media, as opposed to pausing media or (worse) continuing to send generated media. * platform/mediastream/MediaStreamTrackPrivate.cpp: (WebCore::MediaStreamTrackPrivate::setEnabled): (WebCore::MediaStreamTrackPrivate::sourceEnabledChanged): * platform/mediastream/MediaStreamTrackPrivate.h: * platform/mediastream/RealtimeMediaSource.cpp: (WebCore::RealtimeMediaSource::setEnabled): * platform/mediastream/RealtimeMediaSource.h: (WebCore::RealtimeMediaSource::enabled): * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.h: * platform/mediastream/mac/MockRealtimeAudioSourceMac.mm: (WebCore::MockRealtimeAudioSourceMac::render): * platform/mediastream/mac/RealtimeOutgoingAudioSource.cpp: (WebCore::RealtimeOutgoingAudioSource::sourceMutedChanged): (WebCore::RealtimeOutgoingAudioSource::sourceEnabledChanged): (WebCore::RealtimeOutgoingAudioSource::pullAudioData): * platform/mediastream/mac/RealtimeOutgoingAudioSource.h: * platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp: (WebCore::RealtimeOutgoingVideoSource::sourceMutedChanged): (WebCore::RealtimeOutgoingVideoSource::sourceEnabledChanged): (WebCore::RealtimeOutgoingVideoSource::videoSampleAvailable): * platform/mediastream/mac/RealtimeOutgoingVideoSource.h: * platform/mock/MockRealtimeVideoSource.cpp: (WebCore::MockRealtimeVideoSource::generateFrame): LayoutTests: <rdar://problem/30508003> Reviewed by Eric Carlson. * webrtc/video-disabled-black-expected.txt: Added. * webrtc/video-disabled-black.html: Added. Canonical link: https://commits.webkit.org/185422@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-15 22:44:25 +00:00