|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.fmj.ejmf.toolkit.media.AbstractClock
net.sf.fmj.ejmf.toolkit.media.AbstractController
net.sf.fmj.ejmf.toolkit.media.AbstractPlayer
net.sf.fmj.media.AbstractProcessor
net.sf.fmj.media.content.unknown.Handler
public class Handler
The main handler for media. Builds a playback filter graph and starts threads to process it. Note that while this is actually a Player, it is also a Processor. The unknown processor simply extends this class and puts it in a different mode (PROCESSOR).
| Field Summary | |
|---|---|
protected static int |
PLAYER
|
protected static int |
PROCESSOR
|
| Fields inherited from class net.sf.fmj.media.AbstractProcessor |
|---|
outputContentDescriptor |
| Fields inherited from interface javax.media.Processor |
|---|
Configured, Configuring |
| Fields inherited from interface javax.media.Controller |
|---|
LATENCY_UNKNOWN, Prefetched, Prefetching, Realized, Realizing, Started, Unrealized |
| Fields inherited from interface javax.media.Clock |
|---|
RESET |
| Fields inherited from interface javax.media.Duration |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
|---|---|
Handler()
|
|
Handler(int mode)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.sf.fmj.media.AbstractProcessor |
|---|
configure, getContentDescriptor, postConfigureCompleteEvent, setContentDescriptor, synchronousConfigure |
| Methods inherited from class net.sf.fmj.ejmf.toolkit.media.AbstractPlayer |
|---|
addController, controllerUpdate, doClose, doDeallocate, doPrefetch, doRealize, doSetMediaTime, doSetRate, doStop, doSyncStart, endOfMedia, getControllers, getDuration, getGainControl, getSource, getStartLatency, removeController, setControlPanelComponent, setGainControl, setMediaTime, setRate, setVisualComponent, start, synchronousStart |
| Methods inherited from class net.sf.fmj.ejmf.toolkit.media.AbstractClock |
|---|
getMediaNanoseconds, getMediaStartTime, getRate, getStopTime, getSyncTime, getTimeBaseStartTime, mapToTimeBase |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.Player |
|---|
addController, getGainControl, removeController, start |
| Methods inherited from interface javax.media.Controller |
|---|
addControllerListener, close, deallocate, getControl, getControls, getStartLatency, getState, getTargetState, prefetch, realize, removeControllerListener |
| Methods inherited from interface javax.media.Clock |
|---|
getMediaNanoseconds, getMediaTime, getRate, getStopTime, getSyncTime, getTimeBase, mapToTimeBase, setMediaTime, setRate, setStopTime, setTimeBase, stop, syncStart |
| Methods inherited from interface javax.media.Duration |
|---|
getDuration |
| Field Detail |
|---|
protected static final int PLAYER
protected static final int PROCESSOR
| Constructor Detail |
|---|
public Handler()
public Handler(int mode)
| Method Detail |
|---|
public void setSource(DataSource source)
throws IncompatibleSourceException
AbstractPlayer
setSource in interface MediaHandlersetSource in class AbstractPlayersource - The DataSource to test
IncompatibleSourceException - 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()
AbstractPlayer
getControlPanelComponent 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 set
public 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()
AbstractPlayer
getPlayerDuration in class AbstractPlayerpublic Time getPlayerStartLatency()
AbstractPlayer
getPlayerStartLatency in class AbstractPlayerpublic java.awt.Component getVisualComponent()
AbstractPlayer
getVisualComponent in interface PlayergetVisualComponent in class AbstractPlayerpublic boolean doConfigure()
doConfigure in class AbstractProcessor
public DataSource getDataOutput()
throws NotRealizedError
NotRealizedError
public TrackControl[] getTrackControls()
throws NotConfiguredError
getTrackControls in interface ProcessorgetTrackControls in class AbstractProcessorNotConfiguredError
public ContentDescriptor[] getSupportedContentDescriptors()
throws NotConfiguredError
getSupportedContentDescriptors in interface ProcessorgetSupportedContentDescriptors in class AbstractProcessorNotConfiguredError
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||