Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pause() should return a Promise, allowing currentTime to progress slightly #310

Open
foolip opened this issue Nov 4, 2015 · 1 comment
Labels
addition/proposal New features or enhancements topic: media

Comments

@foolip
Copy link
Member

foolip commented Nov 4, 2015

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.

CC @rocallahan @jernoble @eric-carlson

@foolip 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
@foolip
Copy link
Member Author

foolip commented Feb 1, 2016

This was originally reported in https://www.w3.org/Bugs/Public/show_bug.cgi?id=28125

@foolip foolip added the addition/proposal New features or enhancements label Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements topic: media
Development

No branches or pull requests

1 participant