Skip to main content

3.0 WIP 19: On Queue Completion, Android Auto, Improved Voice Commands and Auto Pause/Play

The last two weeks were mostly spent refactoring / rewriting the remaining Music Service code that i had previously disabled.  That includes the MediaSession, Android Auto Support, Audio Focus handler, On Queue Completion, Voice Commands, and Auto Pause/Play.  The only thing remaining I believe is the auto volume adjust and the ability to handle multiple remote control presses.  At this point it looks like a realistic release date of the first alpha should be in May.  I am probably a week out from starting internal testing, which basically means i start deploying the app to all my test devices and actually use it as my main driver on my phone.  Up until now i have still been using 2.2.x.  I am not expecting that many bugs, but what I am expecting is a lot of things i just forgot to implement that are crucial to making GMMP usable.

3.0 working in Android Auto

Audio Focus

The new audio focus handling is mostly the same as 2.x.  Google did add some new capabilities for oreo which I did add.  When GMMP requests audio focus, sometimes something else has to keep focus for a bit while longer.  In this case the request returns that the focus request was denied temporarily, but will let gmmp know when it can take focus.  When this happens gmmp will wait for the go ahead and then start playback after the OS says it can take focus.  I am not sure how useful this is, but I figured i'd mention it.

On Queue Completion

I made some minor changes when re-implementing this feature.  Play Random Track was replaced with a simple Shuffle.  It will load all your music into the queue and turn on shuffle.  Another nice improvement is the music selected by on queue completion will now be preloaded when you are playing the last track in the queue.  This will allow gapless and/or crossfade to work.

I had mentioned this in a previous post, but in 3.0 many of the options will be right in the UI instead of being hidden away in the general preferences.  This should make it much easier to change options quickly.  On most of the views, they will be in a "Customize" section of the 3 dot menu on the toolbar.



Before 3.0 is fully released I will most likely add a few more on queue completion options, but for now I think its good.

Improved Voice Commands

While testing voice searching in android auto, I had noticed it was sending unstructured voice command .  An unstructured voice command is basically a voice search that you do not know what it is looking for (ie an album search, track search, artist search, etc).  Now gmmp will run through a bunch of queries to try to find what the user is requesting to play.  Previously in this situation it will only search the track name.  

Auto Pause / Play

The auto pause / play functionality was simplified a bit.  Since GMMP was first written for android 1.6, it was previously looking for a huge list of different events to determine whether to pause or auto resume.  Now to keep it simple, GMMP basically just listens for a "NOISY" intent when playing over a wired connection, bluetooth, or speaker.  This intent is broadcast in many situations like when you unplug your headset or receive a phone call, so it basically has everything covered.  Another minor change is gmmp will only look for a2dp connections (this is what is used for playing music) instead of all BT connections in general.  

I also added some new pause / play triggers which include: 
  • HDMI plug/unplug
  • Phone Power plug/unplug
For each type of connection / audio routing there will be the option to do a smart play or an always play.  Smart auto play will basically only automatically resume playback when GMMP was auto paused.  This has always been my preferred behavior.  I've always found it super annoying when a music player that i was not using at all decides to automatically start playing just because i plugged in my headphones.

Popular posts from this blog

3.4.5 Release / Preview of 3.5

3.4.5 was just uploaded to google play and should be rolling out over the next few days. Changelog: 3.4.5 (2023-08-29): Added Dutch translation Fixed crash editing rules in rule groups Disable IAP donation options if Full Version Unlock has not been purchased to prevent confusion Other changes since 3.4.0: Added Finnish translation and updated other translations Added donation options to the purchase settings area Fixed crash when trying to bookmark / unbookmark currently playing song Fixed Finnish not showing up in the language select Fixed other various crashes Fixed issue where rating or editing tags could potentially split the album Fixed some of the lists/grids not refreshing after changes 3.5 Preview I've been working on some new UI options planned for 3.5.  So far I've finished a new gradient background option for now playing.  There are 2 different styles (linear / radial) with 2 different color sources for each.  One source will take from the theme colors, the ot...

3.4.9

More fixes.  Check out discord for info on the 3.5 alpha. 3.4.9 (2024-02-14): Fixed tab navigation returning to the wrong view on screen orientation change Fixed queue not being focused on the playing track sometimes while using tab navigation 3.4.8 (2023-12-21): Fixed backup/restore intent receiver not working with IAP unlock Fixed crash sorting playlist contents

3.4.14

Google really messed with alarms and timers for android 14, so 3.4.14 should fix the sleep timer.  You will notice an alarm will show up in your alarms menu when the sleep timer is turned on.  This is the only way to actually get the sleep timer to reliably stop playback on time when your screen is off / phone locked. 3.4.14 (2024-05-17): Sleep timer should now be more reliable on android 14+ 3.4.13 (2024-04-29) Fixed metadata view incorrect sizing in now playing layout 1 3.4.12 (2024-04-23) Updated translations Fixed issues with left and right metadata alignment when no album art Multi artist/genre/composers should now be separated by a comma and space throughout GMMP 3.4.11 (2024-04-16) Added ability to choose whether to crop album art to 1:1 aspect ratio in now playing layout 2 (customize -> album art -> crop to fit) Fixed now playing tab 1:1 aspect ratio album art getting cropped Album art preview pop up should no longer crop art 3.4.10 (2024-03-31) Fixed auto bookma...