|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface COBRAPlayer
COBRAPlayer interface
| Method Summary | |
|---|---|
void |
fullScreen()
Toggles the full screen function of the player. |
long |
getLength()
|
float |
getPosition()
|
long |
getTime()
|
java.lang.Object |
getUIComponent()
The visual component needs to be downcasted to specific GUI library. |
int |
getVolume()
|
boolean |
hasVisualComponent()
|
boolean |
isPlaying()
|
void |
mute()
Toggles the mute function of the player |
void |
pause()
Pauses the player |
void |
setPosition(float position)
Sets the current position in the media between 0 and 1 (%) |
void |
setTime(long time)
Sets the current time in the media in milliseconds |
void |
setVolume(int volume)
Sets the current volume in a scale between 0 and 100 |
void |
start()
Starts the player |
void |
stop()
Stops the player |
| Method Detail |
|---|
void start()
throws java.lang.Exception
Starts the player
java.lang.Exception
void stop()
throws java.lang.Exception
Stops the player
java.lang.Exception
void pause()
throws java.lang.Exception
Pauses the player
java.lang.Exception
java.lang.Object getUIComponent()
throws java.lang.Exception
java.lang.Exception - if there is no available visual componentboolean hasVisualComponent()
void fullScreen()
throws java.lang.Exception
java.lang.Exception
long getLength()
throws java.lang.Exception
java.lang.Exception
float getPosition()
throws java.lang.Exception
java.lang.Exception
long getTime()
throws java.lang.Exception
java.lang.Exception
void setPosition(float position)
throws java.lang.Exception
java.lang.Exception
void setTime(long time)
throws java.lang.Exception
java.lang.Exception
void mute()
throws java.lang.Exception
java.lang.Exception
int getVolume()
throws java.lang.Exception
java.lang.Exception
void setVolume(int volume)
throws java.lang.Exception
java.lang.Exceptionboolean isPlaying()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||