[LeD] Next track by Volume button

by Denis Lebedev

Version 1 (December 19, 2017)

Download (387 downloads)

The Flow controls a player by Volume buttons.
• Double pressing of Volume Up switch the player to next track.
• Double pressing of Volume Down returns the player to previous track.
• Quick pressing of Volume Up and Volume down set the player to play/pause state.

Some settings are required from your side. You should count how many presses are required to change the Volume from 0 to 100%. After that modify the variable valuePerClick in first block. In my case it looks like 100/15. Here the number 15 shows how many pressings of Volume up are needed to go the volume from 0 to 100%.

Limitations: because the flow uses value of volume to catch double pressing it doesn't work when your volume greater than 2 steps before 100% volume and less than 2 steps before 0% volume

3.8 average rating from 4 reviews

5 stars
3
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
1

Rate and review within the app in the Community section.