0
Completed

setting volume on emulator

feri setiawan 6 years ago in iRidium Script updated by Vladimir Ovchinnikov (expert) 6 years ago 8

Hello,


how to set volume in apps i3 use scirpt?


thanks

Waiting for user's reply

Hello.

When you play an audio file in a project, you can specify the volume via

IR.PlaySound (File_Name,Slot_Number,Volume);

Volume is the volume level. Read more here. Note that you cannot control the volume of the audio stream in RTSP. To avoid distortion, the sound from the RTSP is played "as is".

ok how to script for control by slide bar or button up/down...

hi,i want control like is the picture....

i already use "IR.StopAllSounds();" but after i push button for sound active the audio not on?what happen...

Hello.

In the picture - you control the general volume in the app. If you want to control the general volume via script, use IR.GetVariable ("System.Sound.Volume"); and IR.GetVariable ("System.Sound.Mute");
Read more here.
Explain in more detail what you have attached to the button with which you want to activate audio playback?

hello

i want if i press button icon volume the sound is off and if i press again icon volume 
 the sound is on like is trigger button...

thanks

Sample project with adjustment in iRidium general audio via JavaScript:

sound.irpz

ok thanks this success