Skip to content

extend player api to support seekable #435

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

Merged
merged 2 commits into from
Apr 15, 2025
Merged

extend player api to support seekable #435

merged 2 commits into from
Apr 15, 2025

Conversation

rayguo17
Copy link
Contributor

@rayguo17 rayguo17 commented Apr 15, 2025

extend player trait to have fn seekable()
if the source is StreamType::Seekable return its duration, else return buffered ranges.
related spec,

Related Issue: servo/servo#22297

cc @jdm

@rayguo17 rayguo17 marked this pull request as ready for review April 15, 2025 11:11
Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jdm jdm added this pull request to the merge queue Apr 15, 2025
Merged via the queue into servo:main with commit eb96030 Apr 15, 2025
3 checks passed
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Apr 16, 2025
support seekable attribute in `htmlmediaelement`, modify `seek`
algorithm to use `seekable` attribute.

related
[specs](https://html.spec.whatwg.org/multipage/media.html#dom-media-seekable)
Testing: Run WPT Test
Fixes: #22297

Will wait for servo/media#435 before turning
this to ready for review.
cc @jdm @xiaochengh

Signed-off-by: rayguo17 <[email protected]>
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Apr 16, 2025
support seekable attribute in `htmlmediaelement`, modify `seek`
algorithm to use `seekable` attribute.

related
[specs](https://html.spec.whatwg.org/multipage/media.html#dom-media-seekable)
Testing: Run WPT Test
Fixes: #22297

Will wait for servo/media#435 before turning
this to ready for review.
cc @jdm @xiaochengh

Signed-off-by: rayguo17 <[email protected]>
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.

2 participants