Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,173 Members 40,665 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][2.3+] Physical Button Music Control 2.6.2

Tip us?
 
XspeedPL
Old
(Last edited by XspeedPL; 27th July 2014 at 03:08 AM.) Reason: 2.6.2
#1  
XspeedPL's Avatar
Member - OP
Thanks Meter 107
Posts: 84
Join Date: Jun 2013

 
DONATE TO ME
Audio [MOD][2.3+] Physical Button Music Control 2.6.2

Hi

I've been searching for a Xposed mod to control the music player with the physical buttons (volume and camera buttons), but I haven't found any mod for music play/pause. So I've decided to make one.

When the screen is off/locked/always this module allows you to:
- send media play signals
- send media next/previous signals
- send volume up/down signals
...with any physical buttons your phone might have!

And also:
- Send a play signal when devices get plugged in
- Send signals only when selected devices are plugged in
- Set music volume when play signals are sent
- Set a media player to send the signals to
- Launch the selected player before sending signals

Features can be greatly customized in settings activity 'PBMC Settings'.
Compatible with all Android versions from 2.3 'Gingerbread' to 4.4 'KitKat'.

Current version: 2.6.2
Download: Physical Button Music Control on Xposed Module Repository
If you found this mod useful consider donating me a coffee, this will help me code ^^

If you want to help other people see this app in your language, let me know and I'll add you on Lokaligo:
PBMC translation project on Lokaligo

Credits:
- rovo89 & Tungstwenty: Xposed Framework
- fer866: Spanish translator
- pyler: Slovak translator
- Rom: French translator
- Typhus_: Portuguese translator

How to report problems efficiently?
- Enable the Debug log in PBMC settings
- Use PBMC functions that don't work as intended
- Export the logs from Xposed app and put them on PasteBin
- Post here/send me the link along with more information about your device
The Following 63 Users Say Thank You to XspeedPL For This Useful Post: [ Click to Expand ]
 
XspeedPL
Old
(Last edited by XspeedPL; 27th July 2014 at 03:09 AM.) Reason: 2.6.2
#2  
XspeedPL's Avatar
Member - OP
Thanks Meter 107
Posts: 84
Join Date: Jun 2013

 
DONATE TO ME
Audio Changelog

Version changelog
Quote:
2.6.2
- Fixed a bug preventing Plug & Play from working

2.6.1
- Disable functionality when phone's call state isn't idle
- Ability to customize repeat frequency and vibration duration per action
- Ability to select certain device types for 'Plug & Play' and 'Plugged only' preferences

2.5.1
- Fixed service handling on pre-Jelly Bean (original button functions)

2.5
- Can now work on the lockscreen or always!
- Fixed the input handling bug from previous version
- Code clean-up and performance improvements

2.4
- Ability to repeat action signal when holding
- Ability to enable/disable vibrations per action
- A fix for devices with repeating key events
- Fixed Gingerbread compatibility
- Updated all translations (thanks to the awesome translators!)

2.3:
- Implemented triple presses and single/double press + hold mappings
- An ability to log advanced debug info
- An ability to set home and power button single press functions (at your own risk!)
- An ability to disable original button functions ('do nothing' action)
- Added French translation (thanks Rom!)

2.2:
- Added per-mapping delay/hold time setting
- Fixed original volume button functions
- Fixed single press function when hold function was set
- Added Spanish translation (thanks fer866!)

2.1.1:
- Fixed a bug that prevented original button functions from working
- Re-enabled double presses for POWER and HOME keys
- Re-enabled all functions for FOCUS key
- Added Slovak translation (thanks pyler!)
- Added Portuguese translation (thanks Typhus_!)

2.0:
- Almost full rewrite!
- Allowed multiple keys for signals
- More intuitive interface
- Fixed many bugs

1.8:
- Awesome new UI with tabs for devices with Android 3.0 and later
- An ability to vibrate when sending signals
- An option to send signals only when the headphones are plugged in

1.7:
- Added an ability to send signals only if player is already running
- Added the camera focus "button" as possible key
- Made the launch option only take place when the player isn't running

1.6.2:
- Fixed the launch intent happening regardless of the setting

1.6.1:
- Fixed Android 4.2 incompatibility

1.6:
- Introduced the ability to select a media player to use
- Added a special option to launch media player activity, in case it needs it

1.5:
- Fixed Gingerbread compatibility at cost of Froyo compatibility
- Reimplemented volume up/down signals
- Added compatibility mode which may make this mod work with some media players

