Skip to content

Commit 647fa9e

Browse files
committed
Remove redundant soundcloud player options
1 parent 00f9671 commit 647fa9e

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/players/SoundCloud.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class SoundCloud extends Base {
5050
if (image) {
5151
this.setState({ image: image.replace('-large', '-t500x500') })
5252
}
53-
SC.stream(data.uri, this.options, player => {
53+
SC.stream(data.uri, player => {
5454
this.player = player
5555
player._player.on('stateChange', this.onStateChange)
5656
this.onReady()
@@ -64,15 +64,6 @@ export default class SoundCloud extends Base {
6464
if (state === 'loading') this.props.onBuffer()
6565
if (state === 'ended') this.props.onEnded()
6666
}
67-
options = {
68-
onplay: this.props.onPlay,
69-
onpause: this.props.onPause,
70-
onbufferchange: function () {
71-
if (this.player.isBuffering) this.props.onBuffer()
72-
},
73-
onfinish: this.props.onFinish,
74-
ondataerror: this.props.onError
75-
}
7667
play () {
7768
if (!this.isReady) return
7869
this.player.play()

0 commit comments

Comments
 (0)