MediaStream class

A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack.

MDN Reference

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

MediaStream.$1()
factory
MediaStream.$2(MediaStream stream)
factory
MediaStream.$3(List<MediaStreamTrack> tracks)
factory

Properties

active bool

Available on MediaStream, provided by the MediaStream$Typings extension

MDN Reference
no setter
addEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
addEventListener → ({void Function<K$ extends Event>(MediaStreamEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on MediaStream, provided by the MediaStream$Typings extension

Overload accessor: $1, $2
no setter
addTrack ↔ void Function(MediaStreamTrack)

Available on MediaStream, provided by the MediaStream$Typings extension

getter/setter pair
clone MediaStream Function()

Available on MediaStream, provided by the MediaStream$Typings extension

getter/setter pair
dispatchEvent bool Function(Event)

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
getAudioTracks List<MediaStreamTrack> Function()

Available on MediaStream, provided by the MediaStream$Typings extension

getter/setter pair
getTrackById MediaStreamTrack? Function(String)

Available on MediaStream, provided by the MediaStream$Typings extension

getter/setter pair
getTracks List<MediaStreamTrack> Function()

Available on MediaStream, provided by the MediaStream$Typings extension

getter/setter pair
getVideoTracks List<MediaStreamTrack> Function()

Available on MediaStream, provided by the MediaStream$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String

Available on MediaStream, provided by the MediaStream$Typings extension

MDN Reference
no setter
onaddtrack ↔ dynamic Function(MediaStreamTrackEvent)?

Available on MediaStream, provided by the MediaStream$Typings extension

MDN Reference
getter/setter pair
onremovetrack ↔ dynamic Function(MediaStreamTrackEvent)?

Available on MediaStream, provided by the MediaStream$Typings extension

MDN Reference
getter/setter pair
removeEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
removeEventListener → ({void Function<K$ extends Event>(MediaStreamEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on MediaStream, provided by the MediaStream$Typings extension

Overload accessor: $1, $2
no setter
removeTrack ↔ void Function(MediaStreamTrack)

Available on MediaStream, provided by the MediaStream$Typings extension

getter/setter pair
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