|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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.IOExceptionpublic void setRealizedStartedProcessor(Processor p)
public void start()
start in interface TransportControlpublic void stop()
stop in interface TransportControlpublic void setPosition(double seconds)
setPosition in interface TransportControlpublic void setRate(float rate)
TransportControl
setRate in interface TransportControlpublic 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 TransportControlpublic void setContainerPlayerStatusListener(ContainerPlayerStatusListener listener)
public void timerUpdate(SourcedTimerEvent e)
timerUpdate in interface SourcedTimerListenerSourcedTimerpublic long getTime()
getTime in interface TimeSourcepublic long getConversionDivisor()
getConversionDivisor in interface TimeSourcepublic void setGain(float value)
setGain in interface TransportControlpublic void setMute(boolean value)
setMute in interface TransportControlpublic boolean isAutoLoop()
public void setAutoLoop(boolean autoLoop)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||