haikuwebkit/LayoutTests/webrtc/video-mute-expected.txt

12 lines
414 B
Plaintext
Raw Permalink Normal View History

Ensure RealtimeOutgoingVideoSource sends a black frame when its related source is muted https://bugs.webkit.org/show_bug.cgi?id=171497 Patch by Youenn Fablet <youenn@apple.com> on 2017-05-01 Reviewed by Eric Carlson. Source/WebCore: Covered by updated test. When the track is being muted or disabled, send a black frame explicitly. VideoToolBox sometimes does not output a frame until it receives the other. That is why we end up sending two frames, the second asynchronously so that libwebrtc will not skip it. Also storing the rotation so that we keep the same rotation for black frames. Storing width and height for consistency as well. * platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp: (WebCore::RealtimeOutgoingVideoSource::RealtimeOutgoingVideoSource): (WebCore::RealtimeOutgoingVideoSource::setSource): (WebCore::RealtimeOutgoingVideoSource::stop): (WebCore::RealtimeOutgoingVideoSource::sourceMutedChanged): (WebCore::RealtimeOutgoingVideoSource::sourceEnabledChanged): (WebCore::RealtimeOutgoingVideoSource::setSizeFromSource): (WebCore::RealtimeOutgoingVideoSource::sendBlackFrame): (WebCore::RealtimeOutgoingVideoSource::sendFrame): (WebCore::RealtimeOutgoingVideoSource::videoSampleAvailable): * platform/mediastream/mac/RealtimeOutgoingVideoSource.h: LayoutTests: * webrtc/video-mute.html: Updating the test to make debugging clearer. Canonical link: https://commits.webkit.org/188441@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-05-02 01:33:37 +00:00
Video should be running, go to black and running.
Following, should be a snapshot of the video, a black frame and a snapshot of the video.
PASS Setting video exchange
PASS Ensuring connection state is connected
PASS Track is enabled, video should not be black
PASS Track is disabled, video should be black
PASS If disabled, black frames should still be coming
PASS Track is enabled, video should not be black 2