[webkit-changes] [WebKit/WebKit] 5eb8b5: Timestamps should be preserved between VideoTrackG...
youennf
noreply at github.com
Wed Jan 24 03:33:46 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5eb8b5f9535303f4c25fbcaddcf718f0cf417ba1
https://github.com/WebKit/WebKit/commit/5eb8b5f9535303f4c25fbcaddcf718f0cf417ba1
Author: Youenn Fablet <youennf at 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
More information about the webkit-changes
mailing list