| example.mmademo.VideoCanvas
VideoCanvas | public class VideoCanvas extends Canvas implements Runnable,CommandListener,PlayerListener(Code) | | Play/Capture Video in a Canvas
|
Inner Class :class SnapshotThread extends Thread | |
Constructor Summary | |
public | VideoCanvas(Display parentDisplay) |
VideoCanvas | public VideoCanvas(Display parentDisplay)(Code) | | |
close | public void close()(Code) | | |
commandAction | public void commandAction(Command c, Displayable s)(Code) | | |
keyPressed | public void keyPressed(int keyCode)(Code) | | |
paint | public void paint(Graphics g)(Code) | | |
pause | public void pause()(Code) | | |
pauseApp | public synchronized void pauseApp()(Code) | | Deallocate the player and the display thread.
Some VM's may stop players and threads
on their own, but for consistent user
experience, it's a good idea to explicitely
stop and start resources such as player
and threads.
|
pointerDragged | protected void pointerDragged(int x, int y)(Code) | | |
pointerPressed | protected void pointerPressed(int x, int y)(Code) | | |
start | public void start()(Code) | | |
startApp | public synchronized void startApp()(Code) | | If the player was playing when the MIDlet was paused,
then the player will be restarted here.
|
stopVideoCanvas | public synchronized void stopVideoCanvas()(Code) | | |
|
|