mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
media element: support seekable attribute (#36541)
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: https://github.com/servo/servo/issues/22297 Will wait for https://github.com/servo/media/pull/435 before turning this to ready for review. cc @jdm @xiaochengh Signed-off-by: rayguo17 <rayguo17@gmail.com>
This commit is contained in:
parent
15199ba2ef
commit
f5e6eb289a
5 changed files with 59 additions and 39 deletions
|
@ -45,7 +45,7 @@ interface HTMLMediaElement : HTMLElement {
|
|||
[Throws] attribute double defaultPlaybackRate;
|
||||
[Throws] attribute double playbackRate;
|
||||
readonly attribute TimeRanges played;
|
||||
// readonly attribute TimeRanges seekable;
|
||||
readonly attribute TimeRanges seekable;
|
||||
readonly attribute boolean ended;
|
||||
[CEReactions] attribute boolean autoplay;
|
||||
[CEReactions] attribute boolean loop;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue