How Do You Make the Browser Ring When a Flex Call Comes In?

The best option for making the browser ring when an incoming Flex call arrives is to use the Notifications API. Listen for the reservationCreated event, and then play back audio:

manager.workerClient.on("reservationCreated", reservation => {
//add here code to play sound w/ Web Notifications API


How Does the Browser Know Which Audio Device to Ring?

The MediaDevices interface allows you to request a list of available audio output devices with enumerateDevices():


Once you identify the desired device ID, pass it off with using the HTMLMediaElement.setSinkId() method.

Notice: These methods are officially supported in Chrome 49+ and Edge 17+. Support for additional browsers cannot be guaranteed at this time.


Have more questions? Submit a request
Powered by Zendesk