MediaStreamTrack class

Inheritance
Implemented by
Annotations
  • @DocsEditable()
  • @DomName('MediaStreamTrack')
  • @SupportedBrowser(SupportedBrowser.CHROME)
  • @Experimental()

Constants

endedEventEventStreamProvider<Event>
@DocsEditable(), @DomName('MediaStreamTrack.endedEvent')

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

const EventStreamProvider<Event>('ended')
muteEventEventStreamProvider<Event>
@DocsEditable(), @DomName('MediaStreamTrack.muteEvent')

Static factory designed to expose mute events to event handlers that are not necessarily instances of MediaStreamTrack.

const EventStreamProvider<Event>('mute')
unmuteEventEventStreamProvider<Event>
@DocsEditable(), @DomName('MediaStreamTrack.unmuteEvent')

Static factory designed to expose unmute events to event handlers that are not necessarily instances of MediaStreamTrack.

const EventStreamProvider<Event>('unmute')

Static Properties

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

Static Methods

getSources() → Future<List<SourceInfo>>

Constructors

MediaStreamTrack.internal_()

Properties

enabledbool
@DocsEditable(), @DomName('MediaStreamTrack.enabled'), read / write
idString
@DocsEditable(), @DomName('MediaStreamTrack.id'), read-only
kindString
@DocsEditable(), @DomName('MediaStreamTrack.kind'), read-only
labelString
@DocsEditable(), @DomName('MediaStreamTrack.label'), read-only
mutedbool
@DocsEditable(), @DomName('MediaStreamTrack.muted'), @Experimental(), read-only
onEndedStream<Event>
@DocsEditable(), @DomName('MediaStreamTrack.onended'), read-only

Stream of ended events handled by this MediaStreamTrack.

onMuteStream<Event>
@DocsEditable(), @DomName('MediaStreamTrack.onmute'), read-only

Stream of mute events handled by this MediaStreamTrack.

onUnmuteStream<Event>
@DocsEditable(), @DomName('MediaStreamTrack.onunmute'), read-only

Stream of unmute events handled by this MediaStreamTrack.

readyStateString
@DocsEditable(), @DomName('MediaStreamTrack.readyState'), read-only
remotebool
@DocsEditable(), @DomName('MediaStreamTrack.remote'), @Experimental(), read-only
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

clone() → MediaStreamTrack
@DocsEditable(), @DomName('MediaStreamTrack.clone'), @Experimental()
stop() → void
@DocsEditable(), @DomName('MediaStreamTrack.stop'), @Experimental()
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/MediaStreamTrack-class.html