Re: Media Keys - volume / play/pause/next...

2023-10-21 Thread David Bovill via use-livecode
>
>
> 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
> .
> 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)
> 
> 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
>  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 
> 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


Re: Mdiai Keys - volume / play/pause/next...

2023-10-21 Thread Klaus major-k via use-livecode
Hi David,

> Am 21.10.2023 um 12:22 schrieb David Bovill via use-livecode 
> :
> 
> Thanks for noting that on Windows. Nothing is sent on MacOS - at least M2
> Macbook Air.

same here, macOS 12.7, MacMini Intel.
No rawkey sent...

> I filed a report - please vote -
> https://quality.livecode.com/show_bug.cgi?id=24375
> 
> On Sat, 21 Oct 2023 at 02:05, Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> When I try on Windows 11 using Livecode 9.6.10 a rawKeyDown or rawkeyUp
>> message, the media keys on my HP laptop all return 0 as the keyCode, so
>> I think this is a bug of some sort that should be reported to the
>> Livecode Quality Center https://quality.livecode.com/
>> 
>> The keyDown or keyUp message does not get sent. the OS (Win11)
>> apparently intercepts and raises/lowers/mutes the volume or play/pause
>> as applicable.
>> 
>> 
>> On 10/20/2023 11:08 AM, David Bovill via use-livecode 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

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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


Re: Mdiai Keys - volume / play/pause/next...

2023-10-21 Thread David Bovill via use-livecode
Thanks for noting that on Windows. Nothing is sent on MacOS - at least M2
Macbook Air.

I filed a report - please vote -
https://quality.livecode.com/show_bug.cgi?id=24375

On Sat, 21 Oct 2023 at 02:05, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> When I try on Windows 11 using Livecode 9.6.10 a rawKeyDown or rawkeyUp
> message, the media keys on my HP laptop all return 0 as the keyCode, so
> I think this is a bug of some sort that should be reported to the
> Livecode Quality Center https://quality.livecode.com/
>
> The keyDown or keyUp message does not get sent. the OS (Win11)
> apparently intercepts and raises/lowers/mutes the volume or play/pause
> as applicable.
>
>
> On 10/20/2023 11:08 AM, David Bovill via use-livecode 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