Examples of VideoControl


Examples of javax.microedition.media.control.VideoControl

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

            final VideoControl vc =
                    (VideoControl) _player.getControl("VideoControl");
            if (vc != null) {
                _videoField =
                        (Field) vc.initDisplayMode(
                                GUIControl.USE_GUI_PRIMITIVE,
                                "net.rim.device.api.ui.Field");
                vc.setVisible(true);
            }

            _volumeControl =
                    (VolumeControl) _player.getControl("VolumeControl");
View Full Code Here

Examples of javax.microedition.media.control.VideoControl

     *            The screen's height.
     */
    private void updateVideoSize() {
        if (_player != null) {
            try {
                final VideoControl vc =
                        (VideoControl) _player.getControl("VideoControl");
                if (vc != null) {
                    final net.rim.device.api.ui.Manager manager =
                            getMainManager();
                    final int videoHeight =
                            manager.getHeight() - _hfm1.getHeight()
                                    - _hfm2.getHeight();
                    final int videoWidth = manager.getWidth();
                    vc.setDisplaySize(videoWidth, videoHeight);
                }
            } catch (final Exception e) {
                EmbeddedMediaDemo
                        .errorDialog("VideoControl#setDisplayDize() threw "
                                + e.toString());
View Full Code Here

Examples of javax.microedition.media.control.VideoControl

            // Set the player to the REALIZED state
            _player.realize();

            // Get the video control
            final VideoControl videoControl =
                    (VideoControl) _player.getControl("VideoControl");

            if (videoControl != null) {
                // Create the video field as a GUI primitive
                _cameraField =
                        (Field) videoControl.initDisplayMode(
                                GUIControl.USE_GUI_PRIMITIVE,
                                "net.rim.device.api.ui.Field");
                videoControl.setDisplayFullScreen(true);
                videoControl.setVisible(true);
            }

            // Set the player to the STARTED state
            _player.start();
        } catch (final Exception e) {
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.