1.4.1:
- Fixed a bug preventing the original key functions from working
- Fixed compatibility with newest Android 4.2+ versions

1.4:
- Even greater customization overkill!
- Fixed (really this time) the pre-Honeycomb devices compatibility
- Bigger list of keys that can be used
- Requested feature to set volume on media play signals
- Requested feature to send volume up/down signals with other keys

1.3.1:
- Allowed better visuals on newer devices in the settings activity
- Fixed incorrect labels in the settings activity

1.3:
- Fixed a bug that prevented next/previous signals from being sent
- Added a lot of customization options to the settings activity
- Allowed different keys to be used

1.2:
- Added an ability to send play media signal when headphones get connected
- Added a settings activity that allows to control which features to use
- Made the module compatible back to SDK level 8 ('Froyo' 2.2)

1.1:
- Added next/previous media functions for volume buttons
- New name and icon

1.0:
- Initial version with pause/play function for the camera button.
The Following 2 Users Say Thank You to XspeedPL For This Useful Post: [ Click to Expand ]
 
awakener777
Old
#3  
Senior Member
Thanks Meter 33
Posts: 342
Join Date: Aug 2010
Will this work with Google play music?
 
XspeedPL
Old
#4  
XspeedPL's Avatar
Member - OP
Thanks Meter 107
Posts: 84
Join Date: Jun 2013

 
DONATE TO ME
Quote:
Originally Posted by awakener777 View Post
Will this work with Google play music?
I haven't tested, but I'm sure it will.
 
argo7
Old
#5  
Member
Thanks Meter 10
Posts: 88
Join Date: Apr 2012
How about add the option of resume the music when I conncet the headset?
 
killoid
Old
#6  
killoid's Avatar
Senior Member
Thanks Meter 239
Posts: 880
Join Date: Feb 2013
Location: 23.7000 N, 90.3750 E
@XspeedPL can you implement Gingerbread support plz?
Quote:
"I've never actually seen a mongoose or an antelope. My zoology may be inaccurate!"
My Thread:
[INDEX][XPOSED]List of Xposed Modules for Android 2.3.x


Samsung Galaxy Y Duos GT-S6102
Rom: Stock GB 2.3.6
Kernel: Kuro's Kernel
Status: Rooted,Deodexed


Nokia X2-00
The Following User Says Thank You to killoid For This Useful Post: [ Click to Expand ]
 
XspeedPL
Old
#7  
XspeedPL's Avatar
Member - OP
Thanks Meter 107
Posts: 84
Join Date: Jun 2013

 
DONATE TO ME
Quote:
Originally Posted by argo7 View Post
How about add the option of resume the music when I conncet the headset?
I could, but then would need to make an interface to disable unwanted features.
I guess it should be done in a few days.

Quote:
Originally Posted by killoid View Post
can you implement Gingerbread support plz?
I think there should be no problem.
The Following 3 Users Say Thank You to XspeedPL For This Useful Post: [ Click to Expand ]
 
argo7
Old
#8  
Member
Thanks Meter 10
Posts: 88
Join Date: Apr 2012
Quote:
Originally Posted by XspeedPL View Post
Hi

I've been searching for a Xposed mod to control the music player with the physical buttons (volume and camera buttons), but I haven't found any mod for music play/pause. So I've decided to make one.
It's simple, when the screen is off:
- pressing the camera button sends a media play/pause signal
- holding the volume up/down button for 300ms sends a media next/previous signal

Current version: 1.1
Download:

repo.xposed.info/module/xeed.xposed.cbppmod
And you think that you would be able to disable the lockscreen controls?

Enviado desde mi XT1032 mediante Tapatalk
 
XspeedPL
Old
#9  
XspeedPL's Avatar
Member - OP
Thanks Meter 107
Posts: 84
Join Date: Jun 2013

 
DONATE TO ME
Quote:
Originally Posted by argo7 View Post
And you think that you would be able to disable the lockscreen controls?
Hmm, I don't see a reason for that, but I guess that would be possible, yes.
 
argo7
Old
#10  
Member
Thanks Meter 10
Posts: 88
Join Date: Apr 2012
Quote:
Originally Posted by XspeedPL View Post
Hmm, I don't see a reason for that, but I guess that would be possible, yes.
Pls do that ) It would be amazing

Enviado desde mi XT1032 mediante Tapatalk

Tags
media, mod, music, player, xposed
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes