[WIDGET][4+] Generic Music Controls

Search This thread

batesapps

Senior Member
Apr 11, 2013
125
90
Media Utilities

View attachment 1874485

View attachment 1874486

View attachment 1874487

View attachment 1874488

View attachment 1874489

*** Public Open Beta ***

If you ever wanted to use a single widget or have a single place to control all of your media applications, then you are in luck. Media Utilities is designed to give you unified tools for all of your media applications.

Do you like Pandora or Spotify, but wish each had notification controls? Media Utilities provides unified notification controls that let you control the most recently started media application as well as easily jump to it.

Hate having to search for your media application just because you paused it? All of the controls keep track of the last running media application to let you easily resume or launch it.

There are several widgets available on the Play store that let you play/pause any media application. But few show you all of the meta data. Media Utilities gets all the meta data including cover art from your favorite media application (Pandora, Spotify, Songza, etc.) and displays it in a clean, unified widget.

Media Utilities provides several different widgets to satisfy your particular needs, from a classic, single row design to a larger widget that displays cover art with hidden controls for the ultimate in clean design.

Media Utilities is now in open beta. Feature requests and feedback are encouraged and would be greatly appreciated.

Widgets

View attachment 1912586
3x3
Large cover art controls on bottom.

View attachment 1912587
2x2
Large cover art, controls hidden in the cover art.

View attachment 1912602
2x2
Large cover art, controls hidden in the cover art. Clean version no title no current app.

View attachment 1912607
3x1
Highly configurable standard music controls

View attachment 1912614
1x1
Resizable coverart selecting the cover art launches current application.
Designed to be used with other widgets to design your own music screen.

View attachment 1912617
1x1
Designed to look like a desktop icon. Shows the current application. Selecting launches the current applications.
Designed to be used with other widgets to design your own music screen.

View attachment 1912623
2x1
Standard music controls. Highly configurable and resizable both vertical and horizontally.
Designed to be used with other widgets to design your own music screen.

View attachment 1912627
2x1
Just text, Title, track, album.
Hidden controls.
Designed to be used with other widgets to design your own music screen.

View attachment 1912628
4x2
Highly configurable standard music controls
Note: the lower one will be available in the next version

View attachment 1912636
3x1
Cover Art on the left large text on the right, hidden music controls under the text.
Highly configurable.
Note: available in the next version

View attachment 1912641
Example widget config page.
Current Configuration
- Optional Gradient
- Background color
- Background transparency
- Border color
- Border width
- Optional show current running music application
- Optional show your music application *NEW*
- Text color
 
Last edited:

batesapps

Senior Member
Apr 11, 2013
125
90

mhdsanto85

Senior Member
Jul 27, 2008
684
177
São José dos Campos SP
Not familier with "walkman app" is that built into the sony phones?
Will be interested to know if it works. I expect the controls to work, not so sure about the cover art though.

Yeah, it is.. It works great on my cm10.1 rom, but the widget.... It works only with the Xperia launcher and I don't like it.... So it would be perfect if I could use a generic music widget...

Sent from my SGH-I777 using Tapatalk 2
 

arman68

Senior Member
Sep 22, 2006
286
230
Great idea!

I tried it on my x86 motorola razr i, and it works fine.

MusiXMatch works well (album art, metadata, controls)

TuneIn Radio works partially: album art and metadata are ok, but when I pressed the controls while tunein was playing music, it controlled the previous player, musixmatch, instead.

I was testing the widgets with Launcher8 and there is a bit of the problem with some of the widgets getting truncated. Have a look at the screenshot below:
Screenshot_2013-04-11-14-23-48.jpg
The widgets are from top to bottom: Big layout 1 (resized to 2x3), Big layout 2 (resized to 2x2), Layout 1 (resized to 4x1), Layout 2 (resized to 3x1).

Also, what impact does the scrolling text have on battery consumption?

One suggestion: it would be very useful if there was a way to go from the widget to the media player selection menu. Maybe another button; or if music is playing the button could jump straight to the player, and if not go to the player list (unless there is only 1 player available).

