[Bug 13871] <video> behavior when setting currentTime to current playback position

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13871

--- Comment #12 from Glenn Adams <glenn@skynav.com> 2011-08-26 12:23:59 UTC ---
(In reply to comment #11)
> (In reply to comment #10)
> > (In reply to comment #8)
> > > better code have been written as:
> > > 
> > > c.onclick = function() {
> > >   if ( v.readyState > HTMLMediaElement.HAVE_NOTHING ) {
> > >     var newTime = /* calculate new pos based on click position and duration */;
> > >     v.currentTime = newTime;
> > >     s.display = 'block';
> > >   }
> > > };
> > > 
> > > one might conclude your example was broken in the first place
> > 
> > It would still break in exactly the same way after this change.
> 
> since I proposed that no exception be raised only when:
> 
> readyState == HAVE_NOTHING && newTime == currentTime
> 
> then it would not "break" the above code, which does not rely upon the
> exception when readyState == HAVE_NOTHING

a final comment about 'breaking' existing code: that is a red herring argument
in the first place, since HTML5 is not final and is subject to breaking changes
in at this stage of its development, particularly with respect to new features
such as video/audio:

"Implementors should be aware that this specification is not stable.
Implementors who are not taking part in the discussions are likely to find the
specification changing out from under them in incompatible ways."

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 26 August 2011 12:24:02 UTC