Helper class

Constructors

Helper.new()

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
platformIsDarwin bool
no setter
platformSupportGPUPixel bool
no setter

Static Methods

clearAndroidCommunicationDevice() Future<void>
After Android app finishes a session, on audio focus loss, clear the active communication device.
disableVirtualBackground() Future<void>
enableVirtualBackground({required Uint8List backgroundImage, double thresholdConfidence = 0.7}) Future<void>
ensureAudioSession() Future<void>
Ensure audio session for iOS only
enumerateDevices(String type) Future<List<MediaDeviceInfo>>
isGpuSupported() Future<bool>
openCamera(Map<String, dynamic> mediaConstraints) Future<MediaStream>
To select a a specific camera, you need to set constraints eg. var constraints = { 'audio': true, 'video': { 'deviceId': Helper.cameras0.deviceId, } };
selectAudioInput(String deviceId) Future<void>
Set audio input device for Flutter native Note: The usual practice in flutter web is to use deviceId as the getUserMedia parameter to get a new audio track and replace it with the audio track in the original rtpsender.
selectAudioOutput(String deviceId) Future<void>
Used to select a specific audio output device.
setAndroidAudioConfiguration(AndroidAudioConfiguration androidAudioConfiguration) Future<void>
Set the audio configuration to for Android. Must be set before initiating a WebRTC session and cannot be changed mid session.
setAppleAudioConfiguration(AppleAudioConfiguration appleAudioConfiguration) Future<void>
Set the audio configuration for iOS
setAppleAudioIOMode(AppleAudioIOMode mode, {bool preferSpeakerOutput = false}) Future<void>
Set the audio configuration for iOS
setBigEyeValue(double value) Future<void>
setBlusherValue(double value) Future<void>
setLipstickValue(double value) Future<void>
setMicrophoneMute(bool mute, MediaStreamTrack track) Future<void>
Set the microphone mute/unmute for Flutter native
setSmoothValue(double value) Future<void>
setSpeakerphoneOn(bool enable) Future<void>
Enable or disable speakerphone for iOS/Android only
setSpeakerphoneOnButPreferBluetooth() Future<void>
Enable speakerphone, but use bluetooth if audio output device available for iOS/Android only
setThinFaceValue(double value) Future<void>
setVolume(double volume, MediaStreamTrack track) Future<void>
Set the volume for Flutter native
setWhiteValue(double value) Future<void>
setZoom(MediaStreamTrack videoTrack, double zoomLevel) Future<void>
switchCamera(MediaStreamTrack track, [String? deviceId, MediaStream? stream]) Future<bool>
For web implementation, make sure to pass the target deviceId