{ "id": "129238", "key": "TIMOB-16939", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2014-04-18T22:44:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ios" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:12.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "attachment": [], "flagged": false, "summary": "iOS: Does not detect if AUDIO is muted", "creator": { "name": "trevor_chong", "key": "trevor_chong", "displayName": "Trevor Chong", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "trevor_chong", "key": "trevor_chong", "displayName": "Trevor Chong", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 7.0.3, SDK 3.2", "comment": { "comments": [ { "id": "303005", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you reproduce this issue with the test case in ticket TIMOB-14396? If not, please provide a simple test case to reproduce this issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-30T05:07:28.000+0000", "updated": "2014-04-30T05:07:28.000+0000" }, { "id": "303419", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving this ticket as we cannot reproduce this issue and the reporter has not followed up on requested information.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-04T06:01:17.000+0000", "updated": "2014-05-04T06:01:17.000+0000" }, { "id": "303492", "author": { "name": "trevor_chong", "key": "trevor_chong", "displayName": "Trevor Chong", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ritu,\r\n\r\nTry this:\r\n\r\nfunction lineTypeToStr()\r\n{\r\n var type = Ti.Media.audioLineType;\r\n switch(type)\r\n {\r\n case Ti.Media.AUDIO_HEADSET_INOUT:\r\n return \"headset\";\r\n case Ti.Media.AUDIO_RECEIVER_AND_MIC:\r\n return \"receiver/mic\";\r\n case Ti.Media.AUDIO_HEADPHONES_AND_MIC:\r\n return \"headphones/mic\";\r\n case Ti.Media.AUDIO_HEADPHONES:\r\n return \"headphones\";\r\n case Ti.Media.AUDIO_LINEOUT:\r\n return \"lineout\";\r\n case Ti.Media.AUDIO_SPEAKER:\r\n return \"speaker\";\r\n case Ti.Media.AUDIO_MICROPHONE:\r\n return \"microphone\";\r\n case Ti.Media.AUDIO_MUTED:\r\n return \"silence switch on\";\r\n case Ti.Media.AUDIO_UNAVAILABLE:\r\n return \"unavailable\";\r\n case Ti.Media.AUDIO_UNKNOWN:\r\n return \"unknown\";\r\n }\r\n}\r\n\r\nalert(lineTypeToStr() );\r\n\r\nLaunch the app with the mute switch off. It says speaker.\r\n\r\nkill the app. Turn on the mute switch. Run app. Says speaker. Should say Ti.Media.AUDIO_MUTED.", "updateAuthor": { "name": "trevor_chong", "key": "trevor_chong", "displayName": "Trevor Chong", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-05T16:57:03.000+0000", "updated": "2014-05-05T16:57:03.000+0000" }, { "id": "304018", "author": { "name": "trevor_chong", "key": "trevor_chong", "displayName": "Trevor Chong", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ritu,\r\n\r\nCan you change the status of the ticket please? I added my comments.", "updateAuthor": { "name": "trevor_chong", "key": "trevor_chong", "displayName": "Trevor Chong", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-08T15:24:31.000+0000", "updated": "2014-05-08T15:24:31.000+0000" }, { "id": "304154", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with the provided test case. \r\n\r\nUpdated test case:\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\n function lineTypeToStr()\r\n {\r\n var type = Ti.Media.audioLineType;\r\n switch(type)\r\n {\r\n case Ti.Media.AUDIO_HEADSET_INOUT:\r\n return \"headset\";\r\n case Ti.Media.AUDIO_RECEIVER_AND_MIC:\r\n return \"receiver/mic\";\r\n case Ti.Media.AUDIO_HEADPHONES_AND_MIC:\r\n return \"headphones/mic\";\r\n case Ti.Media.AUDIO_HEADPHONES:\r\n return \"headphones\";\r\n case Ti.Media.AUDIO_LINEOUT:\r\n return \"lineout\";\r\n case Ti.Media.AUDIO_SPEAKER:\r\n return \"speaker\";\r\n case Ti.Media.AUDIO_MICROPHONE:\r\n return \"microphone\";\r\n case Ti.Media.AUDIO_MUTED:\r\n return \"silence switch on\";\r\n case Ti.Media.AUDIO_UNAVAILABLE:\r\n return \"unavailable\";\r\n case Ti.Media.AUDIO_UNKNOWN:\r\n return \"unknown\";\r\n }\r\n }\r\n alert(lineTypeToStr() );\r\n var linetype = Titanium.UI.createLabel({\r\n text: \"audio line type: \"+lineTypeToStr(),\r\n bottom:20,\r\n color:'#999',\r\n textAlign:'center',\r\n width:'auto',\r\n height:'auto'\r\n });\r\n \r\n win.add(linetype);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-09T06:19:35.000+0000", "updated": "2014-05-09T06:19:35.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }