Update readme (#497)

This commit is contained in:
Andrew Jack
2017-03-21 20:25:04 +00:00
committed by Matt Apperson
parent c56fd2d908
commit 5a4730cb8c
2 changed files with 13 additions and 23 deletions

View File

@@ -33,7 +33,7 @@ https://github.com/google/ExoPlayer
this.setState({ pause: true })
}
onAudioFocusChanged(event: { hasAudioFocus: boolean }) {
onAudioFocusChanged = (event: { hasAudioFocus: boolean }) => {
if (!this.state.paused && !event.hasAudioFocus) {
this.setState({ paused: true })
}