public class Handler extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
protected static int |
PLAYER |
protected static int |
PROCESSOR |
outputContentDescriptorConfigured, ConfiguringLATENCY_UNKNOWN, Prefetched, Prefetching, Realized, Realizing, Started, UnrealizedDURATION_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, synchronousConfigureaddController, controllerUpdate, doClose, doDeallocate, doPrefetch, doRealize, doSetMediaTime, doSetRate, doStop, doSyncStart, endOfMedia, getControllers, getDuration, getGainControl, getSource, getStartLatency, removeController, setControlPanelComponent, setGainControl, setMediaTime, setRate, setVisualComponent, start, synchronousStartaddControl, 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, syncStartgetMediaNanoseconds, getMediaStartTime, getRate, getStopTime, getSyncTime, getTimeBaseStartTime, mapToTimeBaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddController, getGainControl, removeController, startaddControllerListener, close, deallocate, getControl, getControls, getStartLatency, getState, getTargetState, prefetch, realize, removeControllerListenergetMediaNanoseconds, getMediaTime, getRate, getStopTime, getSyncTime, getTimeBase, mapToTimeBase, setMediaTime, setRate, setStopTime, setTimeBase, stop, syncStartgetDurationprotected static final int PLAYER
protected static final int PROCESSOR
public void setSource(DataSource source) throws IncompatibleSourceException
AbstractPlayersetSource in interface MediaHandlersetSource in class AbstractPlayersource - 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()
AbstractPlayerThis method should not be called directly. Instead, call close().
doPlayerClose in class AbstractPlayerpublic boolean doPlayerDeallocate()
AbstractPlayerThis method should not be called directly. Instead, call deallocate().
doPlayerDeallocate in class AbstractPlayerpublic boolean doPlayerPrefetch()
AbstractPlayerThis method should not be called directly. Instead, call prefetch().
doPlayerPrefetch in class AbstractPlayerpublic boolean doPlayerRealize()
AbstractPlayerThis method should not be called directly. Instead, call realize().
doPlayerRealize in class AbstractPlayerpublic java.awt.Component getControlPanelComponent()
AbstractPlayergetControlPanelComponent in interface PlayergetControlPanelComponent in class AbstractPlayerpublic void doPlayerSetMediaTime(Time t)
AbstractPlayerThis method should not be called directly. Instead, call setMediaTime().
doPlayerSetMediaTime in class AbstractPlayert - The media time to setpublic float doPlayerSetRate(float rate)
AbstractPlayerThis method should not be called directly. Instead, call setRate().
doPlayerSetRate in class AbstractPlayerrate - The requested rate to setpublic boolean doPlayerStop()
AbstractPlayerThis method should not be called directly. Instead, call stop().
doPlayerStop in class AbstractPlayerpublic boolean doPlayerSyncStart(Time time)
AbstractPlayerThis method should not be called directly. Instead, call start().
doPlayerSyncStart in class AbstractPlayerpublic Time getPlayerDuration()
AbstractPlayergetPlayerDuration in class AbstractPlayerpublic Time getPlayerStartLatency()
AbstractPlayergetPlayerStartLatency in class AbstractPlayerpublic java.awt.Component getVisualComponent()
AbstractPlayergetVisualComponent in interface PlayergetVisualComponent in class AbstractPlayerpublic boolean doConfigure()
doConfigure in class AbstractProcessorpublic DataSource getDataOutput() throws NotRealizedError
NotRealizedErrorpublic TrackControl[] getTrackControls() throws NotConfiguredError
getTrackControls in interface ProcessorgetTrackControls in class AbstractProcessorNotConfiguredErrorpublic ContentDescriptor[] getSupportedContentDescriptors() throws NotConfiguredError
getSupportedContentDescriptors in interface ProcessorgetSupportedContentDescriptors in class AbstractProcessorNotConfiguredError