Skip to content

Best way to "Stop" playback? #14

@jfbloom22

Description

@jfbloom22

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions