MediaDevices class abstract

Constructors

MediaDevices()

Properties

hashCode int
The hash code for this object.
no setterinherited
ondevicechange ↔ (dynamic Function(dynamic event)?)
A function you provide which accepts as input a Event object describing the devicechange event that occurred. There is no information about the change included in the event object; to get the updated list of devices, you'll have to use enumerateDevices().
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

enumerateDevices() Future<List<MediaDeviceInfo>>
Returns a List of MediaDeviceInfo describing the devices.
getDisplayMedia(Map<String, dynamic> mediaConstraints) Future<MediaStream>
Calling this method will prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream. The resulting stream can then be recorded using the MediaStream Recording API or transmitted as part of a WebRTC session.
getSources() Future<List>
getSupportedConstraints() MediaTrackSupportedConstraints
Returns MediaTrackSupportedConstraints recognized by a User Agent for controlling the Capabilities of a MediaStreamTrack object.
getUserMedia(Map<String, dynamic> mediaConstraints) Future<MediaStream>
Calling this method will prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream. The resulting stream can then be recorded using the MediaStream Recording API or transmitted as part of a WebRTC session.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectAudioOutput([AudioOutputOptions? options]) Future<MediaDeviceInfo>
Prompts the user to select a specific audio output device.
toString() String
A string representation of this object.
inherited

Operators

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