MediaStream class
- Inheritance
- Object
- JSObject
- DartHtmlDomObject
- EventTarget
- MediaStream
- Annotations
- @DomName('MediaStream')
- @SupportedBrowser(SupportedBrowser.CHROME)
- @Experimental()
Constants
- addTrackEvent → EventStreamProvider<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') - endedEvent → EventStreamProvider<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') - removeTrackEvent → EventStreamProvider<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
- instanceRuntimeType → Type @Deprecated("Internal Use Only"), read-only
- supported → bool read-only
-
Checks if the MediaStream APIs are supported on the current platform.
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> @DocsEditable(), @DomName('MediaStream.onaddtrack'), read-only
-
Stream of
addtrack
events handled by thisMediaStream
. - onEnded → Stream<Event> @DocsEditable(), @DomName('MediaStream.onended'), read-only
-
Stream of
ended
events handled by thisMediaStream
. - onRemoveTrack → Stream<Event> @DocsEditable(), @DomName('MediaStream.onremovetrack'), read-only
-
Stream of
removetrack
events handled by thisMediaStream
. - hashCode → int read-only, inherited
- 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.
- runtimeType → Type 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