termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

Feature Request: Media Actions

Open nanderer opened this issue 2 years ago • 2 comments

Hi,

i like to control my phone using termux-api over ssh, but there is one thing i am missing, media control actions like play/pause, next and previous

Here is a screenshot of the actions from the Keymapper App, which is also open source, where you sure can copy the code for the actions:

Screenshot_20211110-005922

you can find the app here: https://f-droid.org/en/packages/io.github.sds100.keymapper/

there are sure other useful actions to implement like switching Bluetooth on/off, auto rotate on/off or do not disturb on/off

maybe the command can be named termux-action or so...

thanks implementing this actions in advance

nanderer avatar Nov 10 '21 00:11 nanderer

i guess it could be this code: https://github.com/sds100/KeyMapper/blob/08a52ef68d6ff319c567f5431f6aa69601e0e155/app/src/main/java/io/github/sds100/keymapper/system/media/AndroidMediaAdapter.kt

but i cant make really any sense out of it, i know a bit java, but all that stuff android and Kotlin stuff is above me

nanderer avatar Nov 10 '21 00:11 nanderer

I think this might be a duplicate of or dependent on #61

chapmanjacobd avatar May 25 '22 13:05 chapmanjacobd