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

Jabra integration #27

Closed domnich closed 5 years ago

domnich commented 5 years ago

Hi there! Im using jabra-browser-integration in my web application and all works fine for me.

For electron application, Im using your node module https://www.npmjs.com/package/jabra. I'm trying to add code sample into my electron app:

const jabra = require('jabra')('myId'); jabra.on('attach', (device) => { console.log(device); const retCode = device.lock(); });

So device: Device { _events: {}, _eventsCount: 0, _maxListeners: undefined, deviceID: 0, productID: 769, vendorID: 2830, ESN: '00014A627742', deviceName: 'Jabra EVOLVE 20', errorStatus: 0, connectionType: 0, isDongleDevice: false, isInFirmwareUpdateMode: false, usbDevicePath: '/tmp/VID2830_PID769_LOCID342097920', variant: '01-1D', dongleName: null, parentInstanceId: 'NOT SUPPORTED ON MAC', connectionId: undefined, parentDeviceId: undefined, _isMuted: false, _isOffHooked: false, _isOnHold: false, _isRinging: false, _isTranslatedEvent: false, getImagePathPromise: null, getImageThumbnailPathPromise: null, imagePath: null, imageThumbnailPath: null, isBatterySupported: null }

As I see from this object - 'NOT SUPPORTED ON MAC' and also device.lock() is undefined for me. Any idea what I'm doing wrong ? Thanks!

Environment: MacO High Sierra Version, 10.13.6

sklausen commented 5 years ago

Hello Are you using the latest version of the jabra node module (1.0.6-11)? In this new version, device.lock() has been removed and a device can now be accessed without locking and unlocking it.

domnich commented 5 years ago

Hello, yep, you are totally right, thanks! No more need to lock/unlock device. And about - parentInstanceId: 'NOT SUPPORTED ON MAC' - as I understood , it's because only this field unsupported for macOS. I think, this issue can be closed

ghost commented 4 years ago

BTW: For node.js the correct Jabra project is now https://github.com/gnaudio/jabra-node-sdk/