Page 1 of 2
Music player
Posted: 21 Sep 2016 12:20
by Ankit Bindal
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
Re: Music player
Posted: 22 Sep 2016 19:23
by Martin
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
Re: Music player
Posted: 18 Oct 2016 16:09
by Ankit Bindal
Hello Is there any other way to play an mp3 file other than using Stat Activity Trigger.
Re: Music player
Posted: 18 Oct 2016 18:49
by Martin
Hi,
Action Sound with Sound Type set to File should work to play the sound.
Regards,
Martin
Re: Music player
Posted: 20 Oct 2016 01:52
by Ankit Bindal
Hello,
How to play or pause the sound when using the action sound?
Re: Music player
Posted: 20 Oct 2016 17:06
by Martin
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
Re: Music player
Posted: 20 Oct 2016 18:06
by PaulyQ
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
Re: Music player
Posted: 21 Oct 2016 01:56
by Ankit Bindal
Thanks everyone
Re: Music player
Posted: 22 Oct 2016 05:30
by Ankit Bindal
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.
Re: Music player
Posted: 22 Oct 2016 05:52
by Ankit Bindal
I have tried to make an stopwatch but how to pause this stopwatch?