since I didn't find an answer in the forum, I'll give this post a try. Is there a way to control the volume for an audio stream?
I looked it up in the documentation but it seems an Ti.Media.createAudioPlayer object does not have a volume control. Maybe theres another way to do this?
Created a module based on Ludovic Lecerf suggestions. Can be found here: https://github.com/moreli/Titanium-Module-Volumeslider
I have a feeling the guidelines say this should be set by the user on the device and not by an app. Different levels might by applied depending on whether the headphones are being used, for example.
There is a .volume property, but I think this is just 'get' rather than 'set' - so you could show a volume level indicator, but no means to control it via your app.
Anyone find the answer to this? I spent two days build an app that will stream a live radio feed only to discover that you cannot control the audio volume for a live stream using the slider (or buttons for the matter).
Thanks for creating the volumeslide module.
One question, does it work in simulation mode?
I have set everything up correctly and volumeSlider.value it outputting correctly, but the volume doesnt change in the simulator..
I havent got an account with apple to test it on the device just yet.
There is a way to make a MPVolumeView object, it's an UISlider object but only used for change the system volume. More info : http://www.ludoviclecerf.com/blog/2011/05/20/appcelerator-make-volume-slider-audioplayer