[TIMOB-2129] Set Audio player volume up down
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-07-20T14:13:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | audioplayer, ios, iphone, live_stream, set_volume, streaming, volume |
Reporter | utpal |
Assignee | Jeff Haynie |
Created | 2011-04-15T03:11:17.000+0000 |
Updated | 2017-03-22T21:23:27.000+0000 |
Description
Hi,
I am trying to create live radio streaming iPhone application , streaming run succesfully but i don't understand how to set audioplayer's volume up and down in application.In Doc also no volume property or method is given for audioplayer. I am trying below code and logic to set volume but it won't set the volume.
var a = Ti.Media.volume;
plus_vol.addEventListener('click',function()
{ if (a < 1)
{
a += 0.1;
Ti.Media.volume = a;
alert(Ti.Media.volume);
} }); min_vol.addEventListener('click',function()
{
if (a > 0)
{
if (a < 0.1)
{
a = 0;
Ti.Media.volume = a;
alert(Ti.Media.volume);
}
else
{
a -= 0.1;
Ti.Media.volume = a;
alert(Ti.Media.volume);
}
}
}); Note : Ti.Media.volume value is 1 but it will not change after the code implementation.
Please tell me if its possible to set live streaming volume in app. Thanks in advance.
This is a duplicate of #1153.
Closing as duplicate with regards to the information provided elsewhere in this ticket.