@ -2,6 +2,7 @@ var currentArt = null;
var current_que = 'main';
var current_playlist_id = -1;
var previous_playlist_id = -1;
var seek_sec = 0;
function updateArt(url) {
$('#albumArt').fadeOut(500, function () {
@ -80,6 +81,8 @@ function updateStatus() {
previous_playlist_id = current_playlist_id;
}
seek_sec = parseInt($('seek_sec', data).text());
if (pollStatus) {
setTimeout(updateStatus, 1000);
@ -63,11 +63,11 @@
return false;
});
$('#buttonRewd').click(function(){
sendCommand({'command': 'seek', 'val': '-30S'});
sendCommand({'command': 'seek', 'val': '-' + seek_sec.toString() + 'S'});
$('#buttonFwrd').click(function(){
sendCommand({'command': 'seek', 'val': '+30S'});
sendCommand({'command': 'seek', 'val': '+' + seek_sec.toString() + 'S'});
})
@ -439,6 +439,7 @@ getstatus = function (includecategories)
s.apiversion=4
s.version=vlc.misc.version()
s.volume=vlc.volume.get()
s.seek_sec = vlc.config.get("short-jump-size")
s.time = vlc.player.get_time() / 1000000
s.position = vlc.player.get_position()