Table of Contents

Class InputDeviceInfo

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The InputDeviceInfo interface of the {{domxref("Media Capture and Streams API", "", "", "nocode")}} gives access to the capabilities of the input device that it represents.

[Value("InputDeviceInfo")]
public class InputDeviceInfo : MediaDeviceInfo
Inheritance
InputDeviceInfo
Inherited Members

Remarks

InputDeviceInfo objects are returned by EnumerateDevices() if the returned device is an audio or video input device.

See also on MDN

Constructors

InputDeviceInfo()

public InputDeviceInfo()

Methods

GetCapabilities()

The getCapabilities() method of the InputDeviceInfo interface returns a MediaTrackCapabilities object describing the primary audio or video track of the device's MediaStream.

[Value("getCapabilities")]
public MediaTrackCapabilities GetCapabilities()

Returns

MediaTrackCapabilities

A MediaTrackCapabilities object which specifies the value or range of values which are supported for each of the user agent's supported constrainable properties. It is required to return identical information as returned by calling getCapabilities() on the first MediaStreamTrack of the same kind as this device (video or audio) in the MediaStream returned by getUserMedia({ deviceId: deviceInfo.deviceId }). See GetCapabilities() for a list of commonly supported properties and their types.

NOTE
If the user has not granted permission to access the input device an empty object will be returned.

Remarks

-GetCapabilities(), which also return a MediaTrackCapabilities object.

See also on MDN