Not documented.

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

Constants

EventStreamProvider<Event> addTrackEvent = const EventStreamProvider<Event>('addtrack')
const

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

EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended')
const

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

EventStreamProvider<Event> removeTrackEvent = const EventStreamProvider<Event>('removetrack')
const

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

Static Properties

supported bool
read-only

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

Properties

ended bool
read-only

id String
read-only

label String
read-only

on Events
read-only, inherited

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

onAddTrack Stream<Event>
read-only

Stream of addtrack events handled by this MediaStream.

onEnded Stream<Event>
read-only

Stream of ended events handled by this MediaStream.

onRemoveTrack Stream<Event>
read-only

Stream of removetrack events handled by this MediaStream.

Constructors

MediaStream([stream_OR_tracks])

Methods

addEventListener(String type, dynamic listener(Event event), [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>

removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited

removeTrack(MediaStreamTrack track) → void

stop() → void