[maemo-developers] [maemo-developers] Detecting N800 camera position

From: Zeeshan Ali zeenix at gstreamer.net
Date: Thu Feb 8 00:01:50 EET 2007
On 2/7/07, Iñigo Illán Aranburu <kodeport at terra.es> wrote:
> Hello everyone!

  Hey there!

> I was trying to write a simple program, and I would like to know if
> there is some way to detect when the camera gets rotated to the point
> that it should "flip" the image as does the internet call application
> that comes with OS2007.

  Fortunately, there are two very useful self-explainatory boolean
gconf keys for these things:

1. /system/osso/af/camera-is-out
2. /system/osso/af/camera-has-turned

  BTW, since it's gconf, you can set-up notification callback in your
applications for these events to, in case you need that. Hope this
helps!

P.S There is a D-Bus way to do the same thing as well but i think
gconf is much simpler to deal with as compared to D-Bus.

-- 
Regards,

Zeeshan Ali
Design Engineer, SW
Open Source Software Operations
Nokia Multimedia
More information about the maemo-developers mailing list