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

Headset publishes only Mute or only Unmute events #42

Closed DurkoMatko closed 5 years ago

DurkoMatko commented 5 years ago

Issue: My headset is in offHook state. I repeatedly click microphone button and expect to receive mute -> unmute event sequences. Instead I get only mute events and unmutes are ignored (but the device gets correctly unmuted and light indicator on the device is also always in the right state). I also managed to get to a situation where situation was opposite and only unmute events were received.

image

Devices: JABRA Evolve Link, JABRA Handset 450 I can replicate this with both mentioned devices in my app as well as with the hosted version of this repo (https://gnaudio.github.io/jabra-browser-integration/beta/test/)

Possible source of the issue: My Chrome extension says it's incomplete and needs update but updating or removing & adding it again doesn't help either.

image

frederiksen commented 5 years ago

Hi @DurkoMatko. Using the mute-button on a device does not toggle the mute state. It's documented here: https://github.com/gnaudio/jabra-browser-integration#sequence-diagrams

The events are requests, you need to acknowledge these requests.

DurkoMatko commented 5 years ago

@frederiksen Oh, my bad. Thanks!

NunoCuradoFuze commented 4 years ago

@DurkoMatko By experimenting your hosted version, I noticed that the mute event from device->app is instantly being recognized, by setting the bit value to the right status. Unmuting from device->app afterwards is not giving that feedback, it seems no input event is received. Only muting it again sets the state to unmuted, per console log. Is that a normal behaviour? Shouldn't the unmute button triggers an input report event that instantly sets the mute bit value to 0 again?