|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.media.VideoPlayer
public abstract class VideoPlayer
Constructor Summary | |
---|---|
VideoPlayer()
|
Method Summary | |
---|---|
static VideoPlayer |
getDefaultPlayer()
Constructs a new VideoPlayer, using sane defaults, progressively falling back on worse and worse VideoPlayer implementations, until one of them works. |
java.io.OutputStream |
getLogStream()
Provides the OutputStream that diagnostic data from this VideoPlayer will be sent to. |
boolean |
isFullscreen()
Provides a way to check if this VideoPlayer will attempt to play it's videos in full screen mode. |
abstract void |
playVideo(java.io.File file)
Plays a video file, returning when the video player has finished. |
protected static java.io.File |
searchPath(java.lang.String name)
|
protected static java.io.File |
searchPath(java.lang.String name,
java.io.File[] excludeDirs)
|
void |
setFullscreen(boolean fs)
Allows setting the state this VideoPlayer should play it's videos in. |
void |
setLogStream(java.io.OutputStream out)
Sets the OutputStream that should be used for diagnostic output from this VideoPlayer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VideoPlayer()
Method Detail |
---|
public abstract void playVideo(java.io.File file) throws java.io.IOException
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.public void setFullscreen(boolean fs)
fs
- if true, then the player will play the file full screen mode if
at all possible. If false, then it will attempt to play the file in
windowed mode.public boolean isFullscreen()
public void setLogStream(java.io.OutputStream out)
out
- the OutputStream. If this is null, the default stream will be
used.public java.io.OutputStream getLogStream()
public static VideoPlayer getDefaultPlayer()
protected static java.io.File searchPath(java.lang.String name)
protected static java.io.File searchPath(java.lang.String name, java.io.File[] excludeDirs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |