-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement cross-thread MediaSource attachments
Port relevant Chromium code to the Cobalt 25 codebase to allow for `MediaSource` objects on a Dedicated Worker to render frames on a `HTMLMediaElement` owned by the main browser thread. Usage of this feature is gated behind the `MediaSource.EnableInWorkers` H5VCC flag. In addition, the `MediaElement.EnableUsingMediaSourceBufferedRange` and `MediaElement.EnableUsingMediaSourceAttachmentMethods` flags are also required as pre-requisite features. This commit does introduce mutex locks to the `SourceBuffer` and `MediaSource` classes that cannot be fully gated behind H5VCC flags. However, current usage of both classes is contained to single-threaded usecases. As such, the mutex lock code should be an effective no-op. This is based off of the following Chromium commits: * https://chromium-review.googlesource.com/c/chromium/src/+/2459431 * https://chromium-review.googlesource.com/c/chromium/src/+/2617351 * https://chromium-review.googlesource.com/c/chromium/src/+/2909389 b/338425382
- Loading branch information
Showing
10 changed files
with
883 additions
and
140 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
Oops, something went wrong.