MediaStream class

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

Constants

addTrackEventEventStreamProvider<Event>
@DocsEditable(), @DomName('MediaStream.addtrackEvent')

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

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

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

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

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

const EventStreamProvider<Event>('removetrack')

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only
supportedbool
read-only

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

Constructors

MediaStream([stream_OR_tracks ])
factory
MediaStream.internal_()

Properties

activebool
@DocsEditable(), @DomName('MediaStream.active'), @Experimental(), read-only
idString
@DocsEditable(), @DomName('MediaStream.id'), read-only
onAddTrackStream<Event>
@DocsEditable(), @DomName('MediaStream.onaddtrack'), read-only

Stream of addtrack events handled by this MediaStream.

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

Stream of ended events handled by this MediaStream.

onRemoveTrackStream<Event>
@DocsEditable(), @DomName('MediaStream.onremovetrack'), read-only

Stream of removetrack events handled by this MediaStream.

hashCodeint
read-only, inherited
onEvents
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.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

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
inherited

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

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

Returns the result of the JavaScript objects toString method.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/MediaStream-class.html