×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    3

    How to change the size of the video obtained

    try {
    mPlayer = Manager.createPlayer("capture://video");
    mPlayer.realize();

    mVideoControl = (VideoControl)mPlayer.getControl("VideoControl");

    Item item = (Item)mVideoControl.initDisplayMode(
    GUIControl.USE_GUI_PRIMITIVE, null);
    form.append(item);
    form.addCommand(mBackCommand);
    form.addCommand(mCaptureCommand);
    form.setCommandListener(this);
    mDisplay.setCurrent(form);

    mPlayer.start();
    }
    catch (IOException ioe) { handleException(ioe); }
    catch (MediaException me) { handleException(me); }


    I use the n97,The following code does not work


    videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
    try {
    videoControl.setDisplayLocation(2, 2);
    videoControl.setDisplaySize(width - 4, height - 4);

    }
    catch (MediaException me) {
    try { videoControl.setDisplayFullScreen(true); }
    catch (MediaException me2) {}

    }
    videoControl.setVisible(true);


    How to specify the size of the image can get.
    Appreciate your help!!!

  2. #2
    Registered User
    Join Date
    Jan 2010
    Location
    India
    Posts
    37

    Re: How to change the size of the video obtained

    You can specify image size using following code

    byte[] photo = videoControl.getSnapshot("encoding=jpeg&quality=100&width=400&height=240");

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    3

    Re: How to change the size of the video obtained

    Quote Originally Posted by mihirpalkhiwala View Post
    You can specify image size using following code

    byte[] photo = videoControl.getSnapshot("encoding=jpeg&quality=100&width=400&height=240");
    Thank you for your help, my question is how to set the size of video images obtained.The size of the preview video shows

    Using the following code does not work
    videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
    try {
    videoControl.setDisplayLocation(2, 2);
    videoControl.setDisplaySize(width - 4, height - 4);
    }
    catch (MediaException me) {
    try { videoControl.setDisplayFullScreen(true); }
    catch (MediaException me2) {}
    }
    videoControl.setVisible(true);

    get your help

Similar Threads

  1. why TelNo is not obtained
    By chandra1234 in forum Symbian
    Replies: 4
    Last Post: 2008-09-25, 06:08
  2. change the video screen size
    By deepakk in forum Symbian Media (Closed)
    Replies: 10
    Last Post: 2008-07-21, 12:46
  3. [moved] Empty SMS message obtained
    By exlim in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2008-06-25, 04:08
  4. Replies: 1
    Last Post: 2008-01-12, 12:25
  5. Change size of a video
    By vitormcruz in forum Symbian
    Replies: 0
    Last Post: 2007-11-16, 23:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×