flutter_sound
flutter_sound copied to clipboard
[BUG]:
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
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) ?
No, I save to a folder inside getApplicationDocumentsDirectory
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.
Having the same issue on android with empty string returned by stopRecorder()
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.