Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: rewind on pause (Read 1669 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

rewind on pause

Hi,

I'm looking for a feature that will rewind the track being played by e.g. 5 seconds upon pausing, similar to the Rockbox feature: Rockbox Playback Settings.

Scouring the internet has so far produces no results.

Anything like this exist?

Thanks!

rewind on pause

Reply #1
you could hide a WSH panel mod panel in your layout and put this code in it.

Code: [Select]
var limit = 5;

function on_playback_pause(state) {
    if (state) fb.PlaybackTime -= limit;
}

rewind on pause

Reply #2
Thank you, the plugin and code work perfectly!

But, is there a better to way to hide the panel than simply dragging the border? It's still slightly visible... not a big deal though.

rewind on pause

Reply #3
add this code and it will draw the background the same colour as the splitter.

Code: [Select]
var ww = 0;
var wh = 0;

function on_size() {
    ww = window.Width;
    wh = window.Height;
}

function on_paint(gr) {
    gr.FillSolidRect(0, 0, ww, wh, utils.GetSysColor(15));
}


if you were using columns UI, you can hide panels on the layout page of the preferences.

rewind on pause

Reply #4
Thank you again, that extra code did help its appearance.