example.mmademo
Class VideoTest

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by example.mmademo.VideoTest
All Implemented Interfaces:
java.lang.Runnable, javax.microedition.lcdui.CommandListener

public class VideoTest
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener, java.lang.Runnable

An example MIDlet to demo MMAPI video features


Nested Class Summary
(package private)  class VideoTest.ExitThread
           
 
Field Summary
(package private)  int index
           
 
Constructor Summary
VideoTest()
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
           
 void destroyApp(boolean unconditional)
          Destroy must cleanup everything not handled by the garbage collector.
static VideoTest getInstance()
           
static javax.microedition.lcdui.List getList()
           
 void nullPlayer()
           
 void pauseApp()
          Called when this MIDlet is paused.
 void run()
           
 void startApp()
          Called when this MIDlet is started for the first time, or when it returns from paused mode.
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

int index
Constructor Detail

VideoTest

public VideoTest()
Method Detail

getInstance

public static VideoTest getInstance()

getList

public static javax.microedition.lcdui.List getList()

startApp

public void startApp()
Called when this MIDlet is started for the first time, or when it returns from paused mode. If there is currently a Form or Canvas displaying video, call its startApp() method.

Specified by:
startApp in class javax.microedition.midlet.MIDlet

pauseApp

public void pauseApp()
Called when this MIDlet is paused. If there is currently a Form or Canvas displaying video, call its startApp() method.

Specified by:
pauseApp in class javax.microedition.midlet.MIDlet

destroyApp

public void destroyApp(boolean unconditional)
Destroy must cleanup everything not handled by the garbage collector.

Specified by:
destroyApp in class javax.microedition.midlet.MIDlet

nullPlayer

public void nullPlayer()

run

public void run()
Specified by:
run in interface java.lang.Runnable

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable s)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener