1.9.2 Chrome HTML5 audio bug fix (hopefully)

This commit is contained in:
Trevor Squillario 2012-04-02 12:07:59 -04:00
parent 1bdc481bab
commit def3b3617f

View file

@ -411,12 +411,13 @@ function playSong(el, songid, albumid) {
$('#playermiddle').css('visibility', 'visible'); $('#playermiddle').css('visibility', 'visible');
$('#songdetails').css('visibility', 'visible'); $('#songdetails').css('visibility', 'visible');
// SoundManager Initialize // SoundManager Initialize
var salt = Math.floor(Math.random()*100000);
if (audio) { if (audio) {
soundManager.destroySound('audio'); soundManager.destroySound('audio');
} }
audio = soundManager.createSound({ audio = soundManager.createSound({
id: 'audio', id: 'audio',
url: baseURL + '/stream.view?u=' + username + '&p=' + passwordenc + '&v=' + version + '&c=' + applicationName + '&f=jsonp&id=' + songid, url: baseURL + '/stream.view?u=' + username + '&p=' + passwordenc + '&v=' + version + '&c=' + applicationName + '&f=jsonp&id=' + songid + '&salt=' + salt,
stream: true, stream: true,
whileloading: function () { whileloading: function () {
if (debug) { if (debug) {