flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

onProgress returning zero duration on IOS

Open sandeepunify opened this issue 3 years ago • 1 comments

recorderSubscription = recordingSession.onProgress.listen((e) {
  var date = DateTime.fromMillisecondsSinceEpoch(e.duration.inMilliseconds, isUtc: true);
  if (date.second < 30) {
    var timeText = DateFormat('mm:ss:SS').format(date);
    setState(() {
      timerText = timeText.substring(0, 8);
      isRecording = true;
    });
  } else {
    stopRecording();
  }
});

sandeepunify avatar Jun 29 '22 10:06 sandeepunify

Duplicate of #881? Is an audio file actually captured?

matthiasn avatar Jul 01 '22 15:07 matthiasn

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