Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 5eb8b5f9535303f4c25fbcaddcf718f0cf417ba1 https://github.com/WebKit/WebKit/commit/5eb8b5f9535303f4c25fbcaddcf718f0cf417ba1 Author: Youenn Fablet <youe...@gmail.com> Date: 2024-01-24 (Wed, 24 Jan 2024)
Changed paths: M LayoutTests/http/wpt/mediastream/worker-mediastreamtrack.worker.js M Source/WebCore/Modules/mediastream/MediaStreamTrackProcessor.cpp M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h Log Message: ----------- Timestamps should be preserved between VideoTrackGenerator and MediaStreamTrackProcessor https://bugs.webkit.org/show_bug.cgi?id=267929 rdar://121462248 Reviewed by Eric Carlson. Add support for setting the VideoFrame presentationTime based on the WebCodecsVideoFrame timestamp. In the future, the WebCodecsVideoFrame timestamp will be removed in favour of the VideoFrame presentationTime. Make sure to have MediaStreamTrackProcessor correctly create the WebCodecsVideoFrame with the presentationTime. * LayoutTests/http/wpt/mediastream/worker-mediastreamtrack.worker.js: (makeOffscreenCanvasVideoFrame): (promise_test.async t): * Source/WebCore/Modules/mediastream/MediaStreamTrackProcessor.cpp: (WebCore::MediaStreamTrackProcessor::VideoFrameObserver::takeVideoFrame): * Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp: (WebCore::WebCodecsVideoFrame::create): (WebCore::WebCodecsVideoFrame::initializeFrameFromOtherFrame): * Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h: Canonical link: https://commits.webkit.org/273404@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes