Skip to content

Instantly share code, notes, and snippets.

@paulosman
Created December 18, 2012 22:51
Show Gist options
  • Save paulosman/4332832 to your computer and use it in GitHub Desktop.
Save paulosman/4332832 to your computer and use it in GitHub Desktop.
JavaScript SDK streaming
<!doctype html>
<html>
<head>
<script src="http://connect.soundcloud.com/sdk.js"></script>
<script>
window.onload = function() {
SC.initialize({
client_id: 'YOUR_CLIENT_ID'
});
SC.stream('/tracks/293', function(sound) {
sound.play();
});
});
</script>
</head>
<body>
<h1>Hello, SoundCloud!</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment