Skip to content

Commit

Permalink
Remove redundant soundcloud player options
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Jan 4, 2016
1 parent 00f9671 commit 647fa9e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/players/SoundCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class SoundCloud extends Base {
if (image) {
this.setState({ image: image.replace('-large', '-t500x500') })
}
SC.stream(data.uri, this.options, player => {
SC.stream(data.uri, player => {
this.player = player
player._player.on('stateChange', this.onStateChange)
this.onReady()
Expand All @@ -64,15 +64,6 @@ export default class SoundCloud extends Base {
if (state === 'loading') this.props.onBuffer()
if (state === 'ended') this.props.onEnded()
}
options = {
onplay: this.props.onPlay,
onpause: this.props.onPause,
onbufferchange: function () {
if (this.player.isBuffering) this.props.onBuffer()
},
onfinish: this.props.onFinish,
ondataerror: this.props.onError
}
play () {
if (!this.isReady) return
this.player.play()
Expand Down

0 comments on commit 647fa9e

Please sign in to comment.