Can I set the Audio Output device when using the Vonage Video API in Javascript Can I set the Audio Output device when using the Vonage Video API in Javascript

Can I set the Audio Output device when using the Vonage Video API in Javascript

Vonage API Support

Question

Is it possible to set the output destination of audio when using the Vonage Video API in a browser using JavaScript?

Applies To

  • Vonage Video API 
  • JavaScript
  • Browser

Answer

Yes!  As of 2.21.0 of the Vonage Video API for JavaScript, you can now set the audio output destination device.

This is achieved using the OT.setAudioOutputDevice() function.

Additional Information

You can find more information on this function in the documentation below:

Vonage Video API OpenTok Environment

Vonage Video API Unified Environment

How to recognize if I'm using Vonage Video API Unified Environment or Vonage Video API OpenTok environment?