-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
html: Run the <media> play seek if loop attribute was set after playback ended
#40688
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
html: Run the <media> play seek if loop attribute was set after playback ended
#40688
Conversation
|
🔨 Triggering try run (#19427878425) for Linux (WPT) |
|
Please notice that this pull request is focusing on the So in summary this pull request is changing expected test result from |
|
Test results for linux-wpt from try job (#19427878425): Flaky unexpected result (41)
Stable unexpected results that are known to be intermittent (24)
|
|
✨ Try run (#19427878425) succeeded. |
TimvdLippe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 nit about the boolean, the rest LGTM. After merging, can you monitor the intermittent issue and see if it remains intermittent after 7 days? That way we can know if it is resolved or not.
It will not be resolved by this PR - #33778 (comment) |
…layback ended The user agent on the `internal play steps` (step 2) must to seek to the earliest possible position if the playback has ended, but the definition of the `ended playback` prevents looping when the loop attribute was added after playback has ended (already registered whatwg html issue). ``` - playback ended (`ended` event) - loop = true - play() (no seeking - playback hasn't ended) ``` Currently this edge case if not yet reflected in the HTML specification so let's do the same as other browsers and ignore the `loop` attribute for `play` seek. See https://html.spec.whatwg.org/multipage/#internal-play-steps See whatwg/html#4487 Testing: Improvements in the following tests - html/semantics/embedded-content/media-elements/playing-the-media-resource/loop-from-ended.tentative.html Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
822a7d6 to
dc3815a
Compare
The user agent on the
internal play steps(step 2) must to seek to the earliest possible position if the playback has ended, but the definition of theended playbackprevents looping when the loop attribute was added after playback has ended (already registered whatwg html issue).Currently this edge case if not yet reflected in the HTML specification so let's do the same as other browsers and ignore the
loopattribute forplayseek.See https://html.spec.whatwg.org/multipage/#internal-play-steps
See whatwg/html#4487
Testing: Improvements in the following tests