DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.MediaStreamDeviceRequest Class Reference

Represents a request for media streams (audio/video). More...

Public Member Functions

MediaStreamDevice GetDefaultMediaStreamDevice ()
 Returns default media stream device of the requested type or null when there's no media stream devices available. More...
 
void SetDefaultMediaStreamDevice (MediaStreamDevice device)
 Updates default media stream device of the requested type. The device value must be the one from the list of available media stream devices you can obtain via the GetMediaStreamDevices() method. More...
 

Properties

MediaStreamType Type [get]
 Gets type of the requested media stream. More...
 
List< MediaStreamDeviceDevices [get]
 Gets a list of available media stream devices of the requested type or empty collection if there's no media streams devices available. More...
 

Detailed Description

Represents a request for media streams (audio/video).

Member Function Documentation

MediaStreamDevice DotNetBrowser.MediaStreamDeviceRequest.GetDefaultMediaStreamDevice ( )

Returns default media stream device of the requested type or null when there's no media stream devices available.

Returns
default media stream device of the requested type or null when there's no media stream devices available.
void DotNetBrowser.MediaStreamDeviceRequest.SetDefaultMediaStreamDevice ( MediaStreamDevice  device)

Updates default media stream device of the requested type. The device value must be the one from the list of available media stream devices you can obtain via the GetMediaStreamDevices() method.

Parameters
devicedefault media stream device. Cannot be null. It must be the one from the list of available media stream devices you can obtain via the GetMediaStreamDevices() method.
Exceptions
ArgumentExceptionwhen device is null, or its media type doesn't match the requested media type that can be obtained via the GetMediaStreamType() method, or the device isn't in the list of available devices.

Property Documentation

List<MediaStreamDevice> DotNetBrowser.MediaStreamDeviceRequest.Devices
get

Gets a list of available media stream devices of the requested type or empty collection if there's no media streams devices available.

MediaStreamType DotNetBrowser.MediaStreamDeviceRequest.Type
get

Gets type of the requested media stream.