net.sf.fmj.ui.application
Class ContainerPlayer

java.lang.Object
  extended by net.sf.fmj.ui.application.ContainerPlayer

public class ContainerPlayer
extends java.lang.Object

ContainerPlayer. Slider update code adapted from EJMF StandardProgressControl.

Author:
Warren Bloomer

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.
 SwingLookControlPanel getTransportControlPanel()
           
 boolean isAutoLoop()
           
 void setAutoLoop(boolean autoLoop)
           
 void setContainerPlayerStatusListener(ContainerPlayerStatusListener listener)
           
 void setGain(float value)
           
 void setMediaLocation(java.lang.String mediaLocation, boolean startAutomatically)
           
 void setMouseListener(java.awt.event.MouseListener mouseListener)
           
 void setMute(boolean value)
           
 void setRealizedStartedProcessor(Processor p)
          Used in the case of things like RTP wizard, which create a player/processor explicitly.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerPlayer

public ContainerPlayer(java.awt.Container container)
Constructor.

Parameters:
container -
Method Detail

setMediaLocation

public void setMediaLocation(java.lang.String mediaLocation,
                             boolean startAutomatically)
                      throws NoDataSourceException,
                             NoPlayerException,
                             java.io.IOException
Throws:
NoDataSourceException
NoPlayerException
java.io.IOException

setRealizedStartedProcessor

public void setRealizedStartedProcessor(Processor p)
Used in the case of things like RTP wizard, which create a player/processor explicitly.


start

public void start()

stop

public void stop()

deallocate

public void deallocate()
Deallocate all resources used by the player.


close

public void close()
Deallocate resources and close the player.


setMouseListener

public void setMouseListener(java.awt.event.MouseListener mouseListener)

setContainerPlayerStatusListener

public void setContainerPlayerStatusListener(ContainerPlayerStatusListener listener)

setGain

public void setGain(float value)

setMute

public void setMute(boolean value)

isAutoLoop

public boolean isAutoLoop()

setAutoLoop

public void setAutoLoop(boolean autoLoop)

getTransportControlPanel

public SwingLookControlPanel getTransportControlPanel()