Helper class

Constructors

Helper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

audiooutputs Future<List<MediaDeviceInfo>>
Return the available audiooutputs
no setter
cameras Future<List<MediaDeviceInfo>>
Return the available cameras
no setter

Static Methods

enumerateDevices(String type) Future<List<MediaDeviceInfo>>
openCamera(Map<String, dynamic> mediaConstraints) Future<MediaStream>
To select a a specific camera, you need to set constraints eg. constraints = { 'audio': true, 'video': { 'deviceId': Helper.cameras0.deviceId, } };
setMicrophoneMute(bool mute, MediaStreamTrack track) → void
setVolume(double volume, MediaStreamTrack track) Future<void>
switchCamera(MediaStreamTrack track, [String? deviceId, MediaStream? stream]) Future<bool>
For web implementation, make sure to pass the target deviceId