-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timestamps should be preserved between VideoTrackGenerator and MediaS…
…treamTrackProcessor 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
- Loading branch information
Showing
4 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters