1.9.2 Chrome HTML5 audio bug fix (hopefully)
This commit is contained in:
parent
1bdc481bab
commit
def3b3617f
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue