[SailfishDevel] LED Flash functionality on a real Jolla

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Thu Jan 23 08:16:45 UTC 2014

Hi Mohammed

thanks. I will try that later (am at work at the moment). I will also  
need to look into the resource policy engine, as that is new to me.

Harbour entry is becoming less and less of a concern for me. My app  
does too many things that are not considered kosher under the current  
Harbour rules (sending SMS direct, use of QtContacts, LED access,  
other Qt Libraries etc.)

As an aside, on Harmattan while I got the the Gstreamer route working  
in developer mode, I never got it working when launching the app  
direct from the device (and thus chose the QCamera approach). This was  
probably down to AEGIS, but that should not be a concern on the Jolla.


Zitat von "Mohammed Hassan" <mohammed.hassan at jollamobile.com>:

> On Wed, Jan 22, 2014 at 08:29:19PM +0100, christopher.lamb at thurweb.ch wrote:
> [...]
>> Solution 3)
>> Via a Gstreamer QML Plugin.
>> I dug out some old code that worked on Harmattan, basically the code
>> from this link to create a qml plugin
>> http://developer.nokia.com/Community/Wiki/How_to_turn_your_camera_flash_into_a_torch_on_Harmattan_using_GStreamer
>> On Sailfish this compiles, but gives the following error when I
>> start the torch.
>> (GSTTorch:708): GStreamer-CRITICAL **: gst_element_set_state:
>> assertion `GST_IS_ELEMENT (element)' failed
> This is not the recommended way but it's the only way to get flash  
> light to work but I have to
> warn you that it wil prevent your app from entering harbour. You  
> will also have to make use
> of resource policy engine to arbitrate access to camera. Failing to  
> do so will lead to breaking
> jolla camera app.
> Simply replace subdevsrc with droidcamsrc and use droideglsink as  
> the sink and
> it should work fine.
> Cheers,
> _______________________________________________
> SailfishOS.org Devel mailing list

More information about the Devel mailing list