iOS Question SetVolume/GetVolume -> B4i

D

Deleted member 103

Guest
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)
 
D

Deleted member 103

Guest
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.
 
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime 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.
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime 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:
Upvote 0
Top