Using GetVolume() returns your device volume value, but the scale may vary due to your device model. Scaling this value in the range of (0 to 1) may be like this:
Public Sub GetVolumeScaled() As Float '0 to 1
Dim myPhone As Phone
Return myPhone.GetVolume(myPhone.VOLUME_MUSIC) /...
Hi everyone.
My app relies heavily on sounds, and I want to check the device volume and warn the user if it is turned off. Unfortunately, as I've found, the code based on MPVolumeView doesn't work in the latest releases of iOS. Is there another solution? I should repeat that I just need to check...
I need to be able to detect the event of raising or lowering the general volume of the music or at least be able to know the current volume. I tried some example that we have in the forum, but nothing works for me, it gives me volume 0.
Can someone help me how to get it?
Greetings,
We have several Samsung phones running on Android 10 and our app uses the MediaPlayer to play a background sound file. The issue we are experiencing involves the volume the MediaPlayer plays the sound file. It fluctuates. Randomly it get quite loud for a duration of a few seconds and...
Hello,
Is there a way to set the default speaker to the phone speaker even though headphones are connected throw aux plug? does anybody know how to do that?
Thanks in advance.
hello,
It is possible for action to happen when the volume is changed not by (my) app?
for example, when the user click on volume up button, a message box will pop up? (whether the app is open or closed)?
Thanks in advance.
Nice library but it needs a more detailed tutorial.
I tried to set the volume like this:
exoPlayer.Volume(.5)
but I get an error telling me it expects an array. I have not used arrays yet so I found this example:
Creates a single dimension array of the specified type.
The syntax is: Array...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.