RPi 3 + hardware buttons

Raspberry Pi related support

RPi 3 + hardware buttons

Postby jodi319 » 26 Mar 2018, 14:06

Hi

I have gathered; one can use Python scripting to link hardware buttons to pause, play and volume.
I have not gone into the details around the above.
Can a similar method be followed for fast-forward and rewind?
Can you point me to some examples or starting point for FFWD & RWD, please?
jodi319
 
Posts: 1
Joined: 26 Mar 2018, 14:02

Re: RPi 3 + hardware buttons

Postby hondagx35 » 26 Mar 2018, 16:27

Hi jodi319,

to use hardware buttons is not that hard.

As you mentioned best is to use Python and
- execute mpc commands
or
- use a python library to control mpd

Can you point me to some examples or starting point for FFWD & RWD, please?

MPD doesn't support FFWD and RWD, but you can seek through the song.
Code: Select all

seek {SONGPOS} {TIME}

    Seeks to the position TIME (in seconds; fractions allowed) of entry SONGPOS in the playlist.

seekid {SONGID} {TIME}

    Seeks to the position TIME (in seconds; fractions allowed) of song SONGID.

seekcur {TIME}

    Seeks to the position TIME (in seconds; fractions allowed) within the current song. If prefixed by '+' or '-', then the time is relative to the current playing position.


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 19 guests