Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Unable to parse message input #6

Open
rjuevesano opened this issue Feb 27, 2024 · 3 comments
Open

Unable to parse message input #6

rjuevesano opened this issue Feb 27, 2024 · 3 comments

Comments

@rjuevesano
Copy link

Hello. So I'm trying to send an audio message and I follow the docs here https://cp-docs.nabla.com/docs/messaging-core-rn#different-types-of-messages.

I'm using react-native-audio-recorder-player to record an audio. It works on android using mp3 extension but on iOS using m4a is not working. I'm getting that error Unable to parse message input.

Here's my payload

new AudioMessageInput(
  "file:///Users/rjuevesano/Library/Developer/CoreSimulator/Devices/0204E5B1-2117-472E-9063-DE7D963293B4/data/Containers/Data/Application/926071B0-2594-4021-9E99-1D4A9914F139/Library/Caches/record-5c90f201-93ad-490c-a13c-baf66f7cf379.m4a"
  AudioMimeType.mpeg,
  record.recordSecs,
  `record-${uuidv4()}.m4a`
)
@benoitletondor
Copy link
Contributor

benoitletondor commented Feb 27, 2024

Hey, thanks for your message. Indeed on iOS we are only supporting MPEG right now, sorry this is not documented.

@rjuevesano
Copy link
Author

Hey, thanks for your message. Indeed on iOS we are only supporting MP3 right now, sorry this is not documented.

Thanks for your reply. I tried mp3 as well and it didn't work.

@benoitletondor
Copy link
Contributor

Yes sorry it's MPEG

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants