Music player

Post your questions and help other users.

Moderator: Martin

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Music player

Post by Ankit Bindal » 21 Sep 2016 12:20

Hi,
I was trying to make an music player.
How to start next song after completion of previous one??
http://automagic4android.com/flow.php?i ... d38d7e2d24

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Music player

Post by Martin » 22 Sep 2016 19:23

Hi,

You could either try to detect the end of the song using a change in the notification with trigger Notification on Statusbar Displayed (in case the music player shows a notification at all). Alternatively you could try to use trigger Media Session Chnaged. Variable playback_state will probably change when the song ends. This all highly depends on the music player in use.
Regards,
Martin

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Music player

Post by Ankit Bindal » 18 Oct 2016 16:09

Hello Is there any other way to play an mp3 file other than using Stat Activity Trigger.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Music player

Post by Martin » 18 Oct 2016 18:49

Hi,

Action Sound with Sound Type set to File should work to play the sound.

Regards,
Martin

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Music player

Post by Ankit Bindal » 20 Oct 2016 01:52

Hello,
How to play or pause the sound when using the action sound?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Music player

Post by Martin » 20 Oct 2016 17:06

Hi,

There's no way to pause the music, you can just stop it. It's on my todo list to support some more actions like playing sound from a specified position which would allow to built a pause/play/fast forward/backward feature. Honestly I would not try to build a full fledged music player in Automagic since this will get very complicated.
Maybe there exists an audio player that can be controlled using intents or using the plugin feature but I'm not aware about any. Does anyone else know about such a music player?

Regards,
Martin

PaulyQ
Posts: 29
Joined: 18 Oct 2013 20:36

Re: Music player

Post by PaulyQ » 20 Oct 2016 18:06

This can be easily done with poweramp using action start activity. I have attached a short example of moving forward one album
http://automagic4android.com/flow.php?i ... 32862e54a6

Here is a link to full list of APIs:
https://github.com/maxmpz/powerampapi/b ... mpAPI.java

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Music player

Post by Ankit Bindal » 21 Oct 2016 01:56

Thanks everyone

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Music player

Post by Ankit Bindal » 22 Oct 2016 05:30

Hello
An last help needed

Is it possible to make an stopwatch of {media_duration} and able to play and pause the stopwatch and trigger upon ending or pausing or playing.

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Music player

Post by Ankit Bindal » 22 Oct 2016 05:52

I have tried to make an stopwatch but how to pause this stopwatch?

Post Reply