[MediaStream] A stream's first video frame should be rendered
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2018 05:31:22 +0000 (05:31 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2018 05:31:22 +0000 (05:31 +0000)
commit6da4e0841fc6734170f2dbcab380cbb1e8a9102f
tree592eba62a6390d588e87e542f78c4b33e3165953
parent30bff7294b72e9f6592ea6fdefb88baf80c4a3f2
[MediaStream] A stream's first video frame should be rendered
https://bugs.webkit.org/show_bug.cgi?id=192629
<rdar://problem/46664353>

Reviewed by Youenn Fablet.

Source/WebCore:

Test: fast/mediastream/media-stream-renders-first-frame.html

* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.h:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::enqueueVideoSample):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::ensureLayers):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::currentDisplayMode const):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::updateDisplayMode):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::play):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::currentReadyState):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::characteristicsChanged):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::checkSelectedVideoTrack):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::paintCurrentFrameInContext):
* platform/mediastream/RealtimeMediaSource.cpp:
(WebCore::RealtimeMediaSource::size const):
* platform/mediastream/mac/AVVideoCaptureSource.mm:
(WebCore::AVVideoCaptureSource::processNewFrame):
* platform/mediastream/mac/RealtimeIncomingVideoSourceCocoa.mm:
(WebCore::RealtimeIncomingVideoSourceCocoa::processNewSample):

LayoutTests:

* fast/mediastream/MediaStream-video-element-displays-buffer.html: Updated.
* fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled-expected.txt: Ditto.
* fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled.html: Ditto.
* fast/mediastream/media-stream-renders-first-frame-expected.txt: Added.
* fast/mediastream/media-stream-renders-first-frame.html: Added.
* http/tests/media/media-stream/getusermedia-with-canvas-expected.txt: Removed.
* http/tests/media/media-stream/getusermedia-with-canvas.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/mediastream/MediaStream-video-element-displays-buffer.html
LayoutTests/fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled-expected.txt
LayoutTests/fast/mediastream/MediaStream-video-element-video-tracks-disabled-then-enabled.html
LayoutTests/fast/mediastream/media-stream-renders-first-frame-expected.txt [new file with mode: 0644]
LayoutTests/fast/mediastream/media-stream-renders-first-frame.html [new file with mode: 0644]
LayoutTests/http/tests/media/media-stream/getusermedia-with-canvas-expected.txt [deleted file]
LayoutTests/http/tests/media/media-stream/getusermedia-with-canvas.html [deleted file]
LayoutTests/platform/gtk/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.h
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp
Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h
Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm
Source/WebCore/platform/mediastream/mac/RealtimeIncomingVideoSourceCocoa.mm