Skip to content

media: Wire URL player duration and buffered ranges for tvOS#11548

Draft
abhijeetk wants to merge 2 commits into
youtube:mainfrom
abhijeetk:wiring-up-duration-and-buffer-ranges
Draft

media: Wire URL player duration and buffered ranges for tvOS#11548
abhijeetk wants to merge 2 commits into
youtube:mainfrom
abhijeetk:wiring-up-duration-and-buffer-ranges

Conversation

@abhijeetk

@abhijeetk abhijeetk commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

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

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
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


media: Wire URL player duration and buffered ranges

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

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message

@abhijeetk abhijeetk self-assigned this Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant