[SailfishDevel] LED Flash functionality on a real Jolla

Artem Marchenko artem.marchenko at gmail.com
Sun Jan 26 21:43:40 UTC 2014


Cool to see that happening, guys!

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.

Cheers,
Artem.



On Sat, Jan 25, 2014 at 6:50 PM, <christopher.lamb at thurweb.ch> wrote:

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



-- 
Artem Marchenko
http://agilesoftwaredevelopment.com
http://twitter.com/AgileArtem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140126/2317d5e6/attachment.html>


More information about the Devel mailing list