Hi,
to avoid trial and error with Harbour for you: I don’t think you will make it
into Harbour with this Audio Workaround :-(
This is a part of my last rejection reason:
“It seems that there are problems in audio usage. […] Also audio usage is
blocking suspend when I press Power button .”
In my case there were a few Audio elements in my app that blocked suspend mode,
allthough they had finished running or were paused. And at least in my case it
seems to be a bug in Sailfishs QtMultimedia implementation that will (I hope
so) get fixed some day.
br
Martin
Von: Jens Persson
Gesendet: Donnerstag, 16. Januar 2014 23:24
An: Sailfish OS Developers
So, I switched my shutdown logic to qml timers and they work just fine when the
gstreamer pipeline is in paused state. And I got a bit curious so I also tested
with the qml multimedia plugin and it worked just fine too. So basically all
you need is one line (and one import) to make timers work in qml:
Audio { source: "file.mp3" }
That's it. I don't know which way is the best but I know which is the laziest.
Just throw in a few cool sounds to complement the obnoxious beeper. :)
Greets Jens
On Tue, Jan 14, 2014 at 12:32 PM, Thomas Tanghus <tho...@tanghus.net> wrote:
That's an interesting approach :) I just might try that if it doesn't pass QA.
On Tuesday 14 January 2014 07:28 Jens Persson wrote:
> Ok, did some fast checking now. Yes you were right, QTimer doesn't work,
> singleShot or not. :( But ... it works for my app because it plays audio
> and it works even if the gstreamer pipeline is in paused state. My app uses
> gstreamer directly but you can try some other (easier) way, I think there's
> quite a few of them. Just load an audio file and set it to paused state and
> timers will hopefully work just fine. Hopefully you will make it to the
> harbour this way. :)
>
_______________________________________________
SailfishOS.org Devel mailing list
_______________________________________________
SailfishOS.org Devel mailing list