InputDeviceInfo extension type

The InputDeviceInfo interface of the Media Capture and Streams API gives access to the capabilities of the input device that it represents.

InputDeviceInfo objects are returned by MediaDevices.enumerateDevices if the returned device is an audio or video input device.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

deviceId String
The deviceId read-only property of the MediaDeviceInfo interface returns a string that is an identifier for the represented device and is persisted across sessions.
no setterinherited
groupId String
The groupId read-only property of the MediaDeviceInfo interface returns a string that is a group identifier.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
kind MediaDeviceKind
The kind read-only property of the MediaDeviceInfo interface returns an enumerated value, that is either "videoinput", "audioinput" or "audiooutput".
no setterinherited
label String
The label read-only property of the MediaDeviceInfo interface returns a string describing this device (for example "External USB Webcam").
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCapabilities() MediaTrackCapabilities
The getCapabilities() method of the InputDeviceInfo interface returns a MediaTrackCapabilities object describing the primary audio or video track of the device's MediaStream.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() JSObject
The toJSON() method of the MediaDeviceInfo interface is a ; it returns a JSON representation of the MediaDeviceInfo object.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited