10 posts / 0 new
Last post
harlank1
Using WebHID Directly without using any desktop apps or local web services
Does Polycom/Plantronics have any information or guidance on using WebHID directly to access and control their headsets in a web-based softphone scenario? I haven't been able to find any documentation on this.

bcaldwell
If a softphone has implemented support for WebHID, Poly headsets should "just work" when connected using a Chromium-based browser like Chrome or Edge. Can you provide more details about what you would like to do so we can better understand your proposed deployment? Which headset models are you most interested in controlling? Are you deploying in a Chromium browser? On a Windows, macOS, or Chrome OS device?

harlank1
We're essentially building the softphone. Our target is primarily Chromium browsers on Windows and Electron on Windows. In the future we hope to support MacOS as well but currently it's not our target. Do you know of any example projects of programming WebHID for Poly Headsets?

harlank1
As far as what headsets we'd like to control, the simplest answer is probably "all of them" but to be more specific, we'll be targeting models frequently used in corporate environments by receptionists and call center agents. We can gather a more specific list if that becomes necessary.

bcaldwell
As above, Poly headsets (and USB devices broadly) should "just work" with WebHID. You should not need to do anything special to support Poly headsets, as WebHID messaging is built into the browser layer. If your softphone supports WebHID, then call control for Poly headsets should function as designed when your web app is active in a Chromium browser. Yes, there are example projects, but they are not yet public. We expect at least one project to become public in June, but the timing is subject to change.

bcaldwell
Poly USB headsets for UC and Contact Center, Blackwire, and EncorePro, have been tested with WebHID. You should not have any problems, but please do alert us if you observe anomalies.

harlank1
Just to clarify, getting audio from headsets is not the challenge we have. Responding to button presses for answer, hangup, mute, unmute, volume up/down are the things we want to be able to do. We haven't seen any useful WebHID examples of this and google returns very limited results.

bcaldwell
That is understood. WebHID developer support really should come from Google. I'll inquire with our contacts to see what they can offer you.

harlank1
OK, I'll try to clarify a bit here. We're trying to integrate with all the major headset manufacturers starting with the most important so Polycom and Jabra are our focus right now. We've been reviewing documentation for Jabra. #1 Jabra has a Javascript library that handles all the WebHID interactions for the developer. Does Polycom have anything like this? #2 Handling Jabra headset events can be fairly complicated. For example, when the user presses the Answer Button, the application needs to send back an acknowledgment. Jabra has all this documented on their website, the whole flow, various codes used, requirements, etc. We haven't seen anything like this on the Poly/Plantronics site. Can you point me to relevant documentation? #3 From your point of view, is WebHID just a simple wrapper that allows USB HID events to flow to the browser? So is all USB developer information applicable to WebHID as well? As far as using WebHID to connect to devices, get permissions, setup listeners etc., we have found good information for this on the web. What we haven't found is the more specific details on interpreting button presses, sending acknowledgements and commands to Poly headsets, which headsets support which WebHID features, etc.

harlank1
EPOS / Sennheiser also has a Javascript WebHID library: "The Web SDK is a JavaScript file that can be used in modern browsers and enables call control through a set of public functions. This SDK supports EPOS devices via either WebSocket or Web HID. Release date: January 11, 2022"

Add new comment