Another suggestion: transparent background option.
 
Last edited:

mhdsanto85

Senior Member
Jul 27, 2008
684
177
São José dos Campos SP
Running flawlessly here! All that I needed... I'm using aosp launcher + walkman app.

Suggestions:
-a previous track button in a 4x1 or 4x2 widget.
-Artist name

Thanks

Sent from my SGH-I777 using Tapatalk 2
 
Last edited:

batesapps

Senior Member
Apr 11, 2013
125
90
Thanks for all of the comments Ill go through them in detail tonight (On the east coast).

Appreciate the widget feedback, The ones I created so far are mostly designed to get feedback to see what people with better design sense then me think.
The transparency comments looks like a common thread so Ill look at adding that soon.
 

batesapps

Senior Member
Apr 11, 2013
125
90
It nice to see what everyone is using for media players, havent tried a lot these before.

For musixMatch make sure you configure it to use "Native ICS lockscreen" instead of its own custom, never seen that before. That should get you cover art etc.

Looking into why it played the wrong media application, pretty sure its because TuneIn aggressively unregisters itself and musixMatch never unregisters. I have a few ideas Ill try.

Never seen widgets with borders before, I use the Nexus 7 and a GSIII. Ill see about adding a border to mitigate that.

The scrolling shouldn't really affect the battery, it should only scroll if the widget is visible, you should notice that its always starting to scroll when you unlock or go back to the home screen. This may be different for different launchers so if thats not the case get back to me.

Was thinking the same thing about launching different media applications instead of just the last one. Thought that might just be me though so good to see other people thought the same thing. Really like your suggestion with different behavior for paused vs playing, not really necessary for most widgets since selecting the cover art does the same thing.

Great idea!

I tried it on my x86 motorola razr i, and it works fine.

MusiXMatch works well (album art, metadata, controls)

TuneIn Radio works partially: album art and metadata are ok, but when I pressed the controls while tunein was playing music, it controlled the previous player, musixmatch, instead.

Love the transparent idea, Ill see about creating a few that are fully transparent as a short term fix until I get the configurability working. Any specific Ideas you have on widgets are helpful. Iam really really really (did I say really) terrible at visual design.


I was testing the widgets with Launcher8 and there is a bit of the problem with some of the widgets getting truncated. Have a look at the screenshot below:
View attachment 1875393
The widgets are from top to bottom: Big layout 1 (resized to 2x3), Big layout 2 (resized to 2x2), Layout 1 (resized to 4x1), Layout 2 (resized to 3x1).

Also, what impact does the scrolling text have on battery consumption?

One suggestion: it would be very useful if there was a way to go from the widget to the media player selection menu. Maybe another button; or if music is playing the button could jump straight to the player, and if not go to the player list (unless there is only 1 player available).

Another suggestion: transparent background option.
 

arman68

Senior Member
Sep 22, 2006
286
230
Yours are not the only widgets affected by the extra borders from launcher 8. It really annoys me, and I wish the launcher had a way to configure the borders or eliminate them completely for widgets. I stick with that launcher though because apart from that small annoyance, it is great, looks fantastic and i love it.

Some widgets are able to cope very well with the borders, so I know it should be possible to handle. One that does it in a very unique and clever way is AIX weather: have a look at its calibration function.
 

batesapps

Senior Member
Apr 11, 2013
125
90
Thanks Ill take a look at that. Should not be that difficult once I add configuration for the widgets.

Things that need configuration so far:
- Transparency
- Border
- Background color
- Other ????

Does "launcher 8" support resizable widgets? Ill grab it give it a try myself as well.


Yours are not the only widgets affected by the extra borders from launcher 8. It really annoys me, and I wish the launcher had a way to configure the borders or eliminate them completely for widgets. I stick with that launcher though because apart from that small annoyance, it is great, looks fantastic and i love it.

Some widgets are able to cope very well with the borders, so I know it should be possible to handle. One that does it in a very unique and clever way is AIX weather: have a look at its calibration function.
 

batesapps

