|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.media.VideoPlayer net.jinx.media.MPlayer
public class MPlayer
Constructor Summary | |
---|---|
MPlayer()
|
|
MPlayer(java.lang.String pathToMPlayer)
|
Method Summary | |
---|---|
protected static java.lang.String |
getMPlayerPath()
|
void |
playVideo(java.io.File file)
Plays a video file, returning when the video player has finished. |
Methods inherited from class net.jinx.media.VideoPlayer |
---|
getDefaultPlayer, getLogStream, isFullscreen, searchPath, searchPath, setFullscreen, setLogStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MPlayer() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public MPlayer(java.lang.String pathToMPlayer) throws java.io.FileNotFoundException
java.io.FileNotFoundException
Method Detail |
---|
protected static java.lang.String getMPlayerPath()
public void playVideo(java.io.File file) throws java.io.IOException
VideoPlayer
playVideo
in class VideoPlayer
file
- the File to play. This should reference a video file, but
some VideoPlayer implementations may be capable of playing other things.
For example, MPlayer is a generalized media player, so it should play
music, too.
java.io.IOException
- if an I/O error occurs while playing or attempting to
play the video.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |