Index: jive/share/applets/SlimBrowser/SlimBrowserApplet.lua =================================================================== --- jive/share/applets/SlimBrowser/SlimBrowserApplet.lua (revision 353) +++ jive/share/applets/SlimBrowser/SlimBrowserApplet.lua (working copy) @@ -660,11 +660,21 @@ return EVENT_CONSUME end, + ["rew-hold"] = function() + _player:scan_rew() + return EVENT_CONSUME + end, + ["fwd"] = function() _player:fwd() return EVENT_CONSUME end, + ["fwd-hold"] = function() + _player:scan_fwd() + return EVENT_CONSUME + end, + -- default commands in Now Playing ["play-status"] = function(_1, _2, _3, dbIndex) Index: jive/share/jive/slim/Player.lua =================================================================== --- jive/share/jive/slim/Player.lua (revision 353) +++ jive/share/jive/slim/Player.lua (working copy) @@ -557,6 +557,23 @@ end +-- scan_rew +-- what to do for the rew button when held +-- use button so that the reverse scan mode is triggered. +function scan_rew(self) + log:debug("Player:scan_rew()") + self:button('scan_rew') +end + +-- scan_fwd +-- what to do for the fwd button when held +-- use button so that the forward scan mode is triggered. +function scan_fwd(self) + log:debug("Player:scan_fwd()") + self:button('scan_fwd') +end + + -- rew -- what to do for the rew button -- use button so that the logic of SS (skip to start of current or previous song) is used @@ -565,7 +582,6 @@ self:button('jump_rew') end - -- fwd -- what to do for the fwd button -- use button so that the logic of SS (skip to start of current or previous song) is used @@ -577,8 +593,6 @@ - - --[[ local function _t() return Framework:getTicks() / 1000