Skip to content

Commit

Permalink
playdar.js soundmanager tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Jones <rj@metabrew.com>
  • Loading branch information
jwheare authored and RJ committed Mar 2, 2009
1 parent 9824ee6 commit ccb5130
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions www.playdar.org/static/playdar.js
Expand Up @@ -341,28 +341,24 @@ Playdar.prototype = {

soundmanager: null,
register_soundmanager: function (soundmanager) {
soundManager.url = this.web_host + '/static/soundmanager2_flash9.swf';
soundManager.flashVersion = 9;
soundmanager.url = this.web_host + '/static/soundmanager2_flash9.swf';
soundmanager.flashVersion = 9;
var playdar = this;
soundmanager.onload = function() {
playdar.soundmanager = soundmanager;
};
},

streams: {},
register_stream: function (sid) {
if (!this.soundmanager) {
return false;
}
this.streams[sid] = this.soundmanager.createSound({
id: sid,
url: this.get_stream_url(sid)
});
this.soundmanager.createSound(sid, this.get_stream_url(sid));
},
play_stream: function (sid) {
if (!this.soundmanager) {
return false;
}
this.streams[sid].togglePause(sid);
this.soundmanager.togglePause(sid);
}
};

0 comments on commit ccb5130

Please sign in to comment.