Policy QML camera question

Hello

When you use element QML camera in my application, I was faced with the following problem - Z10 camera he always does photo in landscape orientation, even if the device is in portrait mode. AFAIK, QML camera should deal with orientation of the unit by itself, and it doesn't have even the methods or properties to combat it. All other screen elements (such as the navigation pane) to have proper placement for the current orientation of the device (as for the navigation pane, it is always on the bottom of the screen). The code example looks like this:

import bb.cascades 1.0
import bb.cascades.multimedia 1.0
import bb.multimedia 1.0

Page {
    id:         cameraPage
    objectName: "cameraPage"

    onCreationCompleted: {
        OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.CurrentLocked;
    }

    paneProperties: NavigationPaneProperties {
        backButton: ActionItem {
            onTriggered: {
                navigationPane.pop();
            }
        }
    }

    Container {
        background: Color.Black

        Camera {
            id: camera

            onCreationCompleted: {
                if (allCamerasAccessible) {
                    open(CameraUnit.Rear);
                }
            }

            onCameraOpened: {
                getSettings(cameraSettings);

                cameraSettings.flashMode = CameraFlashMode.Off;
                cameraSettings.focusMode = CameraFocusMode.ContinuousAuto;

                applySettings(cameraSettings);

                startViewfinder();
            }

            onTouch: {
                if (event.touchType === TouchType.Down) {
                    capturePhoto();
                }
            }

            onPhotoCaptured: {
                shutterSound.play();
            }

            attachedObjects: [
                CameraSettings {
                    id: cameraSettings
                },
                SystemSound {
                    id:    shutterSound
                    sound: SystemSound.CameraShutterEvent
                }
            ]
        }
    }
}

I looked for similar problems in the browser of the question and found the following problem:

https://www.BlackBerry.com/jira/browse/BBTEN-249

It is somewhat similar to mine, but it is marked as fixed in Dev Alpha OS 10.0.09, while this problem occurs in 10.1.0.273 on Z10.

What could cause, with the exception of the firmware issue? Should I change something orientation of the camera by hand? How can I do this for element QML camera?

Thanks in advance for your help.

The different flavors of the Z10 (as well as future systems) can manage rotation in different ways. Some will be actually rotate the image for you, some will just tag the jpeg resulting with EXIF data that indicates the orientation of the image desired. Not all image viewers supports EXIF rotation.

In addition, currently on the Z10 rotation of the image is locked for the orientation of the device. So if the user locks the application in portrait mode, all their photos will be marked as if the device is held upright in portrait mode, unless you do a follow-up work with the gyroscope/accelerometer and then rotate the image yourself. You will notice that even in the built in camera app. This is currently a known limit.

Tags: BlackBerry Developers

Similar Questions

  • Invoke the qml camera card

    Is it possible to invoke the pure qml camera card?

    I saw how in c ++, but prefer to keep in qml. Seems not work although

    For reference, see

    https://developer.BlackBerry.com/Cascades/documentation/device_platform/invocation/camera.html

    Invocation {
       id: cameraInvocation
       query: InvokeQuery {
              invokeTargetId: "sys.camera.card"
              invokeActionId: "bb.action.CAPTURE"
       }
    }
    

    I try to trigger it with

    cameraInvocation.trigger("bb.action.CAPTURE");
    

    In the console, I get:

    Warning: 16:42:14.882 InvocationPrivate::setQuery: you are not allowed to change InvokeQuery object Warning: 16:42:16.941 InvocationPrivate::onQueryResolved: query failed, no armed signal sent.
    

    It looks like the good feature of ae request

    SAID

  • Satellite A305-S6905 and Web Cam questions

    I apologize if there's another thread for this particular model and the question, I'm just extremely frustrated and after hundreds of searches through google, toshiba and chicony, I can't find a solution. My laptop {Toshiba Satellite A305-S6905} was originally Vista when buying. My uncle put upgraded to Windows 7 and in addition to the fact that he constantly tells me that "this copy of Windows is not genuine", my web cam suddenly stopped working. It worked fine on Vista.

    I uninstalled camera Assistance and reinstalled more than 8 times. I * think * I reinstalled the driver, but whenever I open (or try to open) helps the camera, I get the message: "Webcam is disabled or has failed." Please check your webcam settings '. I opened the Device Manager, but the Chicony webcam is not listed. Nothing about the webcam is listed. I restarted my laptop... believe me, I almost tried everything. I noticed that a lot of upgraders from Vista to Windows 7 have the same problem. Last resort, I decided to come on the website of the manufacturer of my laptop. I would appreciate help.

    Thank you in advance.

    Hello

    If there is no entry in the Device Manager, it's quite strange. If the device works properly it is listed under imaging devices like Chicony camera.
    Somehow, it seems that there is no link between the cam and the motherboard.

    All you can do now is to test the functionality with the settings and see if the problem persists.
    If the situation will be the same, you should contact the closest service and leave technician to check the cam feature.

  • 1080 MicroSoft Life Cam questions?

    Bought a MicroSoft Life Cam Webcam 1080

    In the middle of uploading software cd, I get an error message

    www.support.Microsoft.com/kb/953691

    I am running Windows Vista.  Have all tried to free disk space, change the Windows Installer to automatic.

    Running Windows XP at work and the upload works fine.

    Help!  Help!

    Knight Fan Stan

    Hi Knight Fan Stan

    What is you receive the exact error message?

    Method 1 Clean boot the computer and then try to install the webcam

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem.

    Continue with the remaining steps to pin-point on the third party service.

    After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    Method 2: You can see the steps outlined in the article below, which deals with a similar question

    Resolve the error "Setup cannot continue" when you install the LifeCam software

    http://support.Microsoft.com/kb/973297

    Thanks and greetings
    Ajay K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Toshiba Satellite Web Camera questions

    I have a Toshiba Satellite T115D-S1120 I had some problems with the image on the cam, so I uninstalled thinking I could go to toshiba.com and download the driver.  the driver, I got Toshiba said it is not a win/32 application and will not be installed. I just want to get camra to operate as if it was the box... witch by him was was 2 weeks ago... Please help... I'm also in the Middle East right now if I can just take the laptop by geek team other wise I would like... so any help would be very useful... .thanks

    FRIENDLY FIRE... IS NOT.

    Hello

    1 reboot.

    You can try the system restore before it happened.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
    ===========================================

    If necessary you may be of the wrong driver for your Version of Windows.

    Start - type in the search box-> Winver find upstairs and double click it
    He will tell if you have 64-bit.

    -----------------------------------------

    Double-click Control Panel / Device Manager - Imaging - writing down of the brand and model of camera.
    on this subject and on the tab of the driver is version. Now, click on update drivers (who are unable to do anything as MS
    is far behind the pilots of certification). RIGHT click on the camera - UNINSTALL - REBOOT - it
    will update the driver stack.

    Now, go to the system manufacturer's website and download the latest driver for the camera and the other related camera
    software (if not more recent get the same).

    Just you'd go to Toshiba Support and get the driver for your model laptop.

    Go to your model.
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp?NAV=download

    Good time to get some other updates here.

    Download - SAVE - go to them and RIGHT CLICK - RUN AS ADMIN - reboot after each driver.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver in the Windows updates,
    This leaves ONE of Windows updates, but it will not install the drivers who are generally older and cause
    questions. If updates offers a new driver and then hide it (right click on it) and then go look for new ones
    manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ----------------------------------------------------------------------------

    Check with Toshiba Support, online documentation and drivers (update or reinstall).
    and their forums.

    Toshiba - Contacts
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/navShell.jsp?CF=su_contact

    Toshiba - drivers - access your model
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp?NAV=download

    Toshiba - Support
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp

    Toshiba - Forums
    http://laptopforums.Toshiba.com/

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • "Please restart camera" question...

    Get this prompt message while I turn my camera back. Funny thing is the rear camera worked perfectly last week, all of a sudden, it was this like yesterday when I was going to use an application to scan QR to check a QR barcode, when all of a sudden I get this message.

    Tried to restart the phone and all the other stuff/guides I've seen on google, but unfortunately, I could not remedy? I'm doing something wrong or is this a hardware problem already? Also, I'm from the Philippines, and I do not know if Motorola has yet to a service center that can help me fix my phone...

    If you factory reset and did not add any apps, and the problem persists, then likely material.

  • Z3C camera question "current in another app record cannot be saved"

    Hello!

    I got my Z3C and it is a great device but also got a little problem with the camera app whenever I start the original camera application, I also get the following message: "current record in another app could not be saved.
    After confirming the dialogue, I can still do the photos and videos. I uninstalled all other applications that might be using the camera and rebooted the device. Nothing helps, the message still appears.

    How can any suggestion, I get rid of this message?

    You have the same problem. Read that it happens when the 'Google Ok' is enabled

    http://Forum.xda-developers.com/Z3-compact/General/camera-app-issue-recording-progress-app-t2888431

  • QML layout question

    I'm quite new in QML, and I wondered the correct way to achieve this type of layout. I would like to show you a picture as background and want another image on top of this image, so it gives the effect of a contour.

    Here's what I think I create a StackLayout layout container and then I have 2 image down one is bigger in size, then the other is smaller.

    Thank you for the help

    StackLayout is the only provision which could not do what you want without real awkwardness. The part of the "stack" means that they are stacked vertically or horizontally (x or y axis), not from BACK to front (z axis).

    For the back layer forward, you can use a container with a DockLayout and make sure that specify the picture then in the list of children of the container. Those who come later is rendered above those that come earlier.

    DispositionAbsolue would be another option, but with the same restriction order specifying.

    You can also use the 'background' of a container and an ImagePaintDefinition property to set an image as the background, instead of the usual Color.Transparent or a color explicit and then have the image of 'before' simply to be the unique child of this container. In this case, even a StackLayout might work, since there is only one child.

  • QML Preview question

    Earn 8.1 64-bit

    Optimus laptop, latest graphic drivers

    Momentics 2.1

    I read the previous topics, but they can't help me.

    So, I tried to reinstall ide, re - enable the qml, launching with nvidia graphics

    I tried to use it a few months ago and it works well.

    O_O
    I launch momentics a few minutes ago and qml overview works now (I won't change anything). It fixed itself!

  • Invoke the QML camera

    Have the following

    {Of invocation

    ID: cameraInvocation

    query {}

    invokeTargetId: "sys.camera.card".

    MIME type: "image/jpeg".

    invokeActionId: "bb.action.CAPTURE".

    data: "photo".

    }

    }

    and I try to call it with

    cameraInvocation.trigger ("bb.action.CAPTURE");

    But I get an error when you try to run the invoke.

    InvocationWrapper:nQueryFinished: no matching results for query service Menu

    mimeType = "image/jpeg".

    URI = QUrl("")

    data = "photo".

    metadata = QMap()

    perimeter = 0

    action = "bb.action.CAPTURE".

    target = "sys.camera.card".

    invokerIncluded = false

    InvocationPrivate:nQueryResolved: no matching result query, no armed signal sent.

    Hello

    Unfortunately, you are a known problem for which a fix is on the way. In the meantime, you should use the InvokeManager API from C++.

    Concerning

    Martin

  • Cisco telepresence camera question - motivates and focus on who speaks. ???

    Hi all

    Wonder about a telepresence from cisco camera that when placed in a conference room can detect, move and focus on the person speaking?

    Is this feature available on the PrecesionHD 4 x camera or another that I do not read this feature in the data sheet?

    If so, please provide the reference for this.

    Kind regards

    It is compatible with the SX80, C40/60/90 points of termination.  SpeakerTrack 60 is a unit of two cameras and therefore requires two inputs of camera on the codec, then it will not work with the SX20 because it has only one entrance of the camera.  Both cameras help to provide seamless switching of active speakers in the room.

  • Web Cam questions

    I have a WinBook WB-6120 Webcam and I try to use it with Windows Live Messenger, but it does not recognize it as a webcam.  When I go into tools, audio and video installation, I got through the necessary steps and the webcam are saved and I see myself, but when I use it in a conversation it is not.  Any help is appreciated :-)

    Look here:

    http://Messenger-support.spaces.live.com/

  • STILL NO UPDATE FOR PREMIERE PRO 7.0 - MULTI-CAM QUESTION KILLS MY BUSINESS

    We have still waited since 6/21 for the SUPPOSIDELY LOAN PATCH FOR THE MULTICAM FIX.

    Today is Wednesday after the mandatory week off of ADOBE and we are all still here suffer with our customers.

    WHERE IS THE MARK OF THE UPDATE?

    Was released a few hours after posting.

    http://forums.Adobe.com/thread/1251785?TSTART=0

  • Canon 600 d - should my blurry viewfinder without a purpose is fixed? I have the body of cam

    As says the topic, I have a Canon 600 d or Canon eos Rebel t3i and I'm worried because I can't find all the information in the user manual any where on the net about the question to know if I'd see a clear picture in the viewfinder of my camera when no lens is fixed.  I had enough $ buy the body of the camera until now and I don't have a goal, and I don't know anyone with a DSLR camera question on this subject.  Sorry, this may sound a stupid question - maybe I'm not supposed to be able to clearly see the images in the viewfinder without an AF lenses or another kind have the lens attached to the camera?  I just wanted to know for sure if this unit has a serious problem, before I go ahead and buy a goal for her.  Thanks in advance to anyone who has the time to clear this for me, if you would like more information about me ill will be happy to give let more just me know what you need.  Sorry I'm a super beginner when it comes to high-end cameras

    If my viewfinder cameras is not supposed to look that way without objective and this issue is not caused by the glass, then what else could be causing this problem?  Maybe I'm getting ahead.  I guess I'm just worried, that I have been ripped off when I bought this camera now.

    vtmb760 wrote:

    As says the topic, I have a Canon 600 d or Canon eos Rebel t3i and I'm worried because I can't find all the information in the user manual any where on the net about the question to know if I'd see a clear picture in the viewfinder of my camera when no lens is fixed.  I had enough $ buy the body of the camera until now and I don't have a goal, and I don't know anyone with a DSLR camera question on this subject.  Sorry, this may sound a stupid question - maybe I'm not supposed to be able to clearly see the images in the viewfinder without an AF lenses or another kind have the lens attached to the camera?  I just wanted to know for sure if this unit has a serious problem, before I go ahead and buy a goal for her.  Thanks in advance to anyone who has the time to clear this for me, if you would like more information about me ill will be happy to give let more just me know what you need.  Sorry I'm a super beginner when it comes to high-end cameras

    If my viewfinder cameras is not supposed to look that way without objective and this issue is not caused by the glass, then what else could be causing this problem?  Maybe I'm getting ahead.  I guess I'm just worried, that I have been ripped off when I bought this camera now.

    You won't see anything through the viewfinder of any SLR (i.e. the T3i, obviously) without a lens mounted. In fact, you should never take the body Cap out of the unit except to mount a lens. Leaving off the coast is a good way to attract the dust on the mirror or the sensor.

  • Getting the error with the no compatibility to older versions of Office Word, "this file type is blocked to open in this version by your registry policy setting.

    I use Office Word 2003. I'm trying to get an older file that I created. I get a message that "this file type is blocked to open in this version by your registry policy setting. Question: How do I enter everything I've been through the country to get and I stored in this file? Barbara Perkins * address email is removed from the privacy *.

    Barbara Perkins

    This article, you should get going again...

    "You receive an error message when you try to open a file type that was blocked by your registry policy settings in Word 2010, Word 2007 or in Word 2003.
      <>http://support.Microsoft.com/kb/922849 >

    HTH,
    JW

