|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fmj.ui.application.ContainerPlayer
public class ContainerPlayer
ContainerPlayer. Slider update code adapted from EJMF StandardProgressControl.
Field Summary |
---|
Fields inherited from interface net.sf.fmj.ejmf.toolkit.util.TimeSource |
---|
MICROS_PER_SEC, MILLIS_PER_SEC, NANOS_PER_SEC |
Constructor Summary | |
---|---|
ContainerPlayer(java.awt.Container container)
Constructor. |
Method Summary | |
---|---|
void |
close()
Deallocate resources and close the player. |
void |
deallocate()
Deallocate all resources used by the player. |
long |
getConversionDivisor()
This method is used as a divisor to convert getTime to seconds. |
long |
getTime()
As part of TimeSource interface, getTime returns the current media time in nanoseconds. |
boolean |
isAutoLoop()
|
void |
setAutoLoop(boolean autoLoop)
|
void |
setContainerPlayerStatusListener(ContainerPlayerStatusListener listener)
|
void |
setGain(float value)
|
void |
setMediaLocation(java.lang.String mediaLocation,
boolean startAutomatically)
|
void |
setMediaTime(Time time)
Set the current media time of the content. |
void |
setMouseListener(java.awt.event.MouseListener mouseListener)
|
void |
setMute(boolean value)
|
void |
setPosition(double seconds)
|
void |
setRate(float rate)
1.0 is normal playback speed. |
void |
setRealizedStartedProcessor(Processor p)
Used in the case of things like RTP wizard, which create a player/processor explicitly. |
void |
setTransportControlListener(TransportControlListener listener)
|
void |
start()
|
void |
stop()
|
void |
timerUpdate(SourcedTimerEvent e)
This method implements the SourcedTimerListener interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContainerPlayer(java.awt.Container container)
container
- Method Detail |
---|
public void setMediaLocation(java.lang.String mediaLocation, boolean startAutomatically) throws NoDataSourceException, NoPlayerException, java.io.IOException
NoDataSourceException
NoPlayerException
java.io.IOException
public void setRealizedStartedProcessor(Processor p)
public void start()
start
in interface TransportControl
public void stop()
stop
in interface TransportControl
public void setPosition(double seconds)
setPosition
in interface TransportControl
public void setRate(float rate)
TransportControl
setRate
in interface TransportControl
public void deallocate()
public void close()
public void setMediaTime(Time time)
public void setMouseListener(java.awt.event.MouseListener mouseListener)
public void setTransportControlListener(TransportControlListener listener)
setTransportControlListener
in interface TransportControl
public void setContainerPlayerStatusListener(ContainerPlayerStatusListener listener)
public void timerUpdate(SourcedTimerEvent e)
timerUpdate
in interface SourcedTimerListener
SourcedTimer
public long getTime()
getTime
in interface TimeSource
public long getConversionDivisor()
getConversionDivisor
in interface TimeSource
public void setGain(float value)
setGain
in interface TransportControl
public void setMute(boolean value)
setMute
in interface TransportControl
public boolean isAutoLoop()
public void setAutoLoop(boolean autoLoop)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |