[SOLVED] QML Audio elements keeps playing even though the app on android goes in background
-
Hi,
I use Qt/QML to build an android app. but the problem i face is.. when the app goes to background the music is still playing for at least 30 sec.. and I have no idea how i should stop it. and return it when the app return active again.
-
Hi,
I think you can use "Qt.application.state":http://doc.qt.io/qt-5/qml-qtqml-qt.html#application-prop for it. When the app goes in background the state will change.
-
Thank you, now its working !