Interface AdvancedVideoControl

All Superinterfaces:
Control, GUIControl, VideoControl

public interface AdvancedVideoControl
extends VideoControl

Provides advanced video control capabilities.

BlackBerry API 7.0.0

Field Summary
          This defines a mode on how the video is displayed.
Fields inherited from interface
Fields inherited from interface
Method Summary
Methods inherited from interface
getDisplayHeight, getDisplayWidth, getDisplayX, getDisplayY, getSnapshot, getSourceHeight, getSourceWidth, initDisplayMode, setDisplayFullScreen, setDisplayLocation, setDisplaySize, setVisible

Field Detail


static final int USE_GUI_ADVANCED
This defines a mode on how the video is displayed. It is used in conjunction with VideoControl.initDisplayMode(int, java.lang.Object).

USE_GUI_ADVANCED mode can only be used on platforms with Native Window Management support.

When USE_GUI_ADVANCED is specified for initDisplayMode, the arg argument must not be null and must be a java.lang.String equal to "net.rim.device.api.ui.Field". In this mode, the video is rendered onto a Native Window. The region where the video is rendered can be set by the setDisplayLocation method. By default, the location is (0,0). Drawing any graphics at the same region on the canvas is supported using this mode.

initDisplayMode returns an instance of net.rim.device.api.ui.Field in this mode.

Here is one sample usage scenario:

    import net.rim.device.api.Field;
    Field field;

    try {
        Player p = Manager.createPlayer("http://mymachine/abc.mpg");
        AdvancedVideoControl vc;
        if ((vc = (AdvancedVideoControl)p.getControl("")) != null) {
            field = (Field)vc.initDisplayMode(AdvancedVideoControl.USE_GUI_ADVANCED, "net.rim.device.api.ui.Field");
    } catch (MediaException pe) {
    } catch (IOException ioe) {

Value 2 is assigned to USE_GUI_ADVANCED.

See Also:
Constant Field Values
BlackBerry API 7.0.0

Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.