Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
View Poll Results: What player you want me to support in future versions? (no promises there)
Stock Samsung 198 14.70%
Stock Sony Ericsson 99 7.35%
Stock Android 2.3+ 218 16.18%
PowerAMP 395 29.32%
Winamp 184 13.66%
BeyondPod 13 0.97%
doubleTwist 60 4.45%
Meridian 17 1.26%
MIUI Player 163 12.10%
Voters: 1347. You may not vote on this poll

Post Reply

[WIDGET] Phantom Music Control Pro for WidgetLocker | Now with DashClock Extension!

OP Johny_G

19th December 2010, 07:53 AM   |  #1  
OP Senior Member
Flag Prague
Thanks Meter: 199
 
401 posts
Join Date:Joined: May 2009
Donate to Me
More
Description
Simple music control widget capable of hiding itself while there is no track playing. It is designed to be used with WidgetLocker Lockscreen, however it is possible to use it on your homescreen as well.

Why would I code something like this?
I have switched from Sense to CyanogenMod, and I just hated its lockscreen. So I installed WidgetLocker, and set it up so it looks and behaves like HTC Sense lockscreen. However, I missed some decent music control, because all the widgets made me start playback in my pocket when I did not wanted to. So I just coded my own widget able to hide itself when there is no active playback. Since there is a lot of users with various requests, I am working on support of more players all the time.

Download
Phantom Music Control (Google Play)


Phantom Music Control Pro (Google Play)


Changelog
Code:
1.67:
- DashClock Widget Extension
- New chromeless theme
- Several bugfixes

1.66:
- Various bugfixes

1.65:
- It is now possible to change music player via launcher icon
- Improved Sony Walkman compatibility
- Added instructions for Winamp users who do not receive track info
- Fixed bug that caused the widget not to hide on some phones

