Upgrading to JavaScript SDK 2.0.0
To upgrade to the SoundCloud JavaScript SDK version 2.0.0, replace all references to:
connect.soundcloud.com/sdk.js
with:
connect.soundcloud.com/sdk-2.0.0.js
The upgrade to version 2.0.0 is designed to be as seamless as possible. Everything should work as it did before, but be sure to test before deploying your application.
The SC.stream function now returns a completely rewritten Player object that responds to the following functions:
play()stop()pause()seek(ms)setVolume(volume)getVolume()getType()getCurrentPosition()getLoadedPosition()getDuration()getState()
JavaScript SDK version 1 is deprecated and has been permanently replaced by version 2.
To receive notices about SDK changes, follow @SoundCloudDev on Twitter.
For questions about this upgrade, email api-support@soundcloud.com.