Skip to content

Commit

Permalink
Use PLAYING event instead of PLAY for Twitch player
Browse files Browse the repository at this point in the history
  • Loading branch information
Webmaster1116 committed Nov 17, 2018
1 parent 1b9a233 commit 69eba01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/players/Twitch.js
Expand Up @@ -39,9 +39,9 @@ export class Twitch extends Component {
muted: this.props.muted,
...config.twitch.options
})
const { READY, PLAY, PAUSE, ENDED } = Twitch.Player
const { READY, PLAYING, PAUSE, ENDED } = Twitch.Player
this.player.addEventListener(READY, this.props.onReady)
this.player.addEventListener(PLAY, this.props.onPlay)
this.player.addEventListener(PLAYING, this.props.onPlay)
this.player.addEventListener(PAUSE, this.props.onPause)
this.player.addEventListener(ENDED, this.props.onEnded)
}, onError)
Expand Down

0 comments on commit 69eba01

Please sign in to comment.