aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmediaelement.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-10-24 15:45:40 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-10-26 10:22:00 +0200
commitaa3c911efa831e9d94f44c28ef1230e5a08d6818 (patch)
tree66483446581c0c0fc7508bd634722de5c9b34392 /components/script/dom/htmlmediaelement.rs
parentd94cbc83fc9bb4fb8940900c3e320df3c9d9ed0d (diff)
downloadservo-aa3c911efa831e9d94f44c28ef1230e5a08d6818.tar.gz
servo-aa3c911efa831e9d94f44c28ef1230e5a08d6818.zip
HTMLMediaElement.seek: clean-up and update WPTs expectations
Diffstat (limited to 'components/script/dom/htmlmediaelement.rs')
-rw-r--r--components/script/dom/htmlmediaelement.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index 69a82754118..43fdbefa9bd 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -35,7 +35,7 @@ use dom::virtualmethods::VirtualMethods;
use dom_struct::dom_struct;
use fetch::FetchCanceller;
use html5ever::{LocalName, Prefix};
-use hyper::header::{ByteRangeSpec, ContentLength, Headers, Range as HyperRange, RangeUnit};
+use hyper::header::{ByteRangeSpec, ContentLength, Headers, Range as HyperRange};
use ipc_channel::ipc;
use ipc_channel::router::ROUTER;
use microtask::{Microtask, MicrotaskRunnable};
@@ -1040,9 +1040,7 @@ impl HTMLMediaElement {
// Step 8.
// XXX(ferjm) seekable attribute: we need to get the information about
// what's been decoded and buffered so far from servo-media
- // and turn the seekable attribute into a TimeRange.
- // For now we use a boolean flag that is true iff the server
- // supports byte-range requests.
+ // and add the seekable attribute as a TimeRange.
// Step 9.
// servo-media with gstreamer does not support inaccurate seeking for now.
@@ -1177,11 +1175,6 @@ impl HTMLMediaElement {
},
_ => {},
},
- PlayerEvent::PositionChanged(_) |
- PlayerEvent::SeekData(_) |
- PlayerEvent::SeekDone(_) => {
- // TODO: Support for HTMLMediaElement seeking and related API properties #21998
- },
PlayerEvent::EndOfStream => {
// https://html.spec.whatwg.org/multipage/#media-data-processing-steps-list
// => "If the media data can be fetched but is found by inspection to be in