Senior Member
Apr 11, 2013
125
90
launcher 8 is sexy I can see why you like it. Ill add a few quick widgets and post an update (mostly for me).

View attachment 1876747

Thanks Ill take a look at that. Should not be that difficult once I add configuration for the widgets.

Things that need configuration so far:
- Transparency
- Border
- Background color
- Other ????

Does "launcher 8" support resizable widgets? Ill grab it give it a try myself as well.
 

arman68

Senior Member
Sep 22, 2006
286
230
Ill add a few quick widgets and post an update (mostly for me).

I have tried the new update. You added a lot of widgets! I guess this is just for testing, to see what works and what doesn't. So after testing them, here are my comments; first screenshot of the widgets I think are worthwhile:
Screenshot_2013-04-12-06-12-11.jpg

Top left: album art only. Looks good, but no useful functionality. Not for me, but I can see why some people would want it.

Top right: album art with controls. This is my favorite. I love the design and hidden functionality. I think it could be improved though: when nothing is playing, instead of darkening the album art, how about displaying only the album art in standard colours (no title, no shortcut to mediaplayer), and having all the touch events launch the mediaplayer selection (or mediaplayer if only one)?

Second row: transparent controls only. Resizes well down to 2x1. Simple and functional, there is a use for it.

Third and fourth rows: transparent metadata with controls and shortcut, but no album art. Resizes well to 3 wide, but not 4 wide. 1 high looks kind of squished. 2 high looks too spaced. Shortcut icon looks a bit out of place (stands out too much, and clashes with the clean design).

Fifth row: album art, metadata, controls and shortcut. Ideal width is 4, 3 looks squashed. Same comment as the previous widget for the height. I wish it was transparent.

I think what you need is combine the last 2 widgets (3rd,4th + 5th row) into a single 4x1 widget, with the following features:
  • Album art on the left, resize to fit in a square with 100% of widget height. Touch event should launch the mediaplayer or selection menu.
  • Only show song title, to give more space to the controls.
  • Previous, Play/Pause, Next buttons
  • No mediaplayer shortcut, since this is already handled by the album art. I was hesitating whether an indication of which player is active would be useful, but actually the album art already kind of perform this function since it shows what would play.
  • Transparency option.

You could also expand the above into a 4x2 widget, with bigger album art (of course) and more metadata shown (artist and album).

There is one more widget which is worth keeping as well: it is the other big layout, with the controls at the bottom.

launcher 8 is sexy I can see why you like it.

Yes. I think Microsoft designers did an awesome job on that tile interface for phones. It looks good, provides good user customisation options, and is very functional. Here is another picture showing how well one of your widgets fits in it:
Screenshot_2013-04-12-06-27-33.jpg
 

arman68

Senior Member
Sep 22, 2006
286
230
With launcher 8 is there a way to show number of unread emails?

OT but here is the answer anyway:

Launcher 8 has built-in mechanism for call and sms counter, but not gmail. There is a way to show it for gmail though, and since I prefer the way it looks, I also use the same method for calls and sms.

You need to setup a SMS Unread Count widget, either with a custom image (if you do not want the default one), or a blank image, and then setting the widget image from the launcher 8 properties. See the screenshot below for details and example:
sms_unread_count.jpg
 

drakenabarion

Senior Member
Dec 13, 2010
1,164
199
Kildare
OnePlus Nord 2T
Nothing Phone 2
Trying this out and its very nice so far. I cab resize the 2x2 app to 1x2 which would work best for me anyway. Like a few already mentioned, transparency would be nice.

I would also be interested in disabling cover art on some instances of the widget and enabling it on others (kinda like displaying the art in one part of the screen while having more invisible controls on a different part of the screen).

As for bugs, when I start up the music from the widget, it defaults to Google music and re adds it to the media players lists and it does this even when I remove Google music from the media player lists (I want it to default to Mort player). If I launch Mort player from the app drawer, the widget controls the player as expected.

I noticed no other but at this point.

