com.panayotis.jubler.media.player.mplayer
Class MPlayerViewport

java.lang.Object
  extended by com.panayotis.jubler.media.player.mplayer.MPlayerViewport
All Implemented Interfaces:
Viewport

public class MPlayerViewport
extends java.lang.Object
implements Viewport


Constructor Summary
MPlayerViewport(MPlayer player)
          Creates a new instance of MPlayer
 
Method Summary
 boolean changeSubs(Subtitles newsubs)
           
 boolean delaySubs(float secs)
           
 double getTime()
           
 boolean isPaused()
           
 boolean jump(int secs)
           
 boolean pause(boolean pause)
           
 boolean quit()
           
 boolean seek(int secs)
           
 boolean setActive(boolean status, Subtitles newsubs)
           
 void setParameters(MediaFile mfile, Subtitles sub, PlayerFeedback feedback, Time when)
           
 boolean setSpeed(float secs)
           
 boolean setVolume(int vol)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPlayerViewport

public MPlayerViewport(MPlayer player)
Creates a new instance of MPlayer

Method Detail

setParameters

public void setParameters(MediaFile mfile,
                          Subtitles sub,
                          PlayerFeedback feedback,
                          Time when)
Specified by:
setParameters in interface Viewport

start

public void start()
           throws ExtProgramException
Specified by:
start in interface Viewport
Throws:
ExtProgramException

pause

public boolean pause(boolean pause)
Specified by:
pause in interface Viewport

quit

public boolean quit()
Specified by:
quit in interface Viewport

jump

public boolean jump(int secs)
Specified by:
jump in interface Viewport

seek

public boolean seek(int secs)
Specified by:
seek in interface Viewport

delaySubs

public boolean delaySubs(float secs)
Specified by:
delaySubs in interface Viewport

setSpeed

public boolean setSpeed(float secs)
Specified by:
setSpeed in interface Viewport

setVolume

public boolean setVolume(int vol)
Specified by:
setVolume in interface Viewport

getTime

public double getTime()
Specified by:
getTime in interface Viewport

isPaused

public boolean isPaused()
Specified by:
isPaused in interface Viewport

changeSubs

public boolean changeSubs(Subtitles newsubs)
Specified by:
changeSubs in interface Viewport

setActive

public boolean setActive(boolean status,
                         Subtitles newsubs)
Specified by:
setActive in interface Viewport