<div dir="ltr">I used to work a little with GStreamer in the past, it wasn't much fun, though I was doing video processing, not just LED manipulation..<div><br></div><div>Oh well, I try searchAndLock trick, if it doesn't work, I'll need to think if I am into diving to gstreamer or into waiting for the Torch API. Technically, waiting for Torch is correct probably, I am just driven by the opportunity to make the very first torch for Jolla :)<br>

<div><br></div><div>Cheers,</div><div>Artem.</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 16, 2013 at 5:28 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">Hi Artem,<br>
<div class="im"><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 current<br>
>  workaround idea is to make phone think it shoots video with flash mode<br>
>  ON (ok, we can even shoot video for real if needed). Assumption is 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>
</div>It will not work that way. There is a special mode for torch light but it's<br>
not yet been implemented.<br>
<div class="im"><br>
<br>
>  2nd workaround idea is to make phone seekAndLock all the time causing<br>
>  flash to be ON. That is likely to result in a multitude of short<br>
>  flashes though.<br>
<br>
</div>That can work but it will be slow "light bursts".<br>
<br>
A 3rd option would be going even below GSTreamer and Qt and talk to the camera HW directly.<br>
This is harder -trust me- and will tie you to the hardware.<br>
<br>
I am really sorry I don't have a solution for you :(<br>
<br>
I can only promise it will be available soon in an update.<br>
<br>
Cheers,<br>
<div><div class="h5"><br>
>  When you record video with the flash ON in a system camera app, does 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>
</div></div>>  [1]<a href="http://agilesoftwaredevelopment.com" target="_blank">http://agilesoftwaredevelopment.com</a><br>
>  [2]<a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a><br>
><br>
> References<br>
><br>
>  1. <a href="http://agilesoftwaredevelopment.com/" target="_blank">http://agilesoftwaredevelopment.com/</a><br>
>  2. <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>