flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[BUG]:

Open sm2017 opened this issue 3 years ago • 5 comments

Flutter Sound Version :

  • FULL or LITE flavor ? I test both

  • Important: Result of the command : flutter pub deps | grep flutter_sound

|-- flutter_sound 8.0.1+11
|   |-- flutter_sound_platform_interface 8.0.1+11
|   |-- flutter_sound_web 8.0.1+11
|   |   |-- flutter_sound_platform_interface...

Severity

  • Crash ? no

  • Result is not what expected ? yes

  • Cannot build my App ? no

  • Minor issue ? may be


Platforms you faced the error

  • iOS ? not tested

  • Android ? yes

  • Flutter Web ? not tested

  • Emulator ? yes

  • Real device ? yes


Describe the bug A clear and concise description of what the bug is.

To Reproduce

String anURL = await myRecorder.stopRecorder();

While the fsound is recorded and the file is saved the anURL is a empty string, not path of recorded sound

Logs!!!!

(This is very important. Most of the time we cannot do anything if we do not have information on your bug)

I/flutter ( 5655): FS:---> openAudioSession 
I/flutter ( 5655): ---> openAudioSession
I/flutter ( 5655): ---> openRecorderCompleted: true
I/flutter ( 5655): <--- openRecorderCompleted: true
I/flutter ( 5655): <--- openAudioSession
I/flutter ( 5655): FS:<--- openAudioSession 
I/flutter ( 5655): FS:---> startRecorder 
I/flutter ( 5655): FS:---> _startRecorder.
I/flutter ( 5655): Calling instance.startRecorder
I/System.out( 5655): ---> writeAudioDataToFile
I/System.out( 5655): <--- writeAudioDataToFile
I/flutter ( 5655): ---> startRecorderCompleted: true
I/flutter ( 5655): <--- startRecorderCompleted: true
I/flutter ( 5655): FS:<--- _startRecorder.
I/flutter ( 5655): FS:<--- startRecorder 
I/flutter ( 5655): FS:---> stopRecorder 
I/flutter ( 5655): FS:---> stopRecorder 
I/flutter ( 5655): FS:---> stop
I/flutter ( 5655): ---> stopRecorderCompleted: true
I/flutter ( 5655): <---- stopRecorderCompleted: true
I/flutter ( 5655): FS:<--- stop
I/flutter ( 5655): FS:<--- stopRecorder : 
I/flutter ( 5655): FS:<--- stopRecorder 
I/flutter ( 5655): FS:---> closeAudioSession 
I/flutter ( 5655): FS:---> closeAudioSession 
I/flutter ( 5655): FS:---> stop
I/flutter ( 5655): ---> stopRecorderCompleted: true
I/flutter ( 5655): <---- stopRecorderCompleted: true
I/flutter ( 5655): FS:<--- stop
I/flutter ( 5655): ---> closeRecorderCompleted
I/flutter ( 5655): <--- closeRecorderCompleted
I/flutter ( 5655): FS:<--- closeAudioSession 
I/flutter ( 5655): FS:<--- closeAudioSession 

sm2017 avatar Apr 14 '21 08:04 sm2017

While the fsound is recorded and the file is saved the anURL is a empty string, not path of recorded sound

Where do you record ? Do you use a temporary file (i.e. a file name without any path) ?

Larpoux avatar Apr 15 '21 15:04 Larpoux

No, I save to a folder inside getApplicationDocumentsDirectory

sm2017 avatar Apr 15 '21 15:04 sm2017

It is possible that the file-name returned by stopRecorder() is only when the file is temporary. (When the file-name is generated by Tau, the App must have a way to know this file-name).

Someone should check that, and does a fix, because this is not clean if I am right. The file-name should always be returned. Temporary or not.

Larpoux avatar Apr 15 '21 15:04 Larpoux

Having the same issue on android with empty string returned by stopRecorder()

IlyaZadyabin avatar Apr 05 '23 14:04 IlyaZadyabin

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] avatar Dec 17 '23 01:12 github-actions[bot]