Skip to content

getDisplayMedia(constraints)

Captures the contents of the remote desktop as a media stream and returns the stream to the application.
This function is similar to MediaDevices.getDisplayMedia().

Parameters

Name Description
constraints (Required) An object that specifies details about the media stream. More info

Return Values

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

Code Example

let _stream = await HorizonWebRtcRedirectionAPI.getDisplayMedia(_constraints);