hi guys..
I was hoping to make a widget that shows the TITLE of the current playing TRACK on the MUSIC Player App as well as the Duration of that track..
..
in the (General Broadcast) trigger.. There's an Example (PowerAMP Track) that returns information about the track.. but unfortunately it didn't work for my original MUSIC Player App.. is it just for ( PowerAMP App)??
is there any for my MUSIC Player??
..
(AM 1.25@ Android 4.3@ galaxy S4)
Best regards,
Ammar.
MUSIC Player Track Info
Moderator: Martin
Re: MUSIC Player Track Info
Hi,
The example for power amp is very specific to power amp. I think no other player broadcasts the information like this.
You could try to see if one of the actions mentioned in this post execute the broadcast trigger for your music player:
http://stackoverflow.com/a/11929681
If it does, you could try to extract the information as mentioned in the first post:
http://stackoverflow.com/q/10510292
The log of Automagic should also what kind of extras are available in the broadcasted intent.
Why are you using version 1.25? Version 1.30 should be available for most devices running Android 2.3+.
Regards,
Martin
The example for power amp is very specific to power amp. I think no other player broadcasts the information like this.
You could try to see if one of the actions mentioned in this post execute the broadcast trigger for your music player:
http://stackoverflow.com/a/11929681
If it does, you could try to extract the information as mentioned in the first post:
http://stackoverflow.com/q/10510292
The log of Automagic should also what kind of extras are available in the broadcasted intent.
Why are you using version 1.25? Version 1.30 should be available for most devices running Android 2.3+.
Regards,
Martin
-
- Posts: 8
- Joined: 29 Feb 2016 22:36
Re: MUSIC Player Track Info
Dear Martin,
Thanks a lot for your reply, it was very helpful, I used the Trigger: (General Broadcast > com.android.music.metachanged ) as you mentioned and it worked perfectly with my MUSIC Player
Then used the Action: (Execute Root Command >dumpsys media.player) that returns many informations, among them: the Currently Playing Track Title.. and some how managed to Extract that info by scripts..
I can't download the newest version right now.. I have a super SLOW net with limited Daily quota 5MBs ;(
again.. ThanX a lot for your efforts, I appreciate it.
..
best regards,
Ammar.
Thanks a lot for your reply, it was very helpful, I used the Trigger: (General Broadcast > com.android.music.metachanged ) as you mentioned and it worked perfectly with my MUSIC Player
Then used the Action: (Execute Root Command >dumpsys media.player) that returns many informations, among them: the Currently Playing Track Title.. and some how managed to Extract that info by scripts..
I can't download the newest version right now.. I have a super SLOW net with limited Daily quota 5MBs ;(
again.. ThanX a lot for your efforts, I appreciate it.
..
best regards,
Ammar.