How can I add the CSS-Class "playSound", during the track plays?
jQuery(document).ready(function($) { var widget = SC.Widget(document.getElementById('soundcloud_widget')); /*widget.bind(SC.Widget.Events.READY, function() { //console.log('Ready...'); jQuery(".checkSound").removeClass('stopSound').addClass('playSound'); });*/ jQuery('.playSound').click(function() { widget.toggle(); jQuery(".playSound").addClass('stopSound'); }); jQuery('.stopSound').live(function() //jQuery(".stopSound").live("click", function() //jQuery('.stopSound').click(function() { jQuery(".stopSound").addClass('playSound').removeClass('stopSound'); }); });