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.

@DocsEditable(), @DomName('MediaStream.addtrackEvent')
const EventStreamProvider<Event>('addtrack')
endedEvent EventStreamProvider<Event>

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

@DocsEditable(), @DomName('MediaStream.endedEvent')
const EventStreamProvider<Event>('ended')
removeTrackEvent EventStreamProvider<Event>

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

@DocsEditable(), @DomName('MediaStream.removetrackEvent')
const EventStreamProvider<Event>('removetrack')

Static Properties

instanceRuntimeType Type

@Deprecated("Internal Use Only"), 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

@DocsEditable(), @DomName('MediaStream.active'), @Experimental(), read-only
id String

@DocsEditable(), @DomName('MediaStream.id'), read-only
onAddTrack Stream<Event>

Stream of addtrack events handled by this MediaStream.

@DocsEditable(), @DomName('MediaStream.onaddtrack'), read-only
onEnded Stream<Event>

Stream of ended events handled by this MediaStream.

@DocsEditable(), @DomName('MediaStream.onended'), read-only
onRemoveTrack Stream<Event>

Stream of removetrack events handled by this MediaStream.

@DocsEditable(), @DomName('MediaStream.onremovetrack'), read-only
hashCode int

read-only, inherited
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
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addTrack(MediaStreamTrack track) → void

@DocsEditable(), @DomName('MediaStream.addTrack')
clone() MediaStream

@DocsEditable(), @DomName('MediaStream.clone'), @Experimental()
getAudioTracks() List<MediaStreamTrack>

@DocsEditable(), @DomName('MediaStream.getAudioTracks')
getTrackById(String trackId) MediaStreamTrack

@DocsEditable(), @DomName('MediaStream.getTrackById')
getTracks() List<MediaStreamTrack>

@DocsEditable(), @DomName('MediaStream.getTracks'), @Experimental()
getVideoTracks() List<MediaStreamTrack>

@DocsEditable(), @DomName('MediaStream.getVideoTracks')
removeTrack(MediaStreamTrack track) → void

@DocsEditable(), @DomName('MediaStream.removeTrack')
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void

inherited
dispatchEvent(Event event) bool

@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
noSuchMethod(Invocation invocation) → dynamic

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

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

inherited
toString() String

Returns the result of the JavaScript objects toString method.

inherited