2020 API AWARDS WINNER - BEST IN MEDIA APIs LEARN MORE

MediaDeviceService

MediaDeviceService allows the application to manage the devices used during the conference. It allows the application to:

Methods

enumerateAudioDevices

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

Enumerates audio devices.

Parameters:

NameTypeDefaultDescription
typestring"input"input/output devices

Returns: Promise‹any[]›


enumerateVideoDevices

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

Enumerates video devices.

Parameters:

NameTypeDefaultDescription
typestring"input"input/output devices

Returns: Promise‹any[]›


selectAudioInput

selectAudioInput(deviceId: string): Promise‹any›

Enables the selection of an audio device input.

Parameters:

NameTypeDescription
deviceIdstring

Returns: Promise‹any›


selectAudioOutput

selectAudioOutput(deviceId: string): Promise‹any›

Enables the selection of an audio device output.

Parameters:

NameTypeDescription
deviceIdstring

Returns: Promise‹any›


selectVideoInput

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

Enables the selection of a video device input.

Parameters:

NameTypeDescription
deviceIdstring-
constraintsanyMediaTrackConstraints

Returns: Promise‹any›