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

Implement VideoActions::togglePlay #5

Open
zzarcon opened this issue May 28, 2018 · 1 comment
Open

Implement VideoActions::togglePlay #5

zzarcon opened this issue May 28, 2018 · 1 comment

Comments

@zzarcon
Copy link
Owner

zzarcon commented May 28, 2018

This will make integration easier since user doesn't have to worry about the video status and will just pass the togglePlay action

@benswinburne
Copy link

benswinburne commented Jun 19, 2019

<button onClick={playing ? actions.pause : actions.play}>
  {state.status === 'playing' ? <Pause /> : <Play />}
</button>

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

No branches or pull requests

2 participants