MediaStreamTrackNative class

Inheritance

Constructors

MediaStreamTrackNative(String _trackId, String _label, String _kind, bool _enabled)
MediaStreamTrackNative.fromMap(Map map)
factory

Properties

enabled bool
Returns the enable state of MediaStreamTrack
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
id String
Returns the unique identifier of the track
no setteroverride
kind String
Returns the string 'audio' if this object represents an audio track or 'video' if this object represents a video track.
no setteroverride
label String
This may label audio and video sources (e.g., "Internal microphone" or "External USB Webcam").
no setteroverride
muted bool
Returns true if the track is muted, and false otherwise.
no setteroverride
onEnded StreamTrackCallback?
Callback foronended event
getter/setter pairinherited
onMute StreamTrackCallback?
Callback for onmute event
getter/setter pairinherited
onUnMute StreamTrackCallback?
Callback for unmute event
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

adaptRes(int width, int height) Future<void>
inherited
applyConstraints([Map<String, dynamic>? constraints]) Future<void>
Applies a set of constraints to the track.
override
captureFrame() Future<ByteBuffer>
override
dispose() Future<void>
override
enableSpeakerphone(bool enable) → void
override
getConstraints() Map<String, dynamic>
Returns a map containing the set of constraints most recently established for the track using a prior call to applyConstraints().
inherited
getSettings() Map<String, dynamic>
inherited
hasTorch() Future<bool>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setTorch(bool torch) Future<void>
override
stop() Future<void>
override
switchCamera() Future<bool>
Throws error if switching camera failed
override
toString() String
A string representation of this object.
inherited

Operators

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