Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
875 stars 573 forks source link

[BUG]: #967

Open thomasfranke opened 1 year ago

thomasfranke commented 1 year ago

I'm using flutter_sound to record an audio on iOS and Android. Once it stops, I get the filepath and convert to fileBytes. Later on, I upload the file through an API.

final fpath = await _recorder.stopRecorder();
if (fpath != null) {
        File file = File(fpath);
        List<int> fileBytes = await file.readAsBytes();

On simulator (iOS 16.4), it works. On my real device (iOS 16.5), it doesn't work. The problem might be on iOS version, on real device vs simulator, or on my code.

It doesn't give any error, but if I inspect(fileBytes), it returns empty, without any explanation. It seems like the file disappears and can't be found to readAsBytes.

Any ideas?

Thanks!

Edit: just found this on _typedData: <error: org-dartlang-debug:synthetic_debug_expression:1:1: Error: The getter '_typedData' isn't defined for the class 'Uint8List'.

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 365 days with no activity. Leave a comment or this will be closed in 7 days.