Control audio player
Moderator: Martin
Control audio player
Hello,
Is it possible to control the playback of media player JetAudio by a control system Android?
I still have not found a solution.
Is it possible to control the playback of media player JetAudio by a control system Android?
I still have not found a solution.
Re: Control audio player
There seems to be no official API to control jetaudio but you can try to use an action Send Broadcast and fill in one of the following actions:
The music app has to be running in the background to send the commands otherwise nothing happens.
- com.jetappfactory.jetaudio.musicservicecommand.next
- com.jetappfactory.jetaudio.musicservicecommand.previous
- com.jetappfactory.jetaudio.musicservicecommand.togglepause
- com.jetappfactory.jetaudio.musicservicecommand.pause
- com.jetappfactory.jetaudio.musicservicecommand.repeat
- com.jetappfactory.jetaudio.musicservicecommand.shuffle
The music app has to be running in the background to send the commands otherwise nothing happens.
Re: Control audio player
Hello,
I tried everything, even putting "com.jetappfactory.jetaudiopro ..." because I have the purchased version but it does not work.
I asked the order to developer by email, if I have an answer that works I'll keep you informed!
I tried everything, even putting "com.jetappfactory.jetaudiopro ..." because I have the purchased version but it does not work.
I asked the order to developer by email, if I have an answer that works I'll keep you informed!
Re: Control audio player
Sorry to hi-jack topic but it also about audio control. I cannot launch default player for CM9 (Apollo player). My flow is so simple. Trigger: Wired Headset Plugged with call the action "Control Audio Player: Play". I try to execute to be test, but noting happened.
Please help. Thanks.
Please help. Thanks.
Re: Control audio player
Apollo is not supported by Control Audio Player but you can try to do the following:
- Ensure the audio player is running/active in the background (use action Launch App to start Apollo)
- add an action Send Broadcast with one of the following actions:
- com.andrew.apollo.musicservicecommand.next
- com.andrew.apollo.musicservicecommand.previous
- com.andrew.apollo.musicservicecommand.togglepause
- com.andrew.apollo.musicservicecommand.pause
- com.andrew.apollo.musicservicecommand.cyclerepeat
- com.andrew.apollo.musicservicecommand.toggleshuffle
Re: Control audio player
none of them worked for playerpro, so i found another way:
if you have still problems with the mentioned players, try this:
(my flow triggers with wired headset plugged? checks if screen is on, displays input dialog, asks for 2 app for music playback, if playerpro is selected=)
launch app:
package name: com.tbig.playerpro
class name: com.tbig.playerpro.MediaPlaybackActivity
(4 buttons on screen, now playing, but no playback, paused)
this is the solution: just after that:
execute command:
am broadcast -a com.tbig.playerpro.musicservicecommand.togglepause
with this above, music starts to play. send broadcast method didn't work for me but this works!
if you have still problems with the mentioned players, try this:
(my flow triggers with wired headset plugged? checks if screen is on, displays input dialog, asks for 2 app for music playback, if playerpro is selected=)
launch app:
package name: com.tbig.playerpro
class name: com.tbig.playerpro.MediaPlaybackActivity
(4 buttons on screen, now playing, but no playback, paused)
this is the solution: just after that:
execute command:
am broadcast -a com.tbig.playerpro.musicservicecommand.togglepause
with this above, music starts to play. send broadcast method didn't work for me but this works!
-
- Posts: 1
- Joined: 16 May 2015 13:55
Re: Control audio player
Hello syndromtr,
Maybe I'm a n00b, but I can not use the command you suggested in Tasker. Could you give me a guide?!
(I'm not rooted. Should I be?)
thanks,
Norbert
Maybe I'm a n00b, but I can not use the command you suggested in Tasker. Could you give me a guide?!
(I'm not rooted. Should I be?)
thanks,
Norbert
What about Deezer ?
Hi there,
i desperately tried different approaches to get deezer playing after starting it. Whether simply use the method play as media button nor sending broadcast via the same activity from within the same "activity box".
So i ask myself if it is possible to succeed by using a similar command to the quote below:
THX in advance
Rhonin
i desperately tried different approaches to get deezer playing after starting it. Whether simply use the method play as media button nor sending broadcast via the same activity from within the same "activity box".
So i ask myself if it is possible to succeed by using a similar command to the quote below:
How could such a command look like for deezer ???execute command:
am broadcast -a com.tbig.playerpro.musicservicecommand.togglepause
THX in advance
Rhonin
Automagic on rooted Xperia Z3c running on Android 5.1.1
Re: What about Deezer ?
am broadcast -a com.tbig.playerpro.musicservicecommand.togglepause
Change the bolded package name to match your player.
Change the bolded package name to match your player.
Re: Control audio player
Hi Murtuma,
THX for your quick answer, but tests with different variations didn't lead me to my goal I think, that there is a special part within the app that must be adressed via broadcast. s.th. like
deezer.android.app/player or sth. like this
Anyone of the knowing people can give me a hint ?
THX in advance
Rhonin
THX for your quick answer, but tests with different variations didn't lead me to my goal I think, that there is a special part within the app that must be adressed via broadcast. s.th. like
deezer.android.app/player or sth. like this
Anyone of the knowing people can give me a hint ?
THX in advance
Rhonin
Automagic on rooted Xperia Z3c running on Android 5.1.1