menismu / popcorn-js

The HTML5 Media Framework
MIT License
202 stars 29 forks source link

SoundCloud player does not start after pop.play() #11

Open menismu opened 6 years ago

menismu commented 6 years ago

Issue posted: https://github.com/mozilla/popcorn-js/issues/323 Posted by: @warp1337

@warp1337 warp1337 commented on 27 Jun 2013 See:

http://jsfiddle.net/popcornjs/7Ku6T/1/

@kaushikgandhi kaushikgandhi commented on 1 Oct 2013 Thats because the pop.play() gets executed before it loads from the sound cloud

I tried with setTimeOut it works fine

setTimeout(function(){ pop.play(); },9000); http://jsfiddle.net/7Ku6T/39/

@ScottDowne Contributor ScottDowne commented on 1 Oct 2013 You can use a canplayall event for this.

Example: http://jsfiddle.net/7Ku6T/40/

On 1 October 2013 11:02, kaushik gandhi notifications@github.com wrote:

Thats because the pop.play() gets executed before it loads from the sound cloud

I tried with setTimeOut it works fine

setTimeout(function(){ pop.play(); },9000); http://jsfiddle.net/7Ku6T/39/

— Reply to this email directly or view it on GitHubhttps://github.com/mozilla/popcorn-js/issues/323#issuecomment-25457062 .

@warp1337 warp1337 commented on 1 Oct 2013 Thank you, I'll try that when I can find some spare time!