voronianski / soundcloud-audio.js

:musical_note: SoundCloud tracks and playlists with HTML5 Audio API
http://caniuse.com/#feat=audio
284 stars 46 forks source link

Unable to add event listener on resolve() #29

Closed karneaud closed 6 years ago

karneaud commented 6 years ago

using your package on Opera 50.x Safari and with the following code

SC.resolve(tracks[0].uri, () => {
    SC.pause()
    SC.on('timeupdate', function () {
      console.log(SC.audio.currentTime );
    });
    SC.play()

    console.log('ok');
  })

the track plays but the time update is not operational. do I need to set it up on the audio property itself? or does it need to streamUrl?

karneaud commented 6 years ago

Please delete this issue