Describe the bug
When using FlutterSoundRecorder to record audio on Android, and repeatedly pausing and resuming the recording, after two or three repetitions, the onProgress listener reports a negative duration value for e.duration.inMilliseconds.
final FlutterSoundRecorder _mRecorder = FlutterSoundRecorder();
_mRecorder.onProgress!.listen((e) {
// e.duration.inMilliseconds的值为负值
});
To Reproduce
Steps to reproduce the behavior:
Initialize a FlutterSoundRecorder instance.
Start recording audio.
Pause the recording.
Resume the recording.
Repeat steps 2-4 two or three times.
Observe that the onProgress listener's e.duration.inMilliseconds becomes negative.
Flutter Sound Version : 9.16.3
Severity
Platforms you faced the error
Describe the bug When using FlutterSoundRecorder to record audio on Android, and repeatedly pausing and resuming the recording, after two or three repetitions, the
onProgress
listener reports a negative duration value fore.duration.inMilliseconds
.To Reproduce Steps to reproduce the behavior:
Observe that the
onProgress
listener'se.duration.inMilliseconds
becomes negative.Logs!!!!