javax.media.bean.playerbean
Class MediaPlayer.InternalControllerAdapter

java.lang.Object
  |
  +--javax.media.ControllerAdapter
        |
        +--javax.media.bean.playerbean.MediaPlayer.InternalControllerAdapter
All Implemented Interfaces:
ControllerListener, java.util.EventListener
Enclosing class:
MediaPlayer

class MediaPlayer.InternalControllerAdapter
extends ControllerAdapter

InternalControllerAdapter: Inner class to catch player event


Constructor Summary
MediaPlayer.InternalControllerAdapter(MediaPlayer b)
          Constructs an InternalControllerAdapter.
 
Method Summary
 void cachingControl(CachingControlEvent e)
          When the caching event generated, if no progress bar, then create it, if download completed, remove the progress bar.
 void controllerError(ControllerErrorEvent e)
          When the player has an error condition occur, log the error message.
 void endOfMedia(EndOfMediaEvent e)
          When the player reach the end of media, if loop is set, restart it.
 void formatChange(FormatChangeEvent e)
          When player format changes, remove the old visual component then create the new one.
 void prefetchComplete(PrefetchCompleteEvent e)
          When the player is Prefetched, removes the progress bar, sets the size, and sets the visual component visible
 void realizeComplete(RealizeCompleteEvent e)
          When the player is Realized, it calls doRealize internal function to get the visual, gain, control components and add them to the panel of bean.
 void replaceURL(java.lang.Object e)
          Replaces the URL that is invoked when a hot link to a new URL is triggered.
 void showDocument(java.lang.Object e)
          Displays the html document which is invoked when a hotlink to a html is triggered in a mvr file
 void sizeChange(SizeChangeEvent e)
          When the input video has changed in size, recalculate, and redraw.
 void start(StartEvent e)
          When the player is started.
 void transition(TransitionEvent e)
          Gets the current state.
 
Methods inherited from class javax.media.ControllerAdapter
audioDeviceUnavailable, configureComplete, connectionError, controllerClosed, controllerUpdate, dataLostError, dataStarved, deallocate, durationUpdate, internalError, mediaTimeSet, rateChange, resourceUnavailable, restarting, stop, stopAtTime, stopByRequest, stopTimeChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaPlayer.InternalControllerAdapter

public MediaPlayer.InternalControllerAdapter(MediaPlayer b)
Constructs an InternalControllerAdapter.

Parameters:
b - Instance of MediaPlayer bean
Method Detail

replaceURL

public void replaceURL(java.lang.Object e)
Replaces the URL that is invoked when a hot link to a new URL is triggered.

Overrides:
replaceURL in class ControllerAdapter

showDocument

public void showDocument(java.lang.Object e)
Displays the html document which is invoked when a hotlink to a html is triggered in a mvr file

Overrides:
showDocument in class ControllerAdapter

transition

public void transition(TransitionEvent e)
Gets the current state.

Overrides:
transition in class ControllerAdapter

realizeComplete

public void realizeComplete(RealizeCompleteEvent e)
When the player is Realized, it calls doRealize internal function to get the visual, gain, control components and add them to the panel of bean. If fixedAspectRatio is set, it will check if Bean has more space to expand the visual component and calculate the

Overrides:
realizeComplete in class ControllerAdapter

prefetchComplete

public void prefetchComplete(PrefetchCompleteEvent e)
When the player is Prefetched, removes the progress bar, sets the size, and sets the visual component visible

Overrides:
prefetchComplete in class ControllerAdapter

formatChange

public void formatChange(FormatChangeEvent e)
When player format changes, remove the old visual component then create the new one.

Overrides:
formatChange in class ControllerAdapter

start

public void start(StartEvent e)
When the player is started.

Overrides:
start in class ControllerAdapter

endOfMedia

public void endOfMedia(EndOfMediaEvent e)
When the player reach the end of media, if loop is set, restart it.

Overrides:
endOfMedia in class ControllerAdapter

controllerError

public void controllerError(ControllerErrorEvent e)
When the player has an error condition occur, log the error message.

Overrides:
controllerError in class ControllerAdapter

sizeChange

public void sizeChange(SizeChangeEvent e)
When the input video has changed in size, recalculate, and redraw.

Overrides:
sizeChange in class ControllerAdapter

cachingControl

public void cachingControl(CachingControlEvent e)
When the caching event generated, if no progress bar, then create it, if download completed, remove the progress bar.

Overrides:
cachingControl in class ControllerAdapter