media: Wire URL player duration and buffered ranges for tvOS#11548
Draft
abhijeetk wants to merge 2 commits into
Draft
media: Wire URL player duration and buffered ranges for tvOS#11548abhijeetk wants to merge 2 commits into
abhijeetk wants to merge 2 commits into
Conversation
Add URL player support to StarboardRenderer for native HLS playback. UrlPlayerDemuxer provides placeholder streams for pipeline init while the platform player handles actual playback via SetSourceUrl. Bug: 512045535
Plumb duration and buffered time range reporting from the URL player through StarboardRenderer → StarboardRendererWrapper → [Mojo IPC] → StarboardRendererClient → UrlPlayerDemuxer → Pipeline, so JS video.duration and video.buffered APIs reflect the platform player state. Duration is reported once at kSbPlayerStatePresenting. Buffered ranges are polled in GetMediaTime on each timer tick. Bug: 512045535
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
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.
Plumb duration and buffered time range reporting from the URL player
through StarboardRenderer, StarboardRendererWrapper, Mojo IPC, and
UrlPlayerDemuxer. This ensures that the JavaScript video.duration and
video.buffered APIs correctly reflect the underlying platform player
state on tvOS.
Duration is reported once when the player reaches the presenting state.
Buffered ranges are polled via GetMediaTime on each timer tick to
provide continuous updates to the web application.
Bug: 512045535