net.jinx.media
Class MPlayer

java.lang.Object
  extended by net.jinx.media.VideoPlayer
      extended by net.jinx.media.MPlayer

public class MPlayer
extends VideoPlayer


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

MPlayer

public MPlayer()
        throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

MPlayer

public MPlayer(java.lang.String pathToMPlayer)
        throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

getMPlayerPath

protected static java.lang.String getMPlayerPath()

playVideo

public void playVideo(java.io.File file)
               throws java.io.IOException
Description copied from class: VideoPlayer
Plays a video file, returning when the video player has finished. This method should be synchronized.

Specified by:
playVideo in class VideoPlayer
Parameters:
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.
Throws:
java.io.IOException - if an I/O error occurs while playing or attempting to play the video.