ToneDen / Player

A pure JS customizable audio player for SoundCloud.
toneden.io/player
MIT License
529 stars 77 forks source link

Autoplay #50

Closed ghost closed 8 years ago

ghost commented 9 years ago

Hello, I really dig your plugin, but I have a problem, I can't set the player to autoplay when the page loads. Is it possible?

giubil commented 8 years ago

I would guess an easy way to do this would be that after that you did your ToneDen.player.create(); you just call ToneDen.player.getInstanceByDom("#your-music-element").togglePause();

elsbree commented 8 years ago

@giubil is right, this is the best way to do autoplaying, since we're probably not going to add an 'autoplay' option to the SDK.