public interface MediaController 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 evt)
Dispatch an event to this
EventTarget . |
TimeRanges |
getBuffered() |
double |
getCurrentTime() |
double |
getDefaultPlaybackRate() |
double |
getDuration() |
double |
getPlaybackRate() |
TimeRanges |
getPlayed() |
TimeRanges |
getSeekable() |
double |
getVolume() |
boolean |
isMuted() |
boolean |
isPaused() |
void |
pause() |
void |
play() |
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 |
setCurrentTime(double arg) |
void |
setDefaultPlaybackRate(double arg) |
void |
setMuted(boolean arg) |
void |
setPlaybackRate(double arg) |
void |
setVolume(double arg) |
TimeRanges getBuffered()
double getCurrentTime()
void setCurrentTime(double arg)
double getDefaultPlaybackRate()
void setDefaultPlaybackRate(double arg)
double getDuration()
boolean isMuted()
void setMuted(boolean arg)
boolean isPaused()
double getPlaybackRate()
void setPlaybackRate(double arg)
TimeRanges getPlayed()
TimeRanges getSeekable()
double getVolume()
void setVolume(double arg)
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 evt)
EventTarget
EventTarget
.dispatchEvent
in interface EventTarget
void pause()
void play()
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 © 2018. All rights reserved.