Closed ederjbezerra closed 1 year ago
thanks for reporting. i will look into it as soon as possible
@ederjbezerra any solution? I am experiencing similar issue here!
@ederjbezerra any solution? I am experiencing similar issue here!
Not yet. Mark is the author of this plugin, I think he will bring us a solution in few days.
@markjackmilian hey mark, do you have prevision of looking into this?
Hi, I hope to solve in two of weeks.
Ohh that sounds amazing. I'm anxious!
@ederjbezerra @SandroBenevides @markjackmilian have you guys figured this out? I'm experiencing same issue and unfortunately I'm on production already.
@ederjbezerra @SandroBenevides @markjackmilian have you guys figured this out? I'm experiencing same issue and unfortunately I'm on production already.
Not yet. Still waiting.
Hey guys, I'm going ahead with this plan: will have nightly recorder for recording on android and audio Plugin.AudioRecorder(wave) for recording on iOS. So I decrease almost double of the problem of audio size but will be just amazing if @markjackmilian be able to solve that, cause I know this is really painful and a frequently problem.
this library allows a configuration close to 100% compared to a native implementation. The problem you are reporting seems related to an incorrect configuration. I invite you to try to create a custom configuration following the wiki here: https://github.com/nightlybuilds-net/nightly.xam.audiorecorder#api
I hope to be able to do some testing this week.
this library allows a configuration close to 100% compared to a native implementation. The problem you are reporting seems related to an incorrect configuration. I invite you to try to create a custom configuration following the wiki here: https://github.com/nightlybuilds-net/nightly.xam.audiorecorder#api
I hope to be able to do some testing this week.
You mean a config problem of the plugin itself? Cause I already took off my own configs, it's just your original code and as I said, it works at same device but others devices aren't able to play it.
Hi Guys, I am using https://www.nuget.org/packages/Xam.Plugin.SimpleAudioRecorder plugin (eg not this plugin) to record on IOS and I have exactly the same issue - which is how i ended up here - i was looking for a replacement plugin.....thought i would mention it here as it seems there are multiple plugins having the same outcome. Not sure if that gives and additional clues but i suspect it could be platform specific.
Hi Guys, I am using https://www.nuget.org/packages/Xam.Plugin.SimpleAudioRecorder plugin (eg not this plugin) to record on IOS and I have exactly the same issue - which is how i ended up here - i was looking for a replacement plugin.....thought i would mention it here as it seems there are multiple plugins having the same outcome. Not sure if that gives and additional clues but i suspect it could be platform specific.
@michaelonz
I solved this problem by creating an interface for converting the recorded audio and in iOS specific code, I'm doing this:
var asset = AVFoundation.AVAsset.FromUrl(Foundation.NSUrl.FromFilename(recorder.GetAudioFilePath()));
var export = new AVFoundation.AVAssetExportSession(asset, AVFoundation.AVAssetExportSession.PresetAppleM4A);
This way I was able to reproduce the audio in any device.
@ederjbezerra Thanks for the pointer - I will give this a try and see if it resolves my issue. :)
@ederjbezerra - do you have sample code of how you called this - basically i have a stream object back from the recorder - how do i call this and get a stream back with the corrected formats?
@ederjbezerra - do you have sample code of how you called this - basically i have a stream object back from the recorder - how do i call this and get a stream back with the corrected formats?
I answered my own old question about this at https://stackoverflow.com/questions/67083930/mp4aar-audio-recorded-by-ios-using-plugin-nightlyrecorderservice-doesnt-play-on/75268983#75268983
I hope it helps you and anyone else who is experiencing this issue.
@ederjbezerra I followed your instructions and it resolved my problem - thanks for the great detail - legend :)
@ederjbezerra I followed your instructions and it resolved my problem - thanks for the great detail - legend :)
You're welcome
Everything seems to work as expected until you need to play the file recorded by iOS on other devices(inverse works properly). I'm using SimpleAudioPlayer to play the recorded audio.
Recording code:
Playing code:
Exception/message by player.Load():
Tested on Android 7, Android 11, iOS 14.4.1
Current behavior:
If recorded by Android -> Plays on Android and iOS
If recorded by iOS -> Only plays on iOS
Two samples of recorded audio by android and ios. Not even quicktime and windows media player are able to play audio recorded by iOS.