IMediaDevices.SelectMediaDeviceHandler Property |
Namespace: DotNetBrowser.Media
IHandler<SelectMediaDeviceParameters, SelectMediaDeviceResponse> SelectMediaDeviceHandler { get; set; }
Exception | Condition |
---|---|
ObjectDisposedException | The IMediaDevices has already been disposed. |
Use the Select(MediaDevice) to select a specific media input device.
If there are no media input devices of the requested type (e.g. there are no video input devices), then the callback will not be invoked).
Important: the engine will be blocked until you return control from the callback.
If the callback throws an exception or the returned media device is not the one from the Devices, the system default media input device will be used.