mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
Auto merge of #22348 - germangb:html_media_ended, r=ferjm
Implement Ended media attribute <!-- Please describe your changes on the following line: --> This PR should implement: * New method `HTMLMediaElement::earliest_possible_position()` for the [earliest possible position](https://html.spec.whatwg.org/multipage/media.html#earliest-possible-position) * `Ended` attribute following https://html.spec.whatwg.org/multipage/media.html#ended-playback * Queue steps for when the playback position reaches the end This PR contains placeholders for the following issues (I can rebase changes after the corresponding PRs get merged) - #22321 (Define the Loop attribute) - #22293 (To identify playback direction. Either forwards or backwards) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [x] These changes fix #22294. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22348) <!-- Reviewable:end -->
This commit is contained in:
commit
1f9b134794
3 changed files with 104 additions and 25 deletions
|
@ -46,7 +46,7 @@ interface HTMLMediaElement : HTMLElement {
|
|||
[Throws] attribute double playbackRate;
|
||||
readonly attribute TimeRanges played;
|
||||
// readonly attribute TimeRanges seekable;
|
||||
// readonly attribute boolean ended;
|
||||
readonly attribute boolean ended;
|
||||
[CEReactions] attribute boolean autoplay;
|
||||
// [CEReactions] attribute boolean loop;
|
||||
Promise<void> play();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue