net.sourceforge.nite.time
Interface PlayingTimeHandler

All Superinterfaces:
TimeHandler
All Known Implementing Classes:
NITEAudioPlayer, NITEMediaPlayer, NITEVideoPlayer, NMediaHandler, NMediaPlayer

public interface PlayingTimeHandler
extends TimeHandler

NITE Playing Time Handler. Implemented by any class on which we can play, rewind, fast forward etc.


Method Summary
 void fastForward()
          fast forward the continuous stream by the specified amount
 void fastForward(int seconds)
          fast forward the continuous stream by the specified amount
 java.lang.String getFileName()
          return the file name currently being played by this player
 double getTime()
          return the time of this media source
 boolean isMaster()
          return true if this player has the 'master' button checked, and thus controls time for the application
 boolean isPlaying()
          true if we're playing
 boolean pastEndTime(double ctime)
          return a boolean: true the given time is after the end time of the media file.
 void pause()
          pause the continuous stream
 void play()
          start playing the continuous stream
 void rewind()
          rewind the continuous stream by the pre-defined amount (defaults to 5 seconds)
 void rewind(int seconds)
           
 void setMaster(boolean mast)
          Make this player control time for the application if the argument is 'true', or stop it from being if 'false'.
 void setPlayRate(float rate)
          set the rate of play so we can sound like pinky and perky.
 
Methods inherited from interface net.sourceforge.nite.time.TimeHandler
acceptTimeChange, acceptTimeSpanChange, getClock, getMaxTime, setClock, setTime, setTimeHighlightColor, setTimeSpan
 

Method Detail

play

void play()
start playing the continuous stream


pause

void pause()
pause the continuous stream


fastForward

void fastForward(int seconds)
fast forward the continuous stream by the specified amount


rewind

void rewind(int seconds)

fastForward

void fastForward()
fast forward the continuous stream by the specified amount


rewind

void rewind()
rewind the continuous stream by the pre-defined amount (defaults to 5 seconds)


setPlayRate

void setPlayRate(float rate)
set the rate of play so we can sound like pinky and perky. 1 is normal.


getFileName

java.lang.String getFileName()
return the file name currently being played by this player


isPlaying

boolean isPlaying()
true if we're playing


getTime

double getTime()
return the time of this media source


isMaster

boolean isMaster()
return true if this player has the 'master' button checked, and thus controls time for the application


setMaster

void setMaster(boolean mast)
Make this player control time for the application if the argument is 'true', or stop it from being if 'false'.


pastEndTime

boolean pastEndTime(double ctime)
return a boolean: true the given time is after the end time of the media file.