Edit: I just noticed there is a widget that has just controls and one that has just album art. That is mostly what I like. :) But perhaps on the widget without the art, still have the track title scrolling. It scrolls nicely on the album art+controls widget.

Sent from my Nexus⁴ running CM10.1 (JB 4.2.2) using XDA premium app
 
Last edited:

drakenabarion

Senior Member
Dec 13, 2010
1,164
199
Kildare
OnePlus Nord 2T
Nothing Phone 2
Sorry for double post but apparently I can't add images to post edits.

Here is a screenshot which the 2x2 cover art+controls widget resized to 1x2. It works nice with pause/play on the left side of the image and next track on the right, but no visual button. Its not I like it.

What I am suggesting is a widget like that with no cover art and transparent background but keeping the title scrolling and being controlled by pressing the relevant side of the widget without the buttons. I think it would be nice and functional. However even with the cover are as it is, it's very good. Nice to Control like this.

Sent from my Nexus⁴ running CM10.1 (JB 4.2.2) using XDA premium app
 

Attachments

  • uploadfromtaptalk1365788675195.jpg
    uploadfromtaptalk1365788675195.jpg
    32.9 KB · Views: 483

batesapps

Senior Member
Apr 11, 2013
125
90
Interesting idea.
So just just the title, album etc with hidden controls and no coverart?
Would probably remove the current media application as well in view, would clutter up the text?

Visible
+-------------------------------+
| Track
| Artist - Album
+--------------------------------+

Hidden
+-----------------------------------+
| Previous | Play | Next
| | |
+-----------------------------------+

Sorry for double post but apparently I can't add images to post edits.

Here is a screenshot which the 2x2 cover art+controls widget resized to 1x2. It works nice with pause/play on the left side of the image and next track on the right, but no visual button. Its not I like it.

What I am suggesting is a widget like that with no cover art and transparent background but keeping the title scrolling and being controlled by pressing the relevant side of the widget without the buttons. I think it would be nice and functional. However even with the cover are as it is, it's very good. Nice to Control like this.

