[Pas2js] Pas2JS units and audio headsets buttons

Mgr. Janusz Chmiel janusz.chmiel at volny.cz
Sat Oct 16 15:51:14 CEST 2021


Does somebody of us think, that it would be possible to detect hardware buttons pressed on Bluetooth or wiret headsets? Buttons play/Pause or if AN headset uses special other buttons to switch between songs.
Because Youtube and other WEB apps can detect it. Is it possible with Pas2JS and with some of provided units? Or this kind of operation is only supported by using other programming languages than Javascript? If is it possible, would somebody of us tell Me The unit name and which function or procedure should I call to detect, if user has pressed Pause /play hardware button on headset? I have even found some WEB apps which can detect this event if focus resides outside The browser window.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20211016/8f58b404/attachment.htm>


More information about the Pas2js mailing list