I'm developing an Android/iOS
webradio application with Qt Quick
in qml
.
To play my radio stream I use a MediaPlayer qml element and I would like to add a slider to control the volume of the playing music.
For now, I've tried to use a slider link to the MediaPlayer
volume property, but this do not control the device volume. Indeed, in Android
as in iOS
, when I change the slider value only the MediaPlayer
volume is changed. And when I press the volume buttons of the device the slider is not impacted.
What I want is a slider with which I could see and control the volume of the device, not only the volume of the MediaPlayer
element.
Does anyone know how to do this ?