soundcloud / soundcloud-custom-player

The SoundCloud custom javascript based player
http://soundcloud.com
705 stars 231 forks source link

Manually trigger start track #71

Open kplates opened 11 years ago

kplates commented 11 years ago

As the title says, how can I target a player using a class then begin playback?

kplates commented 11 years ago

I have managed to trigger a click $('.custom2').find('.sc-play').trigger('click'); which works but kinda messy.

crecord commented 10 years ago

This worked for me too. Thanks for the tip. Relates to this question: http://stackoverflow.com/questions/17029043/controlling-soundcloud-custom-player-with-html5-widget