public interface MediaControl
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentSource()
Returns the URL of the media file currently selected in the browser window.
|
int |
getDuration()
Returns the length of the currently selected media file (in milliseconds).
|
double |
getPlaybackRate()
Returns the speed of the media playback.
|
int |
getPlaybackTime()
Returns the current playback position in the media file (in milliseconds).
|
java.lang.String[] |
getSources()
Returns a collection of all media file source URLs.
|
double |
getVolume()
Returns the volume used when playing this media file.
|
boolean |
hasAutoPlay()
Indicates whether this media file starts playing as soon as it loads.
|
boolean |
hasPlaybackControls()
Indicates whether this media player should display playback controls.
|
boolean |
isMuted()
Indicates whether the media volume is muted.
|
boolean |
isPlaying()
Returns whether this media is currently playing.
|
boolean |
isPlayInLoop()
Indicates whether this media file should start playing again from the beginning as soon as it finishes playing.
|
void |
pause()
Pauses the media playback.
|
void |
play()
Plays the media file.
|
void |
reload()
Reloads the media file.
|
boolean hasAutoPlay() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionboolean hasPlaybackControls() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionjava.lang.String getCurrentSource() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionboolean isPlayInLoop() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionboolean isMuted() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executiondouble getPlaybackRate() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionboolean isPlaying() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executiondouble getVolume() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionint getPlaybackTime() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionint getDuration() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionjava.lang.String[] getSources() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionvoid reload() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionvoid play() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during executionvoid pause() throws GeneralLeanFtException
GeneralLeanFtException
- if error occurs during execution