Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 23
Registered: ‎11-24-2008
My Device: Not Specified

Camera VideoControl Display size on bold 900

Hello Everybody!

I work on the Bold 900 and I have a big problem : i can't change the size of my camera screen.

I use jsr135 MMAPI from j2me and I think that the vc.setDisplaySize() method does'nt function.

Is the another issue please to resize the camera screen?

however the fullscreen mode work very well but i don't want this style of display.

 

my code:

 

private boolean initCamera() {
        try {
            player = Manager.createPlayer("capture://video");
            player.realize();
            player.prefetch();
           
            vc = (VideoControl) player.getControl("VideoControl");
            viewFinder = (Field) vc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");
            
            vc.setVisible(true);
            //vc.setDisplaySize(320, 240);
            //vc.setDisplayFullScreen(true);
            player.start();
            active = true;

        } catch (Exception me) {
            active = false;
            MobiletagApp.log(me.getMessage());
            return false;
        }
        return true;
    }

Highlighted
BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Camera VideoControl Display size on bold 900

The only camera preview sizes are full screen mode and the default non full screen size.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 17
Registered: ‎12-22-2008
My Device: Not Specified

Re: Camera VideoControl Display size on bold 900

 
New Developer
Posts: 17
Registered: ‎12-22-2008
My Device: Not Specified

Re: Camera VideoControl Display size on bold 900

I have similar problem with setDisplayLocation(int, int).

 

It does not work on BOLD.

 

My code is ,,

 

player = Manager.createPlayer("file:///SDCard/mee.avi");
player.realize();
//Create a new VideoControl.
videoControl = (VideoControl)player.getControl("VideoControl");
//Initialize the video mode using a Field.
videoControl.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, this);
videoControl.setDisplaySize(300, 200);
videoControl.setDisplayLocation(20, 30);
//Set the video control to be visible.
videoControl.setVisible(true);

 

 

I want to set DisplaySize  and its location as well...

setDisplaySize() works fine... but the setDisplayLocation() does not work at all...

 

How should i implement it..?

Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: Camera VideoControl Display size on bold 900

Does setDisplaySize(weight, height) work for every device EXCEPT for bold 9000?

 

Can anybody else confirm this? Unfortunately my device is Bold 9000... Smiley Sad

 

Thanks!

----------------------------------------------------------
Twitter: @gyubok