Click or drag to resize

IMediaDevicesSelectMediaDeviceHandler Property

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

Namespace:  DotNetBrowser.Media
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.16.0
Syntax
C#
IHandler<SelectMediaDeviceParameters, SelectMediaDeviceResponse> SelectMediaDeviceHandler { get; set; }

Property Value

Type: IHandlerSelectMediaDeviceParameters, SelectMediaDeviceResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IMediaDevices has already been disposed.
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.

See Also