Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25813] Android: Ti.Media.AudioRecorder parity on "format" and "compression"

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.2.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2018-02-26T11:42:53.000+0000
Updated2018-02-28T19:55:27.000+0000

Description

We've added AudioRecorder parity across all platforms in 6.2.0. But format and compression are still iOS / Windows only, so we should try to gain some parity across the platforms, at least for the basic file formats (mp3, mp4, wav, caf \[default\]) and compressions (aac, ima4, linear pcm \[default\]).

Comments

  1. Joshua Quick 2018-02-26

    [~hknoechel], I think this is impossible on Android. This is because audio formats such as MP3 and AAC require licensing and can involve royalties. So, Android device manufacturers may not provide all audio formats documented by Google in order to reduce cost. Unfortunately, there is no API that'll tell you if the audio recording format is supported on the device. The only guaranteed audio format we can support is WAV. *Note:* In the past, I used to think all Android devices supported 3GP since that was a free format. It was typically the default format for most devices in the past. But then I discovered one rogue Android device, I think the "Nabi 2" kids tablet, that didn't support it. That's when I had to concede that the only sure bet was the WAV format. Android is the wild west of operating systems. Just because you see a cool feature documented on Google's side doesn't mean all Android devices support it. Especially the Android OS forks... and most of the popular devices are forked like Samsung devices.

JSON Source