Jordan Warbelow-Feldstein
Jordan Warbelow-Feldstein

Reputation: 10748

Control Embedded Grooveshark Widgets using Javascript?

How would I play/pause an embedded Grooveshark widget using Javascript?

Would like to play separate single-song widgets in sequence, ala separate tracks on a soundcloud user's page.

I didn't see anything officially supported, and couldn't find anything via googling.

Upvotes: 3

Views: 501

Answers (1)

Collective Cognition
Collective Cognition

Reputation: 697

I took a quick glance at the decompiled actionscript and turned up the following ExternalInterface callbacks:

getVersion()
getCurrentSong()
setSongCompleteCallback(string)
setErrorCallback(string)
setStatusCallback(string)
setSongChangeCallback(string)
playSong()
pauseSong()
resumeSong()
stopSong()
replaceSongs(array)

In theory, you should be able to do something like the following:

widget.stopSong();

Upvotes: 0

Related Questions