Methods


getInputs( [ type ] ) → {Promise.<Array.<InputDeviceInfo>>}

Description

Returns a promise fulfilled with an array of InputDeviceInfo objects detailing the currently available inputs.

Parameters
Name Type Attributes Description
type string <optional>

The type ("audio" or "video") of input devices to return. If no type is specified, all input devices are returned.

Returns
Details

getSupportedConstraints() → {MediaTrackSupportedConstraints}

Description

Returns an object whose properties identify which constraints are supported by the current environment.

Returns
Details

mix( parent, ...mixins ) → {Class}

Description

This function mixes into the parent class the properties of specified objects. The mixins must be objects (and not classes).

Parameters
Name Type Attributes Description
parent Class

The parent class (superclass)

mixins Object <repeatable>

Objects whose properties should be mixed into the parent class.

Returns
Details