|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsears.tools.player.DefaultPlayer
public class DefaultPlayer
Class DefaultPlayer.
Summary:
That is the default player, which permit to launch a player on a video file and a subtitle file.
Constructor Summary | |
---|---|
DefaultPlayer()
|
Method Summary | |
---|---|
int |
getLength()
Method getLength Summary: This method permit to get the video time length(in seconds). |
int |
getPosition()
Method getPosition Summary: This method permit to get the current position (in seconds) in the video. |
void |
goToOffset(int offset)
|
void |
pause()
Method pause Summary: Pause the video. |
void |
play(java.lang.String videoFile,
java.lang.String subtitleFile)
Method play Summary: Use it to launch a video, with its subtitles. |
void |
quit()
Method quit Summary: This method allows to kill the player. |
void |
setPosition(int offset)
Method setPosition Summary: This method permit to shift to the correct offset (in s) in the video. |
void |
stop()
Method stop Summary: stop the video. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPlayer()
Method Detail |
---|
public void play(java.lang.String videoFile, java.lang.String subtitleFile) throws PlayerException
PlayerInterface
play
in interface PlayerInterface
videoFile
- The path to the videoFile.subtitleFile
- The path to the subtitleFile.
PlayerException
public void goToOffset(int offset) throws PlayerException
PlayerException
public void quit()
PlayerInterface
quit
in interface PlayerInterface
public int getPosition() throws PlayerException
PlayerInterface
getPosition
in interface PlayerInterface
PlayerException
public int getLength() throws PlayerException
PlayerInterface
getLength
in interface PlayerInterface
PlayerException
public void pause() throws PlayerException
PlayerInterface
pause
in interface PlayerInterface
PlayerException
public void stop() throws PlayerException
PlayerInterface
stop
in interface PlayerInterface
PlayerException
public void setPosition(int offset) throws PlayerException
PlayerInterface
setPosition
in interface PlayerInterface
offset
- The offset in the video to go.
PlayerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |