Map media play/pause to hard key? - Nook Color Q&A, Help & Troubleshooting

I'm looking for a way to pause and resume media without interacting with the touchscreen. I don't care if it also wakes the screen, and I'm willing to remap a volume button to menu, camera, or whatever if necessary, though I would prefer just mapping it to a long-press, or better yet to the power button so that all media controls would be accessible without opening my case.
Are there any options?

Well, I have one less-than-ideal method:
Taosaur said:
1. install Media Keys app to add media controls to my shortcuts menu
2. use keysmod/NookKey Editor to map Menu to Vol- (I'd rather keep Vol-)
3. map play/pause to Menu longpress in CM Input settings
4. disable lock screen (I'd rather keep security)
5. use Power to wake the device, then longpress Vol- (now Menu)
Click to expand...
Click to collapse
Now, I'm already using the "Volume button music controls" setting which maps next/previous skip buttons to Vol+/- longpress when the screen is off. Does anyone conversant with ADB know a way I could swap in play/pause for previous on the Vol- key?
It would be ideal if I could map that behavior to the Home button; all it does now is wake the screen, which Power duplicates, but I suspect the framework is already in place for the Volume buttons, and it might be as simple as swapping one line of code for another.
I'm trying to submit more versatile "Volume button music controls" as a feature request for CM7, too, but if anyone has a more immediate solution I can implement myself, I'd like to give it a try.

A minor elaboration on the method above: keysmod lets me set the Vol- button (now Menu) as wake-on-press, so I can click it once to wake, then long-press to play/pause. Oddly enough, the long-press doesn't work if I left Google Music Beta (or probably any media player) on-screen when the NC went to sleep. I haven't tested extensively, but it's possible other apps would block the long-press behavior, too. So, for it to work reliably, you want to return to your homescreen before putting the NC to sleep.
Also, if nothing is playing, the long-press will start the default Music app. If another media player (including Google Music Beta) is playing, it will pause and resume that app.
I've poked my head into the CM7 code, but don't have so much as a toehold on tracking down and replacing the relevant bit of code to swap play/pause for previous track in the Volume button music controls setting. If any higher-level nerds than myself can offer a clue, it would be much appreciated.
ETA: My workaround is basically serviceable for using the NC as a PMP or bedside player, particularly for audiobooks where play/pause is going to be considerably more important than Vol-. If you're anxious that keysmod may affect Vol+/- functions in the CM7 boot menu or CMW, I can confirm that no, as expected, it does not.

Related

Lock buttons/touchscreen when playing MP3s?

The Wizard has the option, when it is in...ummm...standby(?) mode (i.e., when you push the power button), to only return to normal mode when you press the power button. In other words, the other hardware buttons, let alone the touchscreen, do nothing.
What I'm interested in is a way of doing something similar, but when I'm using it as an MP3 player. The various Wizard cases I've tried are all too snug, so putting the Wizard back in the case after starting up the MP3 player bumps buttons or the screen and causes problems (e.g., stops the music).
Are there any tricks to restricting input for cases like this? Ideally, from my standpoint, the device would accept user input when either the middle button of the D-pad is pushed, or if a call comes in (so the call can be accepted).
Thanks!
You can try using the WM5 Today's lock device plugin. There are various other software that utilize (similate) this lock feature. Do a search.
hanmin said:
You can try using the WM5 Today's lock device plugin. There are various other software that utilize (similate) this lock feature. Do a search.
Click to expand...
Click to collapse
Hanmin, I do exactly as you suggested but I wonder if is there a more efficient way to lock the device especially with media player on top. I use the Treo case which actually has a hole for the headphone jack in the proper location for the k-jam, however, one has to thread the headphone through the case, start one's music, bring up the today screen, and then lock the device. If one could have the option of placing lock the device on the start menu as opposed to having it only on the today's screen that to me may be a big help, and then as you come out of unlocking the device, you would be right there at the media player.
What I'm afraid of is one time while I'm fidgeting to get the device into the case and coordinate the starting/locking of music, I'll drop the device on the NYC subway platform and watch it dash on to the tracks as a subway is on coming :roll:
Try deltaLock I use it together with WMP10 and wired/bt headsets.
Would it help if you could map the device lock to a button?
Armstrom has made a great program for that:
http://www.mr2-power.com/downloads/DeviceLock.CAB
You don't have to go back to the today screen at all, just press the button you mapped it to.
you can also assign a button to sreen on/off in Windows Mediaplayer itself! Then you can use the d-pad buttons (that's what you wanted not?) to adjust volume and select next and previous, however you screen is blacked out, so the touchscreen will not work and power consumption drops. Ideal for use as MP3 player.
WM Player > Menu > Options > Buttons > Screen on/off, > assign e.g. the middle button.
1-2tje said:
WM Player > Menu > Options > Buttons > Screen on/off, > assign e.g. the middle button.
Click to expand...
Click to collapse
There is a bug in WMP10 on WM5 that prevents this from being assigned to buttons other than dpad though correct? Anyone have a fix for this yet? I like having up/down for volume, right/left for track, and middle button for play/pause.
device lock works without any problems
SBouri said:
device lock works without any problems
Click to expand...
Click to collapse
Yeah but... that means the button will always be a lock. What I used to do on previous pocketpc was have a button that launched WMP. Once WMP is running, that button now becomes the screen lock.
Itesla, you can still have your up down left right and enter dpad control, as you can assign two functions to each button. A press and a press and hold (except the middle button). When it asks you to press a button, just hold up or down (left and right hold are assigned to rewind and fast forward). I have down hold set to fullscreen and up hold set to the lock.
Alternitavely, you could use the press up down for a button lock, and just use the volume slider
Hope this helps
PS I'm posting this on my wizard from the comfort of my bed :lol: Ahh the glories of Wifi... I'm just a bit overhappy because I've finally got it working.
1-2tje said:
you can also assign a button to sreen on/off in Windows Mediaplayer itself! Then you can use the d-pad buttons (that's what you wanted not?) to adjust volume and select next and previous, however you screen is blacked out, so the touchscreen will not work and power consumption drops. Ideal for use as MP3 player.
WM Player > Menu > Options > Buttons > Screen on/off, > assign e.g. the middle button.
Click to expand...
Click to collapse
Thanks 1-2tje, your suggestion was dead on. Eb

How to assign new buttons?

I'd like to be able to hold a button (other than Button 5) and have it execute a command/program. Can it be done?
ie. Hold OK button to launch X program? I've googled with no luck.
Search the forums. There is a thread by Sleuth255 (?) with the title PTT Function Hacked or something similar.
I found that thread. But it's doing what my TyTN does anyways... allows you to hold the button 5 and launch. I need that function for the other buttons as well.... unless I'm missing something.
i use ae button plus for this.
its free on a trial with a popup on phone phone startup, or $7 to unlock.
its FANTASTIC. interface isn't overly intuative to setup, but basicly you can have
1 click, 2 click, 3 clicks and press to hold on *all* the hardware buttons do different things.
its also got a reasonalbe app switcher built in, and way to turn the screen off and lock the keys if you want your media to keep playing when the phone in in a lower power state. *(not sure how much this saves in terms of power, but the key lock is why i use it)
For example,
my internet button (up and right of screen) is now set to
1 click - Load IE,
2 click - Load MusicID (listens to any song being played and then tells you the artist and track)
3 click - Load tomtom (usfull so i can switch between messages/phone calls and tomtom when driving quickly.
press and hold - turn off screen and lock keys for media playback.
Wish it was more popular i think its a fantastic application! you should give it ago.
as an aside note, i think there is a reg hack to do the press and hold on other buttons, but honestly do your self a favour and try
http://ae.inc.ru/aebplus.php
(website looks Naff!!! but good app)
Thank you. Exactly what I need. Cheers.

How to allow music playing after pressing power button

Hello,
Is there any way to allow music to keep playing in Windows Media Player after I press power button?
Greg
the easiest way is, u install a custom wm6 rom, so itook this way and its works
greetz lessew
lessew said:
the easiest way is, u install a custom wm6 rom, so itook this way and its works
greetz lessew
Click to expand...
Click to collapse
I dit. I cooked my own ROM but in previous ROM this feature was working somehow (pressing power button did not stop music playing) but in my ROM it does.
you can also just click the windows key, click on the "today" icon, go to the today screen and then just lock the window. let the screen turn off by itself.
thats what i do. i've never been able to hit the power key.
i use pocket player. you can assign a button to turn the screen off. unfortunately the program isnt free.. unless you know where to look.
get TCPMP,the core media player and assign a hot key to turn off the screen.its in the options.
If you use pbar (http://forum.xda-developers.com/showthread.php?t=284952&highlight=pbar), you can use the blue icon at the bottom of app to turn the screen off and save the battery sucked up by display.
I use this when listening to WMP or TCPMP and works fine.
For some reason, the link did not paste correctly for pbar. Here goes.
http://forum.xda-developers.com/showthread.php?t=284952&highlight=pbar
Until you figure it out. You can always set a hotkey from Media Player (menu/options/buttons). Then assign a key to Toggle Screen (I use Hold Up). Click on 'Toggle Screen', press Assign button, press key you want to assign to that function. If you hold the up button from the direction pad for a second it should take.
This is what I do (I'm using NBD v9.2 BTW): Play a song, wait until it finished the first song, click power button. Works everytime. If you press it too early you're gonna cut your music off along with your screen. The key word is wait.
Display Switch
Or you could use the program called display switch. it turns off the screen only and you can assign this to a button on your wizard. that's what I do

Controll Windows Media Play and Sound Settings with screen off?

Is there any way to do this because say if im listening to a song and i want to change it i always gotta turn on the screen in order to do so when i really dont need to.
any help would be greatly appreciated
Plug in your headphones
that doesnt work - it makes no differnece to the buttons
There's a way to modify that radio button on the stock headphone piece to do one command. It can be stop, forward, back, or whatever.
Can you please be more specific on how to change track using the button on the headset? also having the problem where screen turns on everytime I change track. GSplayer has this feature, but I prefer WMP
i dont use the original headphones - there must be a reg edit or something to allow the use of buttons with the screen off?
comeradealexi said:
Is there any way to do this because say if im listening to a song and i want to change it i always gotta turn on the screen in order to do so when i really dont need to.
any help would be greatly appreciated
Click to expand...
Click to collapse
the easiest thing you can do is change the button config within WMP.
- Open WMP
- Go to view the player (not the library) by either playing a song or by hitting OK
- Hit Menu > Options > Buttons
- Scroll all the way down and select "Toggle Screen"
Now this is where you have to decide what button you want to use to turn the screen on and off, personally, I picked the center button (the optical joystick button) as my on and off screen, which is currently the Play/Pause button. For these instructions, I will use that button as the example.
- Hit the "Assing" button and hit the middle (optical joystick) button.
- Hit OK
Now you can turn the screen on/off (by hitting that button) while still being able to increase/decrease the player's volume, change tracks back or forward, and if you do a long press then you can fast forward or rewind the track.
Hope this is what you were looking for...
Hope this helps
solarleox said:
the easiest thing you can do is change the button config within WMP.
- Open WMP
- Go to view the player (not the library) by either playing a song or by hitting OK
- Hit Menu > Options > Buttons
- Scroll all the way down and select "Toggle Screen"
Now this is where you have to decide what button you want to use to turn the screen on and off, personally, I picked the center button (the optical joystick button) as my on and off screen, which is currently the Play/Pause button. For these instructions, I will use that button as the example.
- Hit the "Assing" button and hit the middle (optical joystick) button.
- Hit OK
Now you can turn the screen on/off (by hitting that button) while still being able to increase/decrease the player's volume, change tracks back or forward, and if you do a long press then you can fast forward or rewind the track.
Hope this is what you were looking for...
Hope this helps
Click to expand...
Click to collapse
awesome - thanks mate!

Enhace Music experience

Hi,
I was wondering if the touch HD can be adjusted so that the volume buttons can be used during music playback (with screen truned off)to change tracks up or down depending on which button is pressed for some seconds?
You know like it does with the volume(where screen is off yet buttons functionality is available)
itll save time having to take the phone out of your pocket everytime...
I personally use AEButton Plus. With this program you can reassign all buttons with new Commands.
The config is:
Volume Up
One Press - Up (Last Title)
Double Press - Volume Up
Volume Down
One Press - Down (Next Title)
Double Press - Volume Down
Download http://ae.inc.ru/aebplus.php
greetz Floh
yh i think thats pretty close to what I was thinking, ill download and try it now
Thanks
ilhaq said:
Hi,
I was wondering if the touch HD can be adjusted so that the volume buttons can be used during music playback (with screen truned off)to change tracks up or down depending on which button is pressed for some seconds?
You know like it does with the volume(where screen is off yet buttons functionality is available)
itll save time having to take the phone out of your pocket everytime...
Click to expand...
Click to collapse
Try the Core Player. It has this feature built-in that you can assign any function to any button. Also some ROMs are tweaked to skip tracks with volume buttons when screen is off (like Laurentius26's V4) with HTC Sense's player.
im not that keen on downloading unofficial roms anymore but ill give core player a try
Thanks

Categories

Resources