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

Best way to "Stop" playback? #14

Open
jfbloom22 opened this issue Apr 18, 2018 · 1 comment
Open

Best way to "Stop" playback? #14

jfbloom22 opened this issue Apr 18, 2018 · 1 comment

Comments

@jfbloom22
Copy link

Intention is to stop playback and reset the playhead back to the beginning.
I started off dispatching two actions:

dispatch(actions.setPlayHead(id, .1));
dispatch(actions.pause(id));

This worked the first time I called it but failed subsequent times. See my other issue about this: #13

What ended up working great:
dispatch(actions.pause(id, 0));

Is this the best way to "Stop"?
Suggestion: Perhaps a built in "Stop" component would be nice.

@MartinDawson
Copy link
Contributor

This is the best way to stop.

A stop method that does this would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants