Blog - HTML5 Widget API - SoundCloud Developers <iframe id="sc-widget" src="http://w.soundcloud.com/player/?url=http://api.soundcloud.com/users/1539950/favorites" width="100%" height="465" scrolling="no" frameborder="no"></iframe> <script src="http://w.soundcloud.com/player/api.js" type="text/javascript"></script> <script type="text/javascript"> (function(){ var widgetIframe = document.getElementById('sc-widget'), widget = SC.Widget(widgetIframe); widget.bind(SC.Widget.Events.READY, function() { widget.bind(SC.Widget.Events.PLAY, function() { // get information about currently playing sound widget.getCurrentSound(function(currentSound) { console.log('sound ' + currentSound.get('') + 'began to play'); }); }); // get current level of volume widget.getVolume(function(volume) { console.log('current volume va in Tutorialwith apiiframejavascriptsoundcloudwidget