1.64:
- New CarbonRoundBlueGlow theme by Jeppe Foldager
- Sony Walkman (Xperia) support
- Better landscape support (widget doesn't lose information, text is not cropped)
- Official Last.fm support, that allows you to show track info i.e. in n7 Player

1.63:
- Usable as Android 4.2 lockscreen widget
- 2 new themes by DeVviL
- Updated translations (now localised to 19 languages!)
- Some bugs and crashes fixed

1.62.x:
- Fixed bugs and FCs. I am SO SORRY for the inconvenience, that I couldn't possibly be any more sorry. Please, review your rating if you 1-starred the app. Thank you.

1.62:
- Due to new Google Play policies, PayPal payment option had to be removed
- Holo theme implemented
- The widget should be able to wake itself soon after it has been killed by 3rd party app
- API (used in Web Remote for Phantom Music) no longer requires the widget to be actually placed on screen
- Several bugfixes

1.61:
- Market purchase available!
- Fixed 1.5 compatibility
- Added timeout option for Advanced Compatibility Mode (for support purposes)
- Updated translations

1.60:
- Settings available from launcher, it is not needed to remove the widget anymore
- Text color can be changed now
- Fixed "Show music player on touch" for Advanced compatibility mode
- Fixed situations when you had to enter activation key while already activated
- It was made clear that there is also refund policy for people unsure about purchase
- Updated translations

1.59.1:
- Unfortunately, new version of doubleTwist no longer supports service binding. Therefore it is needed to use Advanced compatibility mode instead. Sorry for your trouble, I cannot control this.

1.59:
- PlayerPro fixed
- Ads removed from free version
- Some Samsung users can now use Stock 2.3 profile if Samsung does not work right
- Translations updated. Now localised to: English, German, Dutch, Korean, French, Turkish, Czech, Spanish, Italian, Hungarian, Russian
- Advanced Compatibility Mode tweaked for Samsung users
- Some minor performance tweaks

1.58.2:
- Bugfixes regarding 3rd party support, Google Music, UberMusic, etc.

1.58.1:
- Fixed bug in broadcast sending (for developers)

1.58:
- Support for 3rd party apps to utilize Phantom's wide range of controllable players
- Some performance and battery life optimizations; if you experience battery drains from older versions, please uninstall Phantom completely and install it again
- Added Turkish translation, French updated

1.57:
- Localised to Dutch, French, Spanish, Italian and Russian (some fully, some partially); thanks to all the translators!
- Changed activation system, so users does not have to contact me when they flash different ROM (experimental)
- With next version of BeyondPod, scrobbling should not be required anymore

1.56:
- Native BeyondPod support (experimental)
- New Aero theme (WMP style)
- UberMusic modified for new package name (Beta 1); Alpha is still supported by Advanced compatibility mode
- Ability to hide control buttons (requested by some users to only display track info)
- Advanced compatibility mode tweaked to be more reliable
- Translation support
- Hot-swap icon has lower opacity

1.55:
- Music player hot-swap (ability to change the controlled player in real time)
- Scrollable track information
- Ability to open any music player in Advanced compatibility mode
- Increased Advanced compatibility mode performance (let me know if you experience any problems)

1.54:
- Compatibility mode tweaked for MIUI
- ScrobbleDroid and SLS can be used to read track info in compatibility mode (works with BeyondPod, Zimly, and many others; you do not need to install the scrobblers)
- Ability to swap the track information order

1.53:
- UberMusic (Fede's Music App) support
- New Metro theme (WP7 style)
- Custom background settings (any color, any opacity)

1.52:
- Advanced compatibility mode tweaked for MortPlayer
- License activation dialog fixed for copy&paste
- New License model - version Pro prices from under $0.99! (all current licenses work as transferable 3-device licenses)

1.51:
- Advanced compatibility mode tweaked for Meridian and /Cubed

1.50:
Introducing Phantom Music Control Pro!

Phantom Music Control Pro has some great new features:

- Android 2.3 (and higher) stock music player support
- New Google Music player support
- Advanced compatibility mode that supports any player with headset controls (i.e. Winamp)
- Experimental Samsung support
- Honeycomb theme
- Ad-free
- And you will support independent developer and encourage me to add new awesome features!

1.12:
- Natively supports PowerAMP
- Compatibility mode, that allows some root users with custom ROM to control almost any media player (2.3/Gingerbread stock, Winamp, etc.)
- Battery saving mode is turned off by default because of some problems in Android 2.3/Gingerbread

1.11:
- doubleTwist Player is now supported

1.10:
- Music PlayerPro support! (full version only, trial is not supported)
- Added donation guidelines for users without PayPal account
- If you use "Show music player on touch", it will get you to "Now playing" screen during playback in some players (stock and MusicMOD do not allow this, HTC and PlayerPro do)

1.9:
- Added new Sense-like theme (thanks to  @GMKcz for the screens!)
- Some layout cleanups

1.8:
Fixed two embarrasing and long-lasting bugs

- Music player now can be launched on HTC as well
- Donation button fixed; please buy me a beer if you like the widget - I put wrong link to ALL older versions

Thank you, Ryan, for noticing and testing! 

1.7:
- Added tasty chromeless theme (see screenshots)
- Volume buttons were made easier to reach
- Added option to hide current track info
- Some minor layout cleanups

1.6:
- Bugfix: "Problem loading widget" resolved definitively; themes and opacity settings only work on Android 2.2/Froyo and higher
- Music player can be started by clicking on a song name as well
- Buttons were remastered to higher resolution

1.5:
- Possibility to show volume control (optional)
- Fixed battery saving mode

1.4.2:
- Fixed background issue I have caused. Sorry for that. I need some rest.

1.4.1:
- Fixed "Problem loading widget" and "Force close" on some configurations. If you still experience this issues, please uninstall the widget, reboot your phone and install it again. Thank you for understanding.

1.4:
- Added battery saving mode that consumes almost zero energy (if you had any battery issues with Phantom, simply uninstall it and install again; it should disappear)
- Added inverted theme with black buttons on white background
- It is now possible to start music application by touching widget background (experimental feature, might not work correctly)
- Bug fix: The background no longer disappears

1.3:
- Possibility to choose opacity of the background
- Minor visual changes and settings+defaults cleanup
- Bug fix: If "wait for WidgetLocker to unlock" is checked, widget no longer shows up on lockscreen if playback was already stopped

1.2:
- Compatible with new versions of Music Mod (1.8+)
- Possibility to hide widget on WidgetLocker unlock (such as HTC Sense lockscreen does it) - please note that it might be delayed
- Possibility to reveal the hidden widget on touch for a while
- Delay can be set to shorter intervals now

1.1:
Fixed player detection and switching (restart no longer needed)
Info for 3rd party developers:
You can use Phantom Music Control Pro to control music from your own application. Just check "Allow 3rd party apps to control music" in widget settings, and you are ready to send some intents.

Broadcast intents received:
cz.jhg.musiccontrolwidget.PLAY
cz.jhg.musiccontrolwidget.PAUSE
cz.jhg.musiccontrolwidget.PLAY_PAUSE
cz.jhg.musiccontrolwidget.PREV
cz.jhg.musiccontrolwidget.NEXT
cz.jhg.musiccontrolwidget.VOLUME_DOWN
cz.jhg.musiccontrolwidget.VOLUME_UP

Broadcast intent returned:
cz.jhg.musiccontrolwidget.TRACK_INFO
with 2 extras:
- String named "label" with song info formatted by user's preferences
- Boolean named "playing" with playstate (true = playing, false = stopped/paused)
Attached Thumbnails
Click image for larger version

Name:	sense.jpg
Views:	8008
Size:	19.3 KB
ID:	490181   Click image for larger version

Name:	standard.jpg
Views:	7173
Size:	30.3 KB
ID:	490182   Click image for larger version

Name:	chromeless.jpg
Views:	8480
Size:	37.9 KB
ID:	490183   Click image for larger version

Name:	inverted.jpg
Views:	6294
Size:	20.8 KB
ID:	490184   Click image for larger version

Name:	honeycomb.jpg
Views:	4351
Size:	29.5 KB
ID:	626954   Click image for larger version

Name:	metro.jpg
Views:	4224
Size:	12.5 KB
ID:	626955   Click image for larger version

Name:	aero.jpg
Views:	3665
Size:	21.1 KB
ID:	641843   Click image for larger version

Name:	2012-11-15 15.11.02.jpg
Views:	1206
Size:	20.5 KB
ID:	1483811   Click image for larger version

Name:	2012-11-15 15.08.56.jpg
Views:	1119
Size:	21.0 KB
ID:	1483812   Click image for larger version

Name:	Screenshot_2013-08-02-08-38-49.jpg
Views:	264
Size:	36.2 KB
ID:	2159842  
Last edited by Johny_G; 2nd August 2013 at 03:12 PM.
The Following 19 Users Say Thank You to Johny_G For This Useful Post: [ View ]
19th December 2010, 01:05 PM   |  #2  
OP Senior Member
Flag Prague
Thanks Meter: 199
 
401 posts
Join Date:Joined: May 2009
Donate to Me
More
Of course, I have missed some bug right before release. App was updated on Market.

Changelog
1.1:
Fixed player detection and switching (restart no longer needed)
Last edited by Johny_G; 20th December 2010 at 02:56 PM.
19th December 2010, 10:50 PM   |  #3  
Senior Member
Thanks Meter: 277
 
807 posts
Join Date:Joined: May 2009
More
would it be possible to add support for music mod?
my phone has music mod instead of the stock music player, but it doesn't work with your widget.
i've actually been looking for a widget like this for a while.
19th December 2010, 10:54 PM   |  #4  
OP Senior Member
Flag Prague
Thanks Meter: 199
 
401 posts
Join Date:Joined: May 2009
Donate to Me
More
Actually, I do have modded stock player (bundled with CyanogenMod), and one of my testers has Music MOD installed along with Sense player, and it works for both of us. Have you tried switching between auto-detection and Android player in widget settings? And most importantly - do you have 1.1 upgrade from Market?
20th December 2010, 12:10 AM   |  #5  
Senior Member
Thanks Meter: 277
 
807 posts
Join Date:Joined: May 2009
More
got the latest version of the widget, tried all the widget's settings, even tried removing the pre-installed music-mod and re-installing it from market.
it still doesn't detect music-mod.

EDIT: problem seems to only occur with music-mod 1.8, perhaps because that one is designed to be installed next to the stock music player rather than replacing it.
got it working for now with a music-mod 1.7.5.2

EDIT2: just thought of 2 things that might make the widget even better:
1: let the user set the time-out in seconds using a text(number) entry box(if possible one with arrow buttons like the alarm clock and calendar apps), rather than a slide.
i find 1 minute to be too long, and immediate too quick.
2: allow the user to set an action when the widget is touched in it's hidden state, a few possible actions: do nothing(like it's now), launch music player, play/unpause music, reveal widget for a short time.
Last edited by thedicemaster; 20th December 2010 at 01:08 AM.
20th December 2010, 07:04 AM   |  #6  
Member
Thanks Meter: 10
 
98 posts
Join Date:Joined: Oct 2010
great idea, kudos!

I wish this were able to be implemented into other players, as I use PowerAMP.

But I love the idea, I always wanted a feature like this so I didn't have my PowerAMP music widget displayed on my lockscreen at all times.
20th December 2010, 08:53 AM   |  #7  
bartito's Avatar
Recognized Developer
Thanks Meter: 1,209
 
2,535 posts
Join Date:Joined: Dec 2005
Donate to Me
Pls, add support for Music Mod 1.8
20th December 2010, 10:01 AM   |  #8  
OP Senior Member
Flag Prague
Thanks Meter: 199
 
401 posts
Join Date:Joined: May 2009
Donate to Me
More
Thanks for the great ideas! I will focus on following:
- Install Music Mod 1.8.0 and analyse what is going on there
- Hiding the widget on unlock the way HTC lockscreen does it
- Change the slider to shorter intervals
- Short reveal of the widget on touch
20th December 2010, 02:52 PM   |  #9  
OP Senior Member
Flag Prague
Thanks Meter: 199
 
401 posts
Join Date:Joined: May 2009
Donate to Me
More
New version released for your pleasure :)

Changelog
1.2:
- Compatible with new versions of Music Mod (1.8+)
- Possibility to hide widget on WidgetLocker unlock (such as HTC Sense lockscreen does it) - please note that it might be delayed
- Possibility to reveal the hidden widget on touch for a while
- Delay can be set to shorter intervals now
20th December 2010, 04:31 PM   |  #10  
Senior Member
Thanks Meter: 277
 
807 posts
Join Date:Joined: May 2009
More
thanks, works great.
still keeping music-mod 1.7.5.2 though, because it acts more stock than 1.8.

i did notice the widget interferes with itself, but it's not that big of a problem.
when you use the widget on multiple screens(so either on 2 homescreen pages, or on your homescreen and on widgetlocker) pressing play/pause on one of the widgets doesn't trigger a hide/reveal on the other.
but i think fixing that would require an underlying service which would also mean redoing a lot of your work.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes