Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2129] Set Audio player volume up down

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2012-07-20T14:13:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsaudioplayer, ios, iphone, live_stream, set_volume, streaming, volume
Reporterutpal
AssigneeJeff Haynie
Created2011-04-15T03:11:17.000+0000
Updated2017-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.

Comments

  1. Gerry Cardinal III 2011-04-15

    This is a duplicate of #1153.

  2. Lee Morris 2017-03-22

    Closing as duplicate with regards to the information provided elsewhere in this ticket.

JSON Source