Examples of AdvancedVideoControl


Examples of net.rim.device.api.media.control.AdvancedVideoControl

                    (StreamingBufferControl) _player
                            .getControl("net.rim.device.api.media.control.StreamingBufferControl");
            sbc.setBufferTime(0);

            // Obtain video control
            final AdvancedVideoControl vControl =
                    (AdvancedVideoControl) _player
                            .getControl("net.rim.device.api.media.control.AdvancedVideoControl");

            // Initialize the video control and get the video field
            videoField =
                    (Field) vControl.initDisplayMode(
                            AdvancedVideoControl.USE_GUI_ADVANCED,
                            "net.rim.device.api.ui.Field");

            // Set the video to be a size other than full screen.
            // This must be done after calling initDisplayMode().
            vControl.setDisplaySize(VIDEO_WIDTH, VIDEO_HEIGHT);

            vControl.setVisible(true);
        } catch (final Exception e) {
            NWMDemo.errorDialog(e.toString());
        }

        return videoField;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.