PenProfile 2.x

javax.microedition.media.control
Interface VideoControl

All Superinterfaces:
Control, GUIControl

public interface VideoControl
extends GUIControl


Field Summary
static int USE_DIRECT_VIDEO
          This defines a mode on how the video is displayed.
 
Fields inherited from interface javax.microedition.media.control.GUIControl
USE_GUI_PRIMITIVE
 
Method Summary
 int getDisplayHeight()
          Return the actual height of the current render video.
 int getDisplayWidth()
          Return the actual width of the current render video.
 int getDisplayX()
          Return the X-coordinate of the video with respect to the GUI object where the video is displayed.
 int getDisplayY()
          Return the Y-coordinate of the video with respective to the GUI object where the video is displayed.
 byte[] getSnapshot(String imageType)
          Get a snapshot of the displayed content.
 int getSourceHeight()
          Return the height of the source video.
 int getSourceWidth()
          Return the width of the source video.
 Object initDisplayMode(int mode, Object arg)
          Initialize the mode on how the video is displayed.
 void setDisplayFullScreen(boolean fullScreenMode)
          Set the size of the render region for the video clip to be fullscreen.
 void setDisplayLocation(int x, int y)
          Set the location of the video with respect to the canvas where the video is displayed.
 void setDisplaySize(int width, int height)
          Resize the video image.
 void setVisible(boolean visible)
          Show or hide the video.
 

Field Detail

USE_DIRECT_VIDEO

static final int USE_DIRECT_VIDEO
This defines a mode on how the video is displayed.

See Also:
Constant Field Values
Method Detail

getDisplayHeight

int getDisplayHeight()
Return the actual height of the current render video.


getDisplayWidth

int getDisplayWidth()
Return the actual width of the current render video.


getDisplayX

int getDisplayX()
Return the X-coordinate of the video with respect to the GUI object where the video is displayed.


getDisplayY

int getDisplayY()
Return the Y-coordinate of the video with respective to the GUI object where the video is displayed.


getSnapshot

byte[] getSnapshot(String imageType)
                   throws MediaException
Get a snapshot of the displayed content.

Throws:
MediaException

getSourceHeight

int getSourceHeight()
Return the height of the source video.


getSourceWidth

int getSourceWidth()
Return the width of the source video.


initDisplayMode

Object initDisplayMode(int mode,
                       Object arg)
Initialize the mode on how the video is displayed.

Specified by:
initDisplayMode in interface GUIControl

setDisplayFullScreen

void setDisplayFullScreen(boolean fullScreenMode)
                          throws MediaException
Set the size of the render region for the video clip to be fullscreen.

Throws:
MediaException

setDisplayLocation

void setDisplayLocation(int x,
                        int y)
Set the location of the video with respect to the canvas where the video is displayed.


setDisplaySize

void setDisplaySize(int width,
                    int height)
                    throws MediaException
Resize the video image.

Throws:
MediaException

setVisible

void setVisible(boolean visible)
Show or hide the video.


PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.