public interface MediaStream extends EventTarget
Modifier and Type | Method and Description |
---|---|
EventRemover |
addEventListener(String type,
EventListener listener)
Register an event handler of a specific event type on the
EventTarget . |
EventRemover |
addEventListener(String type,
EventListener listener,
boolean useCapture)
Register an event handler of a specific event type on the
EventTarget . |
boolean |
dispatchEvent(Event event)
Dispatch an event to this
EventTarget . |
MediaStreamTrackList |
getAudioTracks() |
String |
getLabel() |
EventListener |
getOnended() |
int |
getReadyState() |
MediaStreamTrackList |
getVideoTracks() |
void |
removeEventListener(String type,
EventListener listener)
Removes an event listener from the
EventTarget . |
void |
removeEventListener(String type,
EventListener listener,
boolean useCapture)
Removes an event listener from the
EventTarget . |
void |
setOnended(EventListener arg) |
static final int ENDED
static final int LIVE
MediaStreamTrackList getAudioTracks()
String getLabel()
EventListener getOnended()
void setOnended(EventListener arg)
int getReadyState()
MediaStreamTrackList getVideoTracks()
EventRemover addEventListener(String type, EventListener listener)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
EventRemover addEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
boolean dispatchEvent(Event event)
EventTarget
EventTarget
.dispatchEvent
in interface EventTarget
void removeEventListener(String type, EventListener listener)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
void removeEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
Copyright © 2016. All rights reserved.