Skip Audio Music Song Tracks With Volume Buttons, No Root!

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
geekeedee
Posts: 32
Joined: 24 Sep 2016 00:33

Skip Audio Music Song Tracks With Volume Buttons, No Root!

Post by geekeedee » 24 Oct 2016 17:10

Press the phone's VOLUME BUTTONS to SKIP audio/song tracks. The flow works with a music player on a wired headset.

* To skip to NEXT track: press the UP button ONE time.
* To skip to PREVIOUS track: press the DOWN button ONE time.
* To RAISE the volume by one level: press the UP button TWO quick times.
* To LOWER the volume by one level: press the DOWN button TWO quick times.
* TWO clicks + a LONG press on a volume button change the volume to whatever HIGHER/LOWER levels.

Skipping a track does NOT increase or decrease the volume by one level because the flow automatically adjusts the volume BACK to what it was BEFORE. The volume truly changes only when TWO clicks or a combination of two clicks and a long press are made.

Detection of a volume button press is achieved by detecting the volume change in system settings, so this solution is almost universal, supports almost all music players, and does not require rooting or special permissions.

But there is one known issue:
If there is another flow that automatically changes the volume, it may trigger the skipping! So, turn off my other flow, "AutoVolumeHeadsetSound" ( http://automagic4android.com/forum/view ... f=3&t=6208 ), before using this one. Either use this flow or the other, but not both at the same time.

Customization and configutation notes:
* The flow is set to my favorite music player, "Phonograph Gramophone". Change the music player to yours in Service Running and Control Audio Player.
* On the menu of the flow (3 vertical dots), tap on "Options", set flow execution policy to "Skip execution when an instance is already executing", set automatic emergency stop to "specific", and set max executed actions per minute to about "180".
* If you change the flow to add a condition or action that slows down the execution, increase the timed duration of the "Execution Count" to 3s or more.


http://automagic4android.com/flow.php?i ... 25804f40ef

Screenshot_SkipTrack.png
Screenshot_SkipTrack.png (199.71 KiB) Viewed 21054 times
Last edited by geekeedee on 04 Dec 2016 19:39, edited 3 times in total.

whenevere
Posts: 8
Joined: 22 Nov 2016 22:05

Re: Skip Audio Music Song Tracks With Volume Buttons, No Roo

Post by whenevere » 04 Dec 2016 19:36

Awesome flow and out-of-the-box idea! It works for my Poweramp music player.

For those who use Poweramp, here is the specific customization:

1. In the "Service Running" action, tap on the Service Class menu (3 dots). Pick the service class "com.maxmpz.audioplayer.player.PlayerService"

2. In the "Control Audio Player: Media Button Next" action, tap on the "Package Name" (3 dots), and pick "com.maxmpz.audioplayer" (it's the only one on the menu).

3. In the "Control Audio Player: Media Button Previous" action, tap on the "Package Name" (3 dots), and pick "com.maxmpz.audioplayer" (it's the only one on the menu).

4. Delete one of the "Control Audio Player: Media Button Previous" actions. In Poweramp, "previous" does not go back to beginning of the current track, but actually to the previous track. So, one "previous" action is needed, not two.

niftea
Posts: 9
Joined: 27 Oct 2016 18:31

Re: Skip Audio Music Song Tracks With Volume Buttons, No Roo

Post by niftea » 11 Dec 2016 19:30

Also works nicely with the Rocket music player.
whenevere wrote:1. In the "Service Running" action, tap on the Service Class menu (3 dots). Pick the service class "com.maxmpz.audioplayer.player.PlayerService"
For Rocket: "com.jrtstudio.AnotherMusicPlayer.Audio.RPMusicService2"
whenevere wrote:2. In the "Control Audio Player: Media Button Next" action, tap on the "Package Name" (3 dots), and pick "com.maxmpz.audioplayer" (it's the only one on the menu).
For Rocket: "com.jrtstudio.AnotherMusicPlayer"
whenevere wrote:3. In the "Control Audio Player: Media Button Previous" action, tap on the "Package Name" (3 dots), and pick "com.maxmpz.audioplayer" (it's the only one on the menu).
For Rocket: "com.jrtstudio.AnotherMusicPlayer"
whenevere wrote:4. Delete one of the "Control Audio Player: Media Button Previous" actions. In Poweramp, "previous" does not go back to beginning of the current track, but actually to the previous track. So, one "previous" action is needed, not two.
For Rocket: Same thing, delete one of the "Control Audio Player: Media Button Previous".

Post Reply