Skip to content

getUserMediaEx(constraints, callConfig)

Retrieves the media stream from the local media device and returns it to the application.
This function is similar to MediaDevices.getUserMedia().

Parameters

Name Description
constraints (Required) An object specifying the details of the media stream. More info
callConfig (Optional) An opaque object specifying the call configuration object. The object can be retrieved through getCallConfig(). If undefined, getUserMediaEx() is reduced to getUserMedia().

Return Values

Type Description
Promise Resolves to a MediaStream or rejects with a related DOMException

Code Example

let callConfig = HorizonWebRtcRedirectionAPI.getCallConfig(configIndex);
let _stream = await HorizonWebRtcRedirectionAPI.getUserMediaEx(_constraints, callConfig);