- From: Ian Hickson <ian@hixie.ch>
- Date: Wed, 10 Feb 2010 02:45:26 +0000 (UTC)
- To: Simon Pieters <simonp@opera.com>
- Cc: "public-html@w3.org" <public-html@w3.org>
On Mon, 1 Feb 2010, Simon Pieters wrote: > > http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#seeking > > "8. If the media element was potentially playing immediately before it > started seeking, but seeking caused its readyState attribute to change > to a value lower than HAVE_FUTURE_DATA, the user agent must queue a task > to fire a simple event named waiting at the element." > > We don't want to do this sync in the seek algorithm, because we can't > easily tell whether readyState will change at this point. Instead we > suggest that waiting be fired as part of this requirement: > > "When a media element that is potentially playing stops playing because > its readyState attribute changes to a value lower than HAVE_FUTURE_DATA, > without the element having ended playback, or playback having stopped > due to errors, or playback having paused for user interaction, or the > seeking algorithm being invoked, the user agent must queue a task to > fire a simple event named timeupdate at the element, and queue a task to > fire a simple event named waiting at the element." > > (which needs modification to cover the seeking case) > > "9. If, when it reaches this step, the user agent has still not > established whether or not the media data for the new playback position > is available, and, if it is, decoded enough data to play back that > position, the user agent must queue a task to fire a simple event named > seeking at the element." > > We think it's better to always fire seeking, because we won't easily be > able to tell whether the new position is available. If you implement .buffered, surely you have all the information you need to know how readyState will change and whether the new position is available? Why would you not have that information? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 10 February 2010 02:45:57 UTC