Closed adrianrb closed 8 years ago
Your android device does possibly not support the consumer HID device. Does the other consumer keys work (vol up down)?
You can try to replace consumer with Keyboard.write(KEY_VOLUME_MUTE);
Can you try the sketch on a pc and see if the pc does mute the sound?
As an alternative, maybe there is another keyboard shortcut that works on android. Also try my IRLRemote library (dev2 branch). https://github.com/NicoHood/IRLremote
Hi Nico.
Tks for the answer.
Vol+ and Vol- works, in PC and Android (and Power too - in android), but your suggestion Keyboard.write(KEY_VOLUME_MUTE);
does not works (both PC and android).
I will keep trying (any advice will be appreciated).
Adrian
Does volume mute work on pc (using the consumer device)?
Yes, in PC works, but in android nop (tested again):
Consumer.write(MEDIA_VOLUME_MUTE);
Then it is a problem of your android device. Try to find another keyboard command, maybe there is something else. Otherwise I am sorry that there is no other solution.
Hi!
I'm trying to use a IR remote to control an Android stick (simple commands, UP, DOWN, VOL+, VOL- etc).
I'm using a usb-otg cable and navigation (UP, DOWN, LEFT, RIGHT, ENTER, BACK) works.
But I can't do MEDIA MUTE (Consumer.write(MEDIA_VOLUME_MUTE) doesn't works).
How can I do it? (using this library).
Adrian
Some info: Stick: MK809IV Android 4.4.4 Quad core 2Gb RAM Android keys: https://source.android.com/devices/input/keyboard-devices.html Lines with '###' don't work.
Code: