You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way that pause() is defined requires that after pausing, currentTime remains the same as when pause() was invoked. The final steps should wait for the media framework to actually pause, and then use the final currentTime.
It could be spec'd such that the timeupdate event is guaranteed to only fire once after pause() is invoked and that this would be the final currentTime, but that seems a bit tricky if there's already a pending timeupdate event. Instead I would like for pause() to return a promise.
foolip
changed the title
Make media element pause() async to allow for currentTime to have progressed slightly
pause() should return a Promise, allowing currentTime to progress slightly
Jan 25, 2016
The way that
pause()
is defined requires that after pausing,currentTime
remains the same as whenpause()
was invoked. The final steps should wait for the media framework to actually pause, and then use the finalcurrentTime
.It could be spec'd such that the
timeupdate
event is guaranteed to only fire once afterpause()
is invoked and that this would be the finalcurrentTime
, but that seems a bit tricky if there's already a pendingtimeupdate
event. Instead I would like forpause()
to return a promise.CC @rocallahan @jernoble @eric-carlson
The text was updated successfully, but these errors were encountered: