MediaStream class
Media stream containing multiple tracks
Constructors
-
MediaStream([List<
MediaStreamTrack> ? tracks]) - Create a new media stream
-
MediaStream.withId(String id, [List<
MediaStreamTrack> ? tracks]) - Create from existing stream with ID
Properties
Methods
-
addTrack(
MediaStreamTrack track) → void - Add a track to the stream
-
clone(
) → MediaStream - Clone this stream
-
getAudioTracks(
) → List< MediaStreamTrack> - Get audio tracks only
-
getTrackById(
String id) → MediaStreamTrack? - Get track by ID
-
getTracks(
) → List< MediaStreamTrack> - Get all tracks
-
getVideoTracks(
) → List< MediaStreamTrack> - Get video tracks only
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeTrack(
MediaStreamTrack track) → bool - Remove a track from the stream
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited