org.formaria.swing.video
Class ControllerListener

java.lang.Object
  extended by org.formaria.swing.video.ControllerListener
All Implemented Interfaces:
VideoController

public class ControllerListener
extends java.lang.Object
implements VideoController

A wrapper for the video/jmf controller listener

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.6 $


Field Summary
protected  java.awt.Container video
           
 
Constructor Summary
ControllerListener()
           
 
Method Summary
 void controllerUpdate(ControllerEvent event)
          This controllerUpdate function must be defined in order to implement a ControllerListener interface.
 void destroy()
           
 void loop()
          Continuous playback of the video.
 void setFile(java.lang.String fileName)
           
protected  void setupPlayer()
           
 void setVideoPanel(java.awt.Container videoObj)
           
 void showController(boolean display)
          Display the video controller
 void start()
          Starts playing the video
 void stop()
          Stops playback of the video.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

video

protected java.awt.Container video
Constructor Detail

ControllerListener

public ControllerListener()
Method Detail

setVideoPanel

public void setVideoPanel(java.awt.Container videoObj)
Specified by:
setVideoPanel in interface VideoController

controllerUpdate

public void controllerUpdate(ControllerEvent event)
This controllerUpdate function must be defined in order to implement a ControllerListener interface. This function will be called whenever there is a media event


destroy

public void destroy()
Specified by:
destroy in interface VideoController

start

public void start()
Starts playing the video

Specified by:
start in interface VideoController

loop

public void loop()
Continuous playback of the video.

Specified by:
loop in interface VideoController

stop

public void stop()
Stops playback of the video.

Specified by:
stop in interface VideoController

setFile

public void setFile(java.lang.String fileName)
Specified by:
setFile in interface VideoController

setupPlayer

protected void setupPlayer()

showController

public void showController(boolean display)
Description copied from interface: VideoController
Display the video controller

Specified by:
showController in interface VideoController
Parameters:
display - true to display the controller