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