onProgress
The τ Recorder API
onProgress
- Dart API: onProgress
The attribut onProgress
is a stream on which FlutterSound will post the recorder progression.
You may listen to this Stream to have feedback on the current recording.
Important: Be aware that you must call the verb setSubscriptionDuration() to
specify the frequency of this callback. By default, this frequency is 0 (the callback is never fired)
Example:
myRecorder.setSubscriptionDuration(Duration(milliseconds: 100)); _recorderSubscription = myrecorder.onProgress.listen((e) { Duration maxDuration = e.duration; double decibels = e.decibels ... }
Lorem ipsum ...