MediaStream class
- Inheritance
- Object
- EventTarget
- MediaStream
- Annotations
- @SupportedBrowser.new(SupportedBrowser.CHROME)
- @Native.new("MediaStream")
Constructors
- MediaStream([dynamicstream_OR_tracks])
- factory
Properties
- active→bool?
- no setter
- hashCode→int
- The hash code for this object.no setterinherited
- id→String?
- no setter
- on→Events
- This is an ease-of-use accessor for event streams which should only beused when an explicit accessor is not available.no setterinherited
- onAddTrack→Stream<
Event> - Stream of
addtrackevents handled by thisMediaStream.no setter - onRemoveTrack→Stream<
Event> - Stream of
removetrackevents handled by thisMediaStream.no setter - runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
Methods
- addEventListener(
Stringtype,EventListener?listener, [bool?useCapture])→ void - inherited
- addTrack(
MediaStreamTracktrack)→ void - clone(
)→MediaStream - dispatchEvent(
Eventevent)→bool - inherited
- getAudioTracks(
)→List< MediaStreamTrack> - getTrackById(
StringtrackId)→MediaStreamTrack? - getTracks(
)→List< MediaStreamTrack> - getVideoTracks(
)→List< MediaStreamTrack> - noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- removeEventListener(
Stringtype,EventListener?listener, [bool?useCapture])→ void - inherited
- removeTrack(
MediaStreamTracktrack)→ void - toString(
)→String - A string representation of this object.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited
Static Properties
Constants
- addTrackEvent→ constEventStreamProvider<
Event> - Static factory designed to expose
addtrackevents to eventhandlers that are not necessarily instances ofMediaStream. - removeTrackEvent→ constEventStreamProvider<
Event> - Static factory designed to expose
removetrackevents to eventhandlers that are not necessarily instances ofMediaStream.