|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlayerInterface
Class PlayerInterface. Summary: This class defines the interface to play subtitled video files.
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 |
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. |
Method Detail |
---|
void play(java.lang.String videoFile, java.lang.String subtitleFile) throws PlayerException
videoFile
- The path to the videoFile.subtitleFile
- The path to the subtitleFile.
PlayerException
- if an error occursvoid pause() throws PlayerException
PlayerException
- if an error occursvoid stop() throws PlayerException
PlayerException
- if an error occursvoid setPosition(int offset) throws PlayerException
offset
- The offset in the video to go.
PlayerException
- if an error occursint getPosition() throws PlayerException
PlayerException
- if an error occursint getLength() throws PlayerException
PlayerException
- if an error occursvoid quit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |