Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple MediaSourceAttachment class #3232

Merged
merged 6 commits into from
May 17, 2024

Conversation

at-ninja
Copy link
Contributor

Registers MediaSource objects to the MediaSourceRegistry through a MediaSourceAttachment proxy. The new MediaSourceAttachment class is cross-thread reference counting safe, unlike MediaSource, which will allow for utilizing MediaSource objects created on Dedicated Workers.

This change does not add any additional functionality, and is intended as an incremental update towards enabling the creation of MediaSource objects on Dedicated Worker threads.

See Chromium's MediaSourceAttachment interface, and the commit that initially introduced it.

b/338425449

Change-Id: I016c010c9ef4a0e576bd67ce584d75dbe75986ec

Registers `MediaSource` objects to the `MediaSourceRegistry` through a
`MediaSourceAttachment` proxy. The new `MediaSourceAttachment` class is
cross-thread reference counting safe, unlike `MediaSource`, which will
allow for utilizing `MediaSource` objects created on Dedicated Workers.

This change does not add any additional functionality, and is intended
as an incremental update towards enabling the creation of `MediaSource`
objects on Dedicated Worker threads.

See [Chromium's `MediaSourceAttachment` interface][1], and the commit
that [initially introduced it][2].

[1]: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/media/media_source_attachment.h
[2]: https://chromium-review.googlesource.com/c/chromium/src/+/2300804

b/338425449

Change-Id: I016c010c9ef4a0e576bd67ce584d75dbe75986ec
@at-ninja at-ninja requested a review from xiaomings May 13, 2024 20:34
Change-Id: I6e7d522bf99d77a2d81dbbdb6136cb84d51b1d2b
…ment

Change-Id: I68d09d664fcd22fe1d2fa5cf4103aacb92cf2cd3
@at-ninja at-ninja enabled auto-merge (squash) May 15, 2024 23:21
@at-ninja at-ninja added cp-25.lts.1+ Cherry Pick to the 25.lts.1+ branch and removed cp-25.lts.1+ Cherry Pick to the 25.lts.1+ branch labels May 16, 2024
auto-merge was automatically disabled May 17, 2024 17:06

Pull Request is not mergeable

@at-ninja at-ninja merged commit 29e0d65 into youtube:main May 17, 2024
308 of 309 checks passed
@at-ninja at-ninja added the cp-25.lts.1+ Cherry Pick to the 25.lts.1+ branch label May 17, 2024
cobalt-github-releaser-bot pushed a commit that referenced this pull request May 17, 2024
Registers `MediaSource` objects to the `MediaSourceRegistry` through a
`MediaSourceAttachment` proxy. The new `MediaSourceAttachment` class is
cross-thread reference counting safe, unlike `MediaSource`, which will
allow for utilizing `MediaSource` objects created on Dedicated Workers.

This change does not add any additional functionality, and is intended
as an incremental update towards enabling the creation of `MediaSource`
objects on Dedicated Worker threads.

See [Chromium's `MediaSourceAttachment` interface][1], and the commit
that [initially introduced it][2].

[1]:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/media/media_source_attachment.h
[2]: https://chromium-review.googlesource.com/c/chromium/src/+/2300804

b/338425449

Change-Id: I016c010c9ef4a0e576bd67ce584d75dbe75986ec
(cherry picked from commit 29e0d65)
at-ninja added a commit that referenced this pull request May 20, 2024
Refer to the original PR: #3232

Registers `MediaSource` objects to the `MediaSourceRegistry` through a
`MediaSourceAttachment` proxy. The new `MediaSourceAttachment` class is
cross-thread reference counting safe, unlike `MediaSource`, which will
allow for utilizing `MediaSource` objects created on Dedicated Workers.

This change does not add any additional functionality, and is intended
as an incremental update towards enabling the creation of `MediaSource`
objects on Dedicated Worker threads.

See [Chromium's `MediaSourceAttachment` interface][1], and the commit
that [initially introduced it][2].

[1]:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/media/media_source_attachment.h
[2]: https://chromium-review.googlesource.com/c/chromium/src/+/2300804

b/338425449

Change-Id: I016c010c9ef4a0e576bd67ce584d75dbe75986ec

Co-authored-by: Drew Thomas <[email protected]>
@at-ninja at-ninja deleted the media-source-attachment branch May 20, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cp-25.lts.1+ Cherry Pick to the 25.lts.1+ branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants