Centralize media element ownership in PlaybackObserver - #1878
Open
peaBerberian wants to merge 1 commit into
Open
Centralize media element ownership in PlaybackObserver#1878peaBerberian wants to merge 1 commit into
peaBerberian wants to merge 1 commit into
Conversation
|
✅ Automated performance checks have passed on commit DetailsPerformance tests 1st run outputNo significative change in performance for tests:
|
peaBerberian
force-pushed
the
misc/playback-observer-media-element-ownership
branch
from
August 7, 2026 14:15
b1c9ca4 to
3ff625f
Compare
peaBerberian
force-pushed
the
dev
branch
2 times, most recently
from
August 7, 2026 15:08
01b00b9 to
3a8968e
Compare
peaBerberian
force-pushed
the
misc/playback-observer-media-element-ownership
branch
from
August 7, 2026 15:11
3ff625f to
d30da12
Compare
|
✅ Automated performance checks have passed on commit DetailsPerformance tests 1st run outputNo significative change in performance for tests:
|
peaBerberian
force-pushed
the
misc/playback-observer-media-element-ownership
branch
from
August 11, 2026 15:30
d30da12 to
6759a00
Compare
|
✅ Automated performance checks have passed on commit DetailsPerformance tests 1st run outputNo significative change in performance for tests:
|
peaBerberian
force-pushed
the
misc/playback-observer-media-element-ownership
branch
from
September 1, 2026 09:43
6759a00 to
5610847
Compare
|
✅ Automated performance checks have passed on commit DetailsPerformance tests 1st run outputNo significative change in performance for tests:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I was rebasing all my branches on dev and dived into one of my old PRs, #1754
This PR did two things:
PlaybackObserver(instead of handling it directly in the modules that needed it)PlaybackObservertoMediaElementMonitorFor a review, (1) was much more interesting than (2).
Yet because the term
PlaybackObserveris everywhere in the code, the rename was most of the diff and the interesting centralization part was lost in it.I decided to split that PR in two. This one is only about (1), while #1754 continues to combine the logic and name change.
Keeping the ownership of the media element in one single place simplified the implementation of multiple PoCs that have since been deprioritized: the preload feature (#1646) and the ""core dump"" feature.
Even without those two features, I still find the work interesting in that only one area would be changed when doing HTMLMediaElement-adjacent work instead of several.
Still not perfect though (re-reading it,
formatMediaErrorcould be moved into thePlaybackObserver, and there are remaining calls togetMediaElementthat should be removed) - so there's still some work to do on it.