Music player
Moderator: Martin
-
- Posts: 90
- Joined: 12 Feb 2016 03:23
Music player
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
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
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
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
-
- Posts: 90
- Joined: 12 Feb 2016 03:23
Re: Music player
Hello Is there any other way to play an mp3 file other than using Stat Activity Trigger.
Re: Music player
Hi,
Action Sound with Sound Type set to File should work to play the sound.
Regards,
Martin
Action Sound with Sound Type set to File should work to play the sound.
Regards,
Martin
-
- Posts: 90
- Joined: 12 Feb 2016 03:23
Re: Music player
Hello,
How to play or pause the sound when using the action sound?
How to play or pause the sound when using the action sound?
Re: Music player
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
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
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
http://automagic4android.com/flow.php?i ... 32862e54a6
Here is a link to full list of APIs:
https://github.com/maxmpz/powerampapi/b ... mpAPI.java
-
- Posts: 90
- Joined: 12 Feb 2016 03:23
Re: Music player
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.
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.
-
- Posts: 90
- Joined: 12 Feb 2016 03:23
Re: Music player
I have tried to make an stopwatch but how to pause this stopwatch?