Skip to content

Loop when player is running - #257

Merged
cookpete merged 2 commits into
cookpete:masterfrom
SkinyMonkey:feature-loop_on_fly
Oct 24, 2017
Merged

Loop when player is running#257
cookpete merged 2 commits into
cookpete:masterfrom
SkinyMonkey:feature-loop_on_fly

Conversation

@SkinyMonkey

Copy link
Copy Markdown
Contributor

I need the loop option to be activable even if the player is already playing.

I updated demo accordingly to test if you want to check it.

Thank you for this great component by the way!

Comment thread src/demo/App.js Outdated
onBuffer={() => console.log('onBuffer')}
onSeek={e => console.log('onSeek', e)}
onEnded={() => this.setState({ playing: false })}
onEnded={() => this.setState({ playing: loop ? true : false })}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless ternary, 'don't know what I was thinking about.

@cookpete

Copy link
Copy Markdown
Owner

I like the idea, but don't forget to run npm run lint before commiting.

@SkinyMonkey

Copy link
Copy Markdown
Contributor Author

Sorry for that, It should be fixed now.

@cookpete
cookpete merged commit abd2096 into cookpete:master Oct 24, 2017
@cookpete

Copy link
Copy Markdown
Owner

Nice work 👍

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

Successfully merging this pull request may close these issues.

2 participants