File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments