gnaudio / jabra-browser-integration

JavaScript library to control a Jabra headset from a browser
https://www.npmjs.com/package/@gnaudio/jabra-browser-integration
MIT License
3 stars 1 forks source link

Mute event not being fired if call is not active #49

Closed cdiscla closed 4 years ago

cdiscla commented 4 years ago

Hello, i'm integrating your lib in my webrtc web app and it works great. I have only an issue: when the user clicks the mute button, it switches on, but i do not get any event in jabra.addEventListener(), i have tried to handle all events listed in source code. It works fine with active call, but not if the user wants to mute the microphone even if the call is not active. Is it the expected behavior or can it be solved? I am currently using Jabra BIZ-2300 Thanks in advance and greetings

jabra-slawaetz commented 4 years ago

This is expected behaviour.

You are correct, mute only applies in a call (when headset is active and audio streaming is on) The programming metaphor for the headsets follow the USB HID model (usb.org), where mute only applies when the device is offhook (active within a call). According to the interaction model, then if the device is not active (offhook) then the microphone is not active, so the mute function does not apply.

ghost commented 4 years ago

Closing, as question is answered and there has been no followup.