diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index 75b53c8a..b8ed06f3 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -1010,7 +1010,6 @@ Callbacks = { changeMedia: function(data) { if (PLAYER) { - console.log('getting volume for', PLAYER.type); PLAYER.getVolume(function (v) { VOLUME = v; setOpt("volume", VOLUME); diff --git a/www/assets/js/player.js b/www/assets/js/player.js index 60838da7..4458fa0a 100644 --- a/www/assets/js/player.js +++ b/www/assets/js/player.js @@ -468,6 +468,11 @@ var SoundcloudPlayer = function (data) { self.videoLength = data.seconds; if(self.player && self.player.load) { self.player.load(data.id, { auto_play: true }); + var soundcloudNeedsToFuckingFixTheirPlayer = function () { + self.setVolume(VOLUME); + self.player.unbind(SC.Widget.Events.PLAY_PROGRESS); + }; + self.player.bind(SC.Widget.Events.PLAY_PROGRESS, soundcloudNeedsToFuckingFixTheirPlayer); } };