2.2.4 fix flac playing issue
This commit is contained in:
parent
200eded629
commit
8417fccb7b
4 changed files with 12 additions and 6 deletions
|
@ -10,7 +10,7 @@ var passwordenc;
|
|||
var server;
|
||||
var smwidth;
|
||||
var volume = 50;
|
||||
var currentVersion = '2.2.4';
|
||||
var currentVersion = '2.2.5';
|
||||
|
||||
function getCookie(value) {
|
||||
if ($.cookie(value)) {
|
||||
|
|
|
@ -25,7 +25,7 @@ function playSong(el, songid, albumid, position, loadonly) {
|
|||
album = child.album;
|
||||
coverart = child.coverArt;
|
||||
rating = child.userRating;
|
||||
if (child.contentType !== undefined) { contenttype = child.contentType; } else { contenttype = 'audio/mp3'; }
|
||||
if (child.contentType == 'audio/ogg') { contenttype = child.contentType; } else { contenttype = 'audio/mp3'; }
|
||||
if (child.starred !== undefined) { starred = true; } else { starred = false; }
|
||||
}
|
||||
});
|
||||
|
@ -63,7 +63,10 @@ function playSong(el, songid, albumid, position, loadonly) {
|
|||
console.log(key + ': ' + value);
|
||||
});
|
||||
}
|
||||
soundManager.destroySound('audio');
|
||||
var sm = soundManager.getSoundById('audio');
|
||||
if (typeof sm !== undefined) {
|
||||
soundManager.destroySound('audio');
|
||||
}
|
||||
soundManager.createSound({
|
||||
id: 'audio',
|
||||
url: baseURL + '/stream.view?u=' + username + '&p=' + password + '&v=' + version + '&c=' + applicationName + '&id=' + songid + '&salt=' + salt,
|
||||
|
|
|
@ -631,10 +631,14 @@
|
|||
setCookie('AutoPilot', true);
|
||||
$('#action_AutoPilot').addClass('selected');
|
||||
msg = 'Autopilot On';
|
||||
if ($('#CurrentPlaylistContainer tbody').html() == '') {
|
||||
var sm = soundManager.getSoundById('audio');
|
||||
if ($('#CurrentPlaylistContainer tbody').html() == '' && !sm) {
|
||||
$('#CurrentPlaylistContainer tbody').empty();
|
||||
getRandomSongList('autoplay', '#CurrentPlaylistContainer tbody', '', '');
|
||||
$('#currentActions a.button').removeClass('disabled');
|
||||
} else {
|
||||
getRandomSongList('', '#CurrentPlaylistContainer tbody', '', '');
|
||||
$('#currentActions a.button').removeClass('disabled');
|
||||
}
|
||||
}
|
||||
$(this).attr("title", msg);
|
||||
|
@ -915,7 +919,6 @@
|
|||
var sm = soundManager.getSoundById('audio');
|
||||
if (sm) {
|
||||
saveTrackPosition();
|
||||
alert('save');
|
||||
}
|
||||
} else {
|
||||
setCookie('SaveTrackPosition', null);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 2,
|
||||
"name": "MiniSub",
|
||||
"description": "MiniSub - HTML5 Mini Player for Subsonic",
|
||||
"version": "2.2.4",
|
||||
"version": "2.2.5",
|
||||
"app": {
|
||||
"launch": {
|
||||
"local_path": "index.html"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue