3.4 consolidated subsonic actions
This commit is contained in:
parent
b0c3d9e9ab
commit
fb989567cc
18 changed files with 1303 additions and 1077 deletions
|
@ -18,6 +18,8 @@
|
|||
var next = getNextSong(true);
|
||||
if (next) {
|
||||
$rootScope.playSong(false, next);
|
||||
} else {
|
||||
$rootScope.restartSong();
|
||||
}
|
||||
};
|
||||
getNextSong = function (previous) {
|
||||
|
@ -133,6 +135,10 @@
|
|||
if (globals.settings.Debug) { console.log('HTML5::loadStorage not supported on your browser, ' + html.length + ' characters'); }
|
||||
}
|
||||
};
|
||||
$rootScope.restartSong = function (loadonly, data) {
|
||||
var audio = $(player1).data("jPlayer");
|
||||
audio.play(0);
|
||||
};
|
||||
$rootScope.playSong = function (loadonly, data) {
|
||||
if (globals.settings.Debug) { console.log('Play: ' + JSON.stringify(data, null, 2)); }
|
||||
angular.forEach($rootScope.queue, function(item, key) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue