MediaStreamNative class
- Inheritance
-
- Object
- MediaStream
- MediaStreamNative
Constructors
- MediaStreamNative(String streamId, String ownerTag)
- MediaStreamNative.fromMap(Map map)
-
factory
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 theMediaStreamTrack.ended
state. Once every track has ended, the stream's active property becomes false.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- onAddTrack ↔ dynamic Function(MediaStreamTrack track)?
-
The event type of this event handler is addtrack.
getter/setter pairinherited
- onRemoveTrack ↔ dynamic Function(MediaStreamTrack track)?
-
The event type of this event handler is removetrack.
getter/setter pairinherited
- ownerTag → String
-
no setterinherited
- 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.
override
-
clone(
) → MediaStream -
Clones the given MediaStream and all its tracks.
override
-
dispose(
) → Future< Null> -
override
-
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'.
override
-
getMediaTracks(
) → Future< void> -
override
-
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.
inherited
-
getTracks(
) → List< MediaStreamTrack> -
Returns a List MediaStreamTrack objects representing all the tracks in this stream.
override
-
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'.
override
-
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.
override
-
setMediaTracks(
List audioTracks, List videoTracks) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited