Inheritance
Annotations
  • DomName('MediaStream')
  • SupportedBrowser(SupportedBrowser.CHROME)
  • Experimental()

Constants

addTrackEvent EventStreamProvider<Event>

Static factory designed to expose addtrack events to event handlers that are not necessarily instances of MediaStream.

const EventStreamProvider<Event>('addtrack')
endedEvent EventStreamProvider<Event>

Static factory designed to expose ended events to event handlers that are not necessarily instances of MediaStream.

const EventStreamProvider<Event>('ended')
removeTrackEvent EventStreamProvider<Event>

Static factory designed to expose removetrack events to event handlers that are not necessarily instances of MediaStream.

const EventStreamProvider<Event>('removetrack')

Static Properties

instanceRuntimeType Type

read-only
supported bool

Checks if the MediaStream APIs are supported on the current platform.

read-only

Constructors

MediaStream([stream_OR_tracks ])

factory
MediaStream.internal_()

Properties

active bool

read-only
ended bool

read-only
hashCode int

read-only, inherited
id String

read-only
label String

read-only
on Events

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

read-only, inherited
onAddTrack Stream<Event>

Stream of addtrack events handled by this MediaStream.

read-only
onEnded Stream<Event>

Stream of ended events handled by this MediaStream.

read-only
onRemoveTrack Stream<Event>

Stream of removetrack events handled by this MediaStream.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addEventListener(String type, EventListener listener, [ bool useCapture ]) → void

inherited
addTrack(MediaStreamTrack track) → void

clone() MediaStream

dispatchEvent(Event event) bool

inherited
getAudioTracks() List<MediaStreamTrack>

getTrackById(String trackId) MediaStreamTrack

getTracks() List<MediaStreamTrack>

getVideoTracks() List<MediaStreamTrack>

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void

inherited
removeTrack(MediaStreamTrack track) → void

stop() → void

toString() String

Returns the result of the JavaScript objects toString method.

inherited