Sent from my Nexus⁴ running CM10.1 (JB 4.2.2) using XDA premium app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    Media Utilities

    View attachment 1874485

    View attachment 1874486

    View attachment 1874487

    View attachment 1874488

    View attachment 1874489

    *** Public Open Beta ***

    If you ever wanted to use a single widget or have a single place to control all of your media applications, then you are in luck. Media Utilities is designed to give you unified tools for all of your media applications.

    Do you like Pandora or Spotify, but wish each had notification controls? Media Utilities provides unified notification controls that let you control the most recently started media application as well as easily jump to it.

    Hate having to search for your media application just because you paused it? All of the controls keep track of the last running media application to let you easily resume or launch it.

    There are several widgets available on the Play store that let you play/pause any media application. But few show you all of the meta data. Media Utilities gets all the meta data including cover art from your favorite media application (Pandora, Spotify, Songza, etc.) and displays it in a clean, unified widget.

    Media Utilities provides several different widgets to satisfy your particular needs, from a classic, single row design to a larger widget that displays cover art with hidden controls for the ultimate in clean design.

    Media Utilities is now in open beta. Feature requests and feedback are encouraged and would be greatly appreciated.

    Widgets

    View attachment 1912586
    3x3
    Large cover art controls on bottom.

    View attachment 1912587
    2x2
    Large cover art, controls hidden in the cover art.

    View attachment 1912602
    2x2
    Large cover art, controls hidden in the cover art. Clean version no title no current app.

    View attachment 1912607
    3x1
    Highly configurable standard music controls

    View attachment 1912614
    1x1
    Resizable coverart selecting the cover art launches current application.
    Designed to be used with other widgets to design your own music screen.

    View attachment 1912617
    1x1
    Designed to look like a desktop icon. Shows the current application. Selecting launches the current applications.
    Designed to be used with other widgets to design your own music screen.

    View attachment 1912623
    2x1
    Standard music controls. Highly configurable and resizable both vertical and horizontally.
    Designed to be used with other widgets to design your own music screen.

    View attachment 1912627
    2x1
    Just text, Title, track, album.
    Hidden controls.
    Designed to be used with other widgets to design your own music screen.

    View attachment 1912628
    4x2
    Highly configurable standard music controls
    Note: the lower one will be available in the next version

    View attachment 1912636
    3x1
    Cover Art on the left large text on the right, hidden music controls under the text.
    Highly configurable.
    Note: available in the next version

    View attachment 1912641
    Example widget config page.
    Current Configuration
    - Optional Gradient
    - Background color
    - Background transparency
    - Border color
    - Border width
    - Optional show current running music application
    - Optional show your music application *NEW*
    - Text color
    4
    Just posted v.104

    Lots of new toys to play with.
    Updates:
    - Native Support for Zooper, UCCW and minimalistic text. When enabled the following variables are made available without the need for Tasker. It acts like its coming from Tasker so any addtional tags for tasker are still required for example Zopper requires an additional T "#TMU_ISPLAYING# "
    MU_ALBUM - Album name
    MU_ARTIST - Artist name
    MU_TRACK - Track name
    MU_COVERART - URI to Bitmap containing current coverart
    MU_ISPLAYING - 1 if playing 0 if not
    MU_CURR_APP - Current media app "pretty" name
    MU_CURR_PACKAGE - Current media app package name
    - Rewrote direct mode from scratch. Should be far more reliable now. Its soo much better Ill probably make this the default in the next release.
    - Added new option to launch music application if Android killed it or it is not currently running. Will launch when user attempt to control a dead music application. Should help cases where the controls dont do anything.
    - Added Pebble watch support?? Based on the API this should basically fill out all media information for Pebble watches. Dont have a watch yet so this is just a best guess right now.
    4
    The official version with both shortcuts and tasker plugins is now available.

    Tasker Plugin:
    View attachment 1999322
    View attachment 1999323

    Short Cut:
    View attachment 1999329
    View attachment 1999330

    Firstly, thanks very much for putting this together. Having one widget to rule them all is such a cool feature!

    Now, a feature request. I use LMT launchers PIE control to provide access to things I want access to without having to jump out of whatever app I'm currently using. One of these things being media playback controls (play/pause, next and previous tracks) triggered from Tasker tasks. These buttons, however, have limited success as not all media apps support them. What would be really cool would be if Tasker could ask your app to control whatever media app it's currently controlling... safe in the knowledge that your app has the smarts to actually make it happen.

    Tasker supports plugins which are pretty straight forward to write and work in Locale as well. This would be the more user friendly way of enabling external control. Docs & sample here: http://www.twofortyfouram.com/developer.html

    Tasker also supports sending customisable intents to any app. Adding a BroadcastReceiver to receive such intents would be slightly less user friendly but also mean any app out there could send control requests to your app.

    It's no biggy really. But it would be very nice to have reliable playback controls or to be able to quickly bring whichever media app you're currently using to the foreground. Anyway, thanks for your time developing this. It's much appreciated!
    3
    I am using Media Utilities with Zooper and have a bit of a problem with the cover art.
    The images are often not the same size so they tend to be bigger/smaller than intended which makes it really hard to design a nice looking widget all the time.
    Would it be possible to add an option to provide the cover art images with a fixed size (with options for streching, croping and so on)?

    Can I ask you how you managed to get the coverart working? I always get the full path to the file written, never got it to display an actual image.

    Sent from my Xperia Z

    You both should check out the tutorial I linked to earlier. It should clear up any problems :)
    Here is a a very beginner friendly tutorial by Scott Weber on how to integrate Media Utilities and Zooper: http://www.webermatters.com/blog/creating-a-zooper-media-widget-with-media-utilities/
    Concerning fixed size cover art: that feature should be included in the next release of MU.
    3
    Just a quick update to show that Iam not dead ;)

    Ive been swamped this week, the updates for widget configuration are coming along really well, Ill post a new version next week. It was time to do some cleanup so this change is taking longer then I wanted.

    View attachment 1895548

    View attachment 1895549

    View attachment 1895550