Created
October 1, 2013 06:22
-
-
Save danielribeiro/6774538 to your computer and use it in GitHub Desktop.
soundcloud us
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="underscore-min.js"></script> | |
<script src="http://connect.soundcloud.com/sdk.js"></script> | |
</head> | |
<body> | |
<h1>My Amazing Underscore project</h1> | |
<div id="content"> | |
</div> | |
<script> | |
console.log("initialized"); | |
SC.initialize({ | |
client_id: 'd4c9ff1b3aaa3e397abbf4aa470e736e' | |
}); | |
// SC.get('/users/reginaspektor/tracks', function(tracks) { | |
// console.log(tracks) | |
// }); | |
SC.stream("/tracks/63061619", function(sound){ | |
console.log("playing sound"); | |
sound.play(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
based on https://github.com/Pavling/wdi-w6d3-underscore/blob/master/index.html