Table of Contents

Property SelectMediaDeviceHandler

Namespace
DotNetBrowser.Media
Assembly
DotNetBrowser.dll

SelectMediaDeviceHandler

Gets or sets a handler that is used when the web page asks which media input device should be used.

IHandler<SelectMediaDeviceParameters, SelectMediaDeviceResponse> SelectMediaDeviceHandler { get; set; }

Property Value

IHandler<SelectMediaDeviceParameters, SelectMediaDeviceResponse>

Remarks

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.

Exceptions

ObjectDisposedException

The IMediaDevices has already been disposed.