[TIMOB-26196] iOS: Move Ti.Media microphone related APIs to AVAudioRecorder and remove 3rd-party library
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-10-25T10:54:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.5.0 |
Components | iOS |
Labels | debt, ti.media |
Reporter | Christopher Williams |
Assignee | Vijay Singh |
Created | 2018-07-10T19:44:50.000+0000 |
Updated | 2018-10-25T14:25:13.000+0000 |
Description
iOS should be using AVAudioRecorder for mic recording related APIs, but is using a very, very old 3rd-party library: [SCListener](https://github.com/stephencelis/sc_listener). Full affected list of API's:
- startMicrophoneMonitor()
- stopMicrophoneMonitor()
- peakMicrophonePower (property)
- averageMicrophonePower (property)
This does not have to be a breaking change as the newer API's are pretty solid to use. We should also add an example for this into our KitchenSink (cc [~topener])
PR: https://github.com/appcelerator/titanium_mobile/pull/10166 Test-Case: https://gist.github.com/hansemannn/1414ea2d11238d1ce99d0528cc4d0cc7
On SDK Version
7.4.1.v20181008103750
everything seems to be working fine using the test case mentioned above but on SDK version7.5.0.v20181010051919
I see the following error:PR for fixing mentioned issue - https://github.com/appcelerator/titanium_mobile/pull/10398
FR Passed, waiting on Jenkins build and CR.
CR passed, Jenkins build is also ready
*Closing ticket.* Verified fix in SDK version
7.5.0.v20181025051112
. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/10398