Maybe you are looking for

  • Allow the loop

    When syncing, I get a message "Please authorize this computer." If I allow my PC, then I get a message "Please authorize this computer" etc etc etc. My PC NEVER gets authorized. In addition, it says that I have authorized 3 out of 5 computers. I have

  • Phone number in gray

    I am on iOS 8.1.2, iPhone 6 and my phone number for iMessage is grayed out and cannot be selected. Right now I can only use imessage with my apple ID is there a way to use my phone number instead? I already tried turning market imessage/facetime.

  • 15 - g021nr: upgrade Windows 10

    Hi my name is Alex, I enjoy working on computers, but I wanted to know if the upgrade of my laptop I got for Christmas last year to 10 Windows would invalidate any warranty on it. my grandparents are an extension of warranty on it for 2 years and I d

  • Canon MG2420 - the printer does not

    My Canon MG2420 printer was working fine 24 hours earlier, now he showed false paper jams. After I removed the top to check anything broken or dusty, I put the top back on and re plugged everything back in and now the printer won't turn on. I even re

  • Video card help

    I have a HP Pavilion p6234f running on windows 7 home premium 64-bit. The vehicle currently has Intel Chipset G33/31 Express version 8.15.10.1912. I'm shopping for a new program for a job that requires a minimum configuration of OpenGL2.1. How do I g