iOS Question SetVolume/GetVolume -> B4i

Filippo

Expert
Licensed User
Hi,

what is the equivalente of SetVolume/GetVolume in B4i?

B4X:
oldVolume=phone1.GetVolume(phone1.VOLUME_MUSIC)
   
phone1.SetVolume(phone1.VOLUME_MUSIC,phone1.GetMaxVolume(phone1.VOLUME_MUSIC) * plyVolume,False)
 

Filippo

Expert
Licensed User
It is possible to show a standard slider that will allow the user to change the volume. I can add this feature to the media library (or phone library).
That would be great, thank you.
 

John Woodsmall

Active Member
Licensed User
How do i re-set the volumn to normal after it has been lowered by the operating system
without permission?
the api.ai program somehow lowers it by itself.
Barely hear it.
 

JackKirk

Well-Known Member
Licensed User
It is not possible to programmatically change the system volume. You can only change the volume of MediaPlayer playback.
I have 2 volume control solutions:

(1) "General audio" - music, TTS etc:

(2) "Ringer" or "ringtones/alerts" - incoming phone call, SMS arrivals, other notifications AND pseudo camera shutter sound:

Regards...
 
Last edited:
Top