> > > The media key events are sent. Several apps accept them, and you can > customise what they do with https://github.com/pqrs-org/Karabiner-Elements > which works robustly. > > Media key input from peripherals such as keyboards or earbuds typically > adheres to the Human Interface Device (HID) standard > <https://en.wikipedia.org/wiki/Human_interface_device#HID_standard>. > Common media controls you might find include: > > - Play/Pause: Toggles between play and pause for media playback. > - Stop: Stops the media playback. > - Next Track: Advances to the next track or chapter. > - Previous Track: Returns to the previous track or chapter. > - Volume Up: Increases the volume. > - Volume Down: Decreases the volume. > - Mute: Mutes or unmutes the audio. > > The way earbuds communicate with devices can also depend on the specific > connection protocol they use. Bluetooth headphones and earbuds use the > Audio/Video > Remote Control Profile (AVRCP) > <https://en.wikipedia.org/wiki/List_of_Bluetooth_profiles#Audio/Video_Remote_Control_Profile_(AVRCP)> > to control playback (e.g., play, pause, volume control) on the paired > device. >
> On Sat, 21 Oct 2023 at 00:43, J. Landman Gay via use-livecode < > use-livecode@lists.runrev.com> wrote: > If rawKeyDown/Up doesn't catch them then I assume the OS isn't sending the > keycodes to apps. > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On October 20, 2023 5:42:05 PM David Bovill via use-livecode > <use-livecode@lists.runrev.com> wrote: > > > Surprisingly difficult. There are a couple of apps that let you customize > > play/pause interactions from the keyboard - but they dont work when sent > > from other devices such as earbuds. Livecode does not seem to read these > > events either.... > > > > On Fri, 20 Oct 2023 at 16:08, David Bovill <david.bov...@gmail.com> > wrote: > > > >> Is there a way to trap for these keyboard events. > >> > >> Volume and Media Keys: In the HID standard, volume and media control > keys > >> often have specific usage IDs. For example: > >> > >> > >> - 0xE9 is for volume up. > >> - 0xEA is for volume down. > >> - 0xE2 is for mute. > >> - 0xCD is for play/pauseetc > >> > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode