<div dir="ltr">Can you explain why Fixed (manual) focus mode? :/<div>Sorry to ask for details, it's a little difficult without the device at hand?</div><div class="gmail_extra"><br>Are you trying to tell that in a Fixed mode camera will seek for focus forever?</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Artem.<br><br><div class="gmail_quote">On Sat, Nov 16, 2013 at 5:55 PM, Mohammed Hassan <span dir="ltr"><<a href="mailto:mohammed.hassan@jollamobile.com" target="_blank">mohammed.hassan@jollamobile.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">searchAndLock() should work as long as you are in a dark<br>
place (that's what LED torch is for ;-))<br>
and make sure the focus mode is set to fixed focus mode.<br>
<br>
Good luck!<br>
<br>
Cheers,<br>
<div class="im"><br>
On Sat, Nov 16, 2013 at 05:35:47PM +0200, Artem Marchenko wrote:<br>
>  I used to work a little with GStreamer in the past, it wasn't much fun,<br>
>  though I was doing video processing, not just LED manipulation..<br>
>  Oh well, I try searchAndLock trick, if it doesn't work, I'll need to<br>
>  think if I am into diving to gstreamer or into waiting for the Torch<br>
>  API. Technically, waiting for Torch is correct probably, I am just<br>
>  driven by the opportunity to make the very first torch for Jolla :)<br>
>  Cheers,<br>
>  Artem.<br>
><br>
>  On Sat, Nov 16, 2013 at 5:28 PM, Mohammed Hassan<br>
</div><div><div class="h5">>  <[1]<a href="mailto:mohammed.hassan@jollamobile.com">mohammed.hassan@jollamobile.com</a>> wrote:<br>
><br>
>  Hi Artem,<br>
><br>
>  On Sat, Nov 16, 2013 at 04:43:57PM +0200, Artem Marchenko wrote:<br>
>  > Thanks, Mohammed.<br>
>  ><br>
>  > I know that torch mode is not supported, but ON mode is. So my<br>
>  current<br>
>  > workaround idea is to make phone think it shoots video with flash<br>
>  mode<br>
>  > ON (ok, we can even shoot video for real if needed). Assumption is<br>
>  that<br>
>  > video + flash mode ON should make phone record video with light<br>
>  > constantly ON. Currently it doesn't work for me, maybe because<br>
>  > assumption is wrong or maybe I am just using some api the wrong way.<br>
><br>
>  It will not work that way. There is a special mode for torch light<br>
>  but it's<br>
>  not yet been implemented.<br>
><br>
>  > 2nd workaround idea is to make phone seekAndLock all the time<br>
>  causing<br>
>  > flash to be ON. That is likely to result in a multitude of short<br>
>  > flashes though.<br>
><br>
>  That can work but it will be slow "light bursts".<br>
>  A 3rd option would be going even below GSTreamer and Qt and talk to<br>
>  the camera HW directly.<br>
>  This is harder -trust me- and will tie you to the hardware.<br>
>  I am really sorry I don't have a solution for you :(<br>
>  I can only promise it will be available soon in an update.<br>
>  Cheers,<br>
><br>
>  > When you record video with the flash ON in a system camera app, does<br>
>  it<br>
>  > cause LED to have kith ON all the time?<br>
>  ><br>
>  > Artem.<br>
>  ><br>
>  > On Saturday, November 16, 2013, Mohammed Hassan wrote:<br>
>  ><br>
>  > Hi Artem,<br>
>  > On Sat, Nov 16, 2013 at 02:48:30PM +0200, Artem Marchenko wrote:<br>
>  > > Hi All<br>
>  > > *Context*<br>
>  > > I am trying to build a flashlight app, but the same question is<br>
>  > valid<br>
>  > > for any camera app that wants to shoot photos/videos in low<br>
>  > light.<br>
>  > > *The problem*<br>
>  > > I am trying to control LED flash by setting flash mode to ON (api<br>
>  > > confirms that ON mode is supported) and starting camera. Nothing<br>
>  > > happens. I also tried actually capturing photo, shooting video<br>
>  > and<br>
>  > > seekAndLocking. I don't have a device myself, but kind people on<br>
>  > IRC<br>
>  > > told that only two short LED flashes happen (during seeking for<br>
>  > focus<br>
>  > > probably).<br>
>  > > Could somebody, please, advise how to control flash in Sailfish<br>
>  > OS? Or<br>
>  > > maybe you could confirm that libhybris flash control just isn't<br>
>  > wired<br>
>  > > to Qt level?<br>
>  > This is unfortunately not supported.<br>
>  > The only flash modes supported now are: on, off or auto.<br>
>  > Torch light mode is not yet supported but I assure you it will come<br>
>  > in an update soon.<br>
>  > I am not that familiar with Qt but I know it's a limitation of the<br>
>  > layer underneath Qt.<br>
>  > The best you can do now is to wait for the phone itself and tinker<br>
>  > as you like and I am<br>
>  > sure you will manage to do it :-)<br>
>  > Cheers,<br>
>  > P.S. libhybris camera wrapper is not used by sailfish. It might or<br>
>  > might not work.<br>
>  > _______________________________________________<br>
>  > SailfishOS.org Devel mailing list<br>
>  ><br>
>  > --<br>
>  > Artem Marchenko<br>
><br>
</div></div>>  > [1][2]<a href="http://agilesoftwaredevelopment.com" target="_blank">http://agilesoftwaredevelopment.com</a><br>
>  > [2][3]<a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a><br>
>  ><br>
>  > References<br>
>  ><br>
>  > 1. [4]<a href="http://agilesoftwaredevelopment.com/" target="_blank">http://agilesoftwaredevelopment.com/</a><br>
>  > 2. [5]<a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a><br>
><br>
>  --<br>
>  Artem Marchenko<br>
>  [6]<a href="http://agilesoftwaredevelopment.com" target="_blank">http://agilesoftwaredevelopment.com</a><br>
>  [7]<a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a><br>
><br>
> References<br>
><br>
>  1. mailto:<a href="mailto:mohammed.hassan@jollamobile.com">mohammed.hassan@jollamobile.com</a><br>
>  2. <a href="http://agilesoftwaredevelopment.com/" target="_blank">http://agilesoftwaredevelopment.com/</a><br>
>  3. <a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a><br>
>  4. <a href="http://agilesoftwaredevelopment.com/" target="_blank">http://agilesoftwaredevelopment.com/</a><br>
>  5. <a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a><br>
>  6. <a href="http://agilesoftwaredevelopment.com/" target="_blank">http://agilesoftwaredevelopment.com/</a><br>
>  7. <a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Artem Marchenko<br><a href="http://agilesoftwaredevelopment.com" target="_blank">http://agilesoftwaredevelopment.com</a><br><a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a>
</div></div>