-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ios recorder audio is m4a and android recorded is mp4 #588
Comments
same thing. android is recording mp4 |
Yes, this is a very big problem. If Android and iOS files cannot be played together, it will be meaningless, so it is urgent to solve this problem |
the same |
By saving files as .AAC on both iOS and Android, this issue can be worked around. const audioSet: AudioSet = {
AudioEncoderAndroid: AudioEncoderAndroidType.AAC,
AudioSourceAndroid: AudioSourceAndroidType.MIC,
AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.high,
AVNumberOfChannelsKeyIOS: 2,
AVFormatIDKeyIOS: AVEncodingOption.aac,
}; This can then be passed in as a prop during recording, which then works on both devices |
const audioSet = { |
Version of react-native-audio-recorder-player
"react-native-audio-recorder-player": "^3.6.6",
Version of React Native"
"react-native": "0.73.1",
Platforms you faced the error (IOS or Android or both?)
in android
Expected behavior
Ios recorded audio is m4a which should also play in android
Actual behavior
android recorded audio is playing in both platforms as it is recorded with extension mp4
but ios recorded m4a audio is only playable on ios not when we play that audio in android
as i am working on chat app, so ios users are sending audio chat to android user then android users are unable to play
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: