public class Handler extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
protected static int |
PLAYER |
protected static int |
PROCESSOR |
outputContentDescriptor
Configured, Configuring
LATENCY_UNKNOWN, Prefetched, Prefetching, Realized, Realizing, Started, Unrealized
DURATION_UNBOUNDED, DURATION_UNKNOWN
Modifier and Type | Method and Description |
---|---|
boolean |
doConfigure() |
void |
doPlayerClose()
Close the Player.
|
boolean |
doPlayerDeallocate()
Implement to deallocate the Player.
|
boolean |
doPlayerPrefetch()
Implement to prefetch the Player.
|
boolean |
doPlayerRealize()
Implement to realize the Player.
|
void |
doPlayerSetMediaTime(Time t)
Override to provide implementation-specific functionality.
|
float |
doPlayerSetRate(float rate)
Override to provide implementation-specific functionality.
|
boolean |
doPlayerStop()
Implement to stop the Player.
|
boolean |
doPlayerSyncStart(Time time)
Implement to start the Player.
|
java.awt.Component |
getControlPanelComponent()
Get the control panel Component for this Player.
|
DataSource |
getDataOutput() |
Time |
getPlayerDuration()
Returns the duration of the media played by this Player
only.
|
Time |
getPlayerStartLatency()
Returns the start latency of the media played by this
Player only.
|
ContentDescriptor[] |
getSupportedContentDescriptors() |
TrackControl[] |
getTrackControls() |
java.awt.Component |
getVisualComponent()
Get the visual Component for this Player.
|
void |
setSource(DataSource source)
Called by javax.media.Manager.
|
configure, getContentDescriptor, postConfigureCompleteEvent, setContentDescriptor, synchronousConfigure
addController, controllerUpdate, doClose, doDeallocate, doPrefetch, doRealize, doSetMediaTime, doSetRate, doStop, doSyncStart, endOfMedia, getControllers, getDuration, getGainControl, getSource, getStartLatency, removeController, setControlPanelComponent, setGainControl, setMediaTime, setRate, setVisualComponent, start, synchronousStart
addControl, addControllerListener, blockUntilStart, close, deallocate, getControl, getControls, getMediaTime, getPreviousState, getState, getTargetState, getThreadQueue, getTimeBase, postControllerClosedEvent, postControllerErrorEvent, postDataStarvedEvent, postDeallocateEvent, postEndOfMediaEvent, postEvent, postPrefetchCompleteEvent, postRealizeCompleteEvent, postRestartingEvent, postStartEvent, postStopAtTimeEvent, postStopByRequestEvent, postStopEvent, postTransitionEvent, prefetch, realize, removeControl, removeControllerListener, setState, setStopTime, setTargetState, setTimeBase, stop, stopAtTime, stopController, stopInRestart, synchronousPrefetch, synchronousRealize, synchronousSyncStart, syncStart
getMediaNanoseconds, getMediaStartTime, getRate, getStopTime, getSyncTime, getTimeBaseStartTime, mapToTimeBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addController, getGainControl, removeController, start
addControllerListener, close, deallocate, getControl, getControls, getStartLatency, getState, getTargetState, prefetch, realize, removeControllerListener
getMediaNanoseconds, getMediaTime, getRate, getStopTime, getSyncTime, getTimeBase, mapToTimeBase, setMediaTime, setRate, setStopTime, setTimeBase, stop, syncStart
getDuration
protected static final int PLAYER
protected static final int PROCESSOR
public void setSource(DataSource source) throws IncompatibleSourceException
AbstractPlayer
setSource
in interface MediaHandler
setSource
in class AbstractPlayer
source
- The DataSource to testIncompatibleSourceException
- Thrown if the DataSource has already been set
on this MediaHandler, or if the DataSource is
not a PullDataSourcepublic void doPlayerClose()
AbstractPlayer
This method should not be called directly. Instead, call close().
doPlayerClose
in class AbstractPlayer
public boolean doPlayerDeallocate()
AbstractPlayer
This method should not be called directly. Instead, call deallocate().
doPlayerDeallocate
in class AbstractPlayer
public boolean doPlayerPrefetch()
AbstractPlayer
This method should not be called directly. Instead, call prefetch().
doPlayerPrefetch
in class AbstractPlayer
public boolean doPlayerRealize()
AbstractPlayer
This method should not be called directly. Instead, call realize().
doPlayerRealize
in class AbstractPlayer
public java.awt.Component getControlPanelComponent()
AbstractPlayer
getControlPanelComponent
in interface Player
getControlPanelComponent
in class AbstractPlayer
public void doPlayerSetMediaTime(Time t)
AbstractPlayer
This method should not be called directly. Instead, call setMediaTime().
doPlayerSetMediaTime
in class AbstractPlayer
t
- The media time to setpublic float doPlayerSetRate(float rate)
AbstractPlayer
This method should not be called directly. Instead, call setRate().
doPlayerSetRate
in class AbstractPlayer
rate
- The requested rate to setpublic boolean doPlayerStop()
AbstractPlayer
This method should not be called directly. Instead, call stop().
doPlayerStop
in class AbstractPlayer
public boolean doPlayerSyncStart(Time time)
AbstractPlayer
This method should not be called directly. Instead, call start().
doPlayerSyncStart
in class AbstractPlayer
public Time getPlayerDuration()
AbstractPlayer
getPlayerDuration
in class AbstractPlayer
public Time getPlayerStartLatency()
AbstractPlayer
getPlayerStartLatency
in class AbstractPlayer
public java.awt.Component getVisualComponent()
AbstractPlayer
getVisualComponent
in interface Player
getVisualComponent
in class AbstractPlayer
public boolean doConfigure()
doConfigure
in class AbstractProcessor
public DataSource getDataOutput() throws NotRealizedError
NotRealizedError
public TrackControl[] getTrackControls() throws NotConfiguredError
getTrackControls
in interface Processor
getTrackControls
in class AbstractProcessor
NotConfiguredError
public ContentDescriptor[] getSupportedContentDescriptors() throws NotConfiguredError
getSupportedContentDescriptors
in interface Processor
getSupportedContentDescriptors
in class AbstractProcessor
NotConfiguredError