<div dir="ltr">Cool to see that happening, guys!<div><br></div><div>Will help me to move Flashlight app to proper gstreamer too if it is ever allowed in harbour or if I (or anybody else) manages to bundle it with the app. Should be possible.</div>

<div><br></div><div>Cheers,</div><div>Artem.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 25, 2014 at 6:50 PM,  <span dir="ltr"><<a href="mailto:christopher.lamb@thurweb.ch" target="_blank">christopher.lamb@thurweb.ch</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mohammed et al<br>
<br>
I have just posted the code of my demo Flashlight app to Github<br>
<br>
<a href="https://github.com/sailfishapps/ThrowawayDemos/tree/master/Working/GSTTorch2" target="_blank">https://github.com/<u></u>sailfishapps/ThrowawayDemos/<u></u>tree/master/Working/GSTTorch2</a><br>
<br>
This uses Gstreamer, and in its current form is far from Harbour compliancy.<br>
<br>
It exposes a torch to QML using the Jolla LED flash that can be turned on and off, and changed from Beam mode to Flash mode.<br>
<br>
So far the main focus is on the "back-end" c++ part, as I require this functionality as part of my main app.<br>
<br>
As and when time permits I will enrich this demo including:<div class="im"><br>
<br>
* use of resource policy engine to arbitrate access to camera<br></div>
* expose flash rate to QML as property so it can be changed from GUI (e.g. with a slider control).<br>
<br>
Have fun<br>
<br>
Chris<div class="im HOEnZb"><br>
<br>
<br>
Zitat von "Mohammed Hassan" <<a href="mailto:mohammed.hassan@jollamobile.com" target="_blank">mohammed.hassan@jollamobile.<u></u>com</a>>:<br>
<br>
</div><div class="HOEnZb"><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am glad it worked for you :-)<br>
<br>
Perhaps I should start working on an open flash light app.<br>
Would anyone like to contribute to such app? I have already 2 apps to maintain<br>
and I can't easily fit a 3rd.<br>
<br>
Cheers,<br>
<br>
On Fri, Jan 24, 2014 at 09:43:54PM +0100, <a href="mailto:christopher.lamb@thurweb.ch" target="_blank">christopher.lamb@thurweb.ch</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Mohammed<br>
<br>
That's it!<br>
<br>
It's strange how things go. Yesterday was one of those days: At work<br>
I spent hours fighting with a recalcitrant Confluence installation<br>
that refused to start properly, and the evening I could not get the<br>
GST code working properly.<br>
<br>
Today was very different. I discovered that that the mysql database<br>
under the Confluence was corrupt. Once i found that, it more or less<br>
fixed itself. Then this evening I see from your mail that my GST<br>
code only needs one character changed to work!<br>
<br>
Zitat von "Mohammed Hassan" <<a href="mailto:mohammed.hassan@jolla.com" target="_blank">mohammed.hassan@jolla.com</a>>:<br>
><br>
>g_object_set (G_OBJECT(src), "mode", 2, NULL);<br>
><br>
>That should do it for you. Works fine here after changing mode to 2<br>
>instead of 1<br>
<br>
It really does work, both in developer mode from Qt Creator, and<br>
once installed from the Jolla itself. Thank you! I will integrate<br>
this functionality into my core app this weekend.<br>
<br>
<br>
Zitat von "Mohammed Hassan" <<a href="mailto:mohammed.hassan@jolla.com" target="_blank">mohammed.hassan@jolla.com</a>>:<br>
><br>
>Those errors are harmless. Just ignore them. They decrease with each<br>
>update as we implement more camera features ;)<br>
><br>
<br>
Looking forward to the update(s)! 8)<br>
<br>
chris<br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
SailfishOS.org Devel mailing list<br>
</div></div></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>