NEWDolby Interactivity APIs are now the Dolby.io Communications APIs Learn More >
X

MediaDeviceService

MediaDeviceService allows the application to manage media devices that are used during conferences. The service allows the application to:

  • Enumerate audio and video devices.
  • Select audio and video input devices.
  • Select output devices.
  • Check the selected comfort noise level for output devices in Dolby Voice conferences and change the comfort noise level. These functions are only available for the Desktop SDK users.

Methods

enumerateAudioDevices

enumerateAudioDevices(type: string): Promise‹any[]›

Enumerates audio devices.

Parameters:

NameTypeDefaultDescription
typestring"input"The device type, either input or output.

Returns: Promise‹any[]›


enumerateVideoDevices

enumerateVideoDevices(type: string): Promise‹any[]›

Enumerates video devices.

Parameters:

NameTypeDefaultDescription
typestring"input"The device type, either input or output.

Returns: Promise‹any[]›


getComfortNoiseLevel

getComfortNoiseLevel(): Promise<any>

Retrieves the comfort noise level setting for output devices in Dolby Voice conferences. This API is only available for the Desktop SDK users.

Returns: Promise<any>

The comfort noise level.


selectAudioInput

selectAudioInput(deviceId: string): Promise‹any›

Enables the selection of an audio device input.

Parameters:

NameTypeDescription
deviceIdstringThe device ID.

Returns: Promise‹any›


selectAudioOutput

selectAudioOutput(deviceId: string): Promise‹any›

Enables the selection of an audio device output.

Parameters:

NameTypeDescription
deviceIdstringThe device ID.

Returns: Promise‹any›


selectVideoInput

selectVideoInput(deviceId: string, constraints: any): Promise‹any›

Enables the selection of a video device input.

Parameters:

NameTypeDescription
deviceIdstringThe device ID.-
constraintsanyThe MediaTrackConstraints.

Returns: Promise‹any›


setComfortNoiseLevel

setComfortNoiseLevel(level: ComfortNoiseLevel): Promise<any>

Configures the comfort noise level for output devices in Dolby Voice conferences. This API is only available for the Desktop SDK users.

Parameters:

NameTypeDescription
levelComfortNoiseLevelThe selected comfort noise level.

Returns: Promise<any>


Did this page help you?