[SailfishDevel] Cannot resume playback with Bluetooth headphones
Anton Thomasson
antonthomasson at gmail.com
Sun Dec 8 15:19:26 UTC 2019
Dear list,
I have an app where in order to keep streaming audio playing (when i switch
between WiFi and celluar) i have hooked up onError of the QML MediaPlayer
to a timer which tries to start playing again.
This has been working great so far, as in like 95%+ success rate, but
hardly ever succeeds when i'm using a Bluetooth headset.
Upon further debugging, i found that the MediaPlayer component did indeed
report that it started playing, despite failing to output any sound due to
(i guess) the following error:
Transport TryAcquire() failed for transport
/org/bluez/hci0/dev_00_22_37_52_F0_01/fd0 (Operation Not Authorized)
It seems the MediaPlayer is definitely thinking that it is outputting to
the Bluetooth headphones, because it stops when i disconnect them.
Is there something wrong with my approach?
Can i improve, or is the underlying system borked?
Is this a known issue or otherwise reproducible?
Br,
Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20191208/6efc97ee/attachment.html>
More information about the Devel
mailing list