{ "id": "165096", "key": "TIMOB-24254", "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": [ { "id": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-22T05:50:22.000+0000", "created": "2016-12-21T18:34:29.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:49:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Audio recording is not working with Ti SDK 6.0.0.GA but works as expected 5.5.1.GA\r\n\r\nSteps to Reproduce\r\n1. Just run this code to the device and wait 10000ms time.\r\n2. Add MicrophoneUsage permission to the tiapp.xml file.\r\n\r\nTest Code\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"white\"\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n\r\nbtn.addEventListener('click', trigger);\r\n\r\nwin.add(btn);\r\nwin.open();\r\n\r\nfunction trigger() { \r\n \r\n function startRecording() {\r\n Ti.API.info('Has permissions!')\r\n\r\n Titanium.Media.audioSessionCategory = Ti.Media.AUDIO_SESSION_CATEGORY_PLAY_AND_RECORD;\r\n var audioRecorder = Ti.Media.createAudioRecorder({\r\n compression : Ti.Media.AUDIO_FORMAT_AAC,\r\n format : Titanium.Media.AUDIO_FILEFORMAT_MP4\r\n });\r\n \r\n audioRecorder.start();\r\n \r\n setTimeout(function() {\r\n var stoppedFile = audioRecorder.stop();\r\n \r\n var fileName = \"sosAudio.mp4\";\r\n \r\n \r\n var audioFile = Ti.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, fileName);\r\n audioFile.write(stoppedFile.toBlob);\r\n \r\n alert(audioFile.size);\r\n \r\n }, 3000);\r\n }\r\n \r\n if (!Ti.Media.hasAudioPermissions()) {\r\n Ti.Media.requestAudioPermissions(function(e) {\r\n if (e.success) {\r\n startRecording();\r\n \t} else {\r\n \t\talert(\"please grant audio permissions.\");\r\n \t}\r\n\r\n });\r\n } else {\r\n startRecording();\r\n }\r\n}\r\n\r\n{code}\r\n\r\n{code:title=tiapp.xml}\r\nNSMicrophoneUsageDescription\r\n Can we use your microphone?\r\n{code}\r\n\r\n{code:title=consoleLog}\r\n\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 372;\r\n[ERROR] : line = 1;\r\n[ERROR] : message = \"+[NSBlock boundBridge:withKrollObject:]: unrecognized selector sent to class 0x1b4ffdd58\";\r\n[ERROR] : sourceURL = \"file:///var/containers/Bundle/Application/5707C951-4533-486D-9CE4-166F326F3B83/audioTest.app/app.js\";\r\n[ERROR] : stack = \"[native code]\\nfile:///var/containers/Bundle/Application/5707C951-4533-486D-9CE4-166F326F3B83/audioTest.app/app.js:1:372\";\r\n[ERROR] : }\r\n\r\n\r\n{code}\r\n\r\nThanks", "attachment": [], "flagged": false, "summary": "iOS: Audio recording functionality is not working. ", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Ti SDK version 6.0.0.GA\r\nXcode version 8.2\r\nDevice iOS 10.2 iPhone 5s", "closedSprints": [ { "id": 784, "state": "closed", "name": "2016 Sprint 26 SDK", "startDate": "2016-12-17T01:24:57.928Z", "endDate": "2016-12-31T01:24:00.000Z", "completeDate": "2017-01-03T02:15:01.548Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "403763", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey [~morahman],\r\n\r\nI could reproduce the issue with 6.0.0.GA like stated here, but I could (luckily) not with 6.0.1 ({{6.0.1.v20161219165108}}, the one that will go GA today). Can you validate with that one again? And I also updated the test-case to be more solid, thx!\r\n\r\n*EDIT*: Yeah, I fixed it in [this commit|https://github.com/appcelerator/titanium_mobile/commit/3189bafc8898fe9b143611a1819fb44a90233815] as part of TIMOB-24140 (which is part of 6.0.1).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-21T21:15:57.000+0000", "updated": "2016-12-21T21:18:10.000+0000" }, { "id": "403766", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce with:\r\nNPM Version: 2.15.1\r\nNode Version: 4.6.2\r\nMac OS: 10.11.2\r\nAppc CLI: 6.1.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.0.1.v20161217061750\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.2 GM\r\n\r\nWith 6.0.0 SDK the app would crash when clicking \"trigger\".", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-21T21:44:12.000+0000", "updated": "2016-12-21T21:44:12.000+0000" }, { "id": "440158", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:25.000+0000", "updated": "2018-08-06T17:49:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }