The following sample lists Jabra devices (more specifically, their names) whenever they are connected.
Make sure you've installed the Chrome Extension and the Chrome Host (see Getting Started in the Browser).
Create an empty
package.json
and installjabra-js
:
- Create an empty
index.js
file and initialize the library by using the following code snippet:
Please see our guide on Modules Import Strategies to learn more about different import formats.
- Create an
index.html
and add the following markup:
Note the
type="module"
attribute on the script tag.
- Start your app by opening the
index.html
viahttp-server
in a Chrome browser.
- Attach a Jabra device (no problem if you already did this) and check the JavaScript console to see the device name.
#
Next stepsFollow the Call Control tutorial to learn how to control a Jabra headset in regards to a call (e.g. ringing, accepting the call, muting, holding).