Page 1 of 1

MUSIC Player Track Info

Posted: 04 Mar 2016 22:15
by ammar.galala
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.

Re: MUSIC Player Track Info

Posted: 05 Mar 2016 19:17
by Martin
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

Re: MUSIC Player Track Info

Posted: 06 Mar 2016 23:14
by ammar.galala
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 :D
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.