MediaStream class abstract

Constructors

MediaStream(String _id, String _ownerTag)

Properties

active bool?
The active attribute return true if this MediaStream is active and false otherwise. MediaStream is considered active if at least one of its MediaStreamTracks is not in the MediaStreamTrack.ended state. Once every track has ended, the stream's active property becomes false.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
no setter
onAddTrack ↔ dynamic Function(MediaStreamTrack track)?
The event type of this event handler is addtrack.
getter/setter pair
onRemoveTrack ↔ dynamic Function(MediaStreamTrack track)?
The event type of this event handler is removetrack.
getter/setter pair
ownerTag String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addTrack(MediaStreamTrack track, {bool addToNative = true}) Future<void>
Adds the given MediaStreamTrack to this MediaStream.
clone() Future<MediaStream>
Clones the given MediaStream and all its tracks.
dispose() Future<void>
getAudioTracks() List<MediaStreamTrack>
Returns a List MediaStreamTrack objects representing the audio tracks in this stream. The list represents a snapshot of all the MediaStreamTrack objects in this stream's track set whose kind is equal to 'audio'.
getMediaTracks() Future<void>
getTrackById(String trackId) MediaStreamTrack?
Returns either a MediaStreamTrack object from this stream's track set whose id is equal to trackId, or StateError, if no such track exists.
getTracks() List<MediaStreamTrack>
Returns a List MediaStreamTrack objects representing all the tracks in this stream.
getVideoTracks() List<MediaStreamTrack>
Returns a List MediaStreamTrack objects representing the video tracks in this stream. The list represents a snapshot of all the MediaStreamTrack objects in this stream's track set whose kind is equal to 'video'.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeTrack(MediaStreamTrack track, {bool removeFromNative = true}) Future<void>
Removes the given MediaStreamTrack object from this MediaStream.
toString() String
A string representation of this object.
inherited

Operators

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