-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update MediaPositionState WebIDL #304
Conversation
f2a317d
to
31f3cf7
Compare
31f3cf7
to
00da359
Compare
@marcoscaceres, @steimelchrome, PTAL |
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.
Sorry for the delay here...
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.
Couple of nits... but if it's not too late, it might be worth considering adding an explicit method for "clear" or reset.
It is probably worth an issue. Implementations do clear in case of setPositionState() so I am not sure we can break this. |
Ok, filed #315 ... can follow up on that. |
Co-authored-by: Marcos Cáceres <[email protected]>
Co-authored-by: Marcos Cáceres <[email protected]>
Co-authored-by: Marcos Cáceres <[email protected]>
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.
LGTM, thank you!
SHA: 42221de Reason: push, by youennf Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Update for the spec change w3c/mediasession#304 Bug: 324153759 Change-Id: I006b079954cdb5818e97200b65e6ea42333ad6fb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5274534 Reviewed-by: Tommy Steimel <[email protected]> Commit-Queue: Yiren Wang <[email protected]> Reviewed-by: Matthew Denton <[email protected]> Cr-Commit-Position: refs/heads/main@{#1257586}
Fixes #303
Fixes #252
We make duration a required member of MediaPositionState and add default values for position and playbackRate. duration is now unrestricted to allow Infinity, we add a special check for NaN.
We update MediaSession.setPositionState to accept null since MediaPositionState now has a required member.
This overtakes #303 and should fix #303 and #252.
Preview | Diff