flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[BUG]: Recording duration is wrong when resume recording

Open sleith opened this issue 3 years ago • 15 comments

Flutter Sound Version : flutter_sound 8.3.9


Severity

  • Result is not what expected

Platforms you faced the error

  • Android

Describe the bug The recording duration is wrong when resume from pause state.

_recorderSubscription = _mRecorder?.onProgress?.listen((event) {
          log("event.duration=${event.duration.inSeconds}");
      });

When resumed, somehow the seconds become minus value. then start again from 0 and counting on. In previous version ^7.5.3+1 it was working perfectly.

To Reproduce Steps to reproduce the behavior:

  1. Start recording. You will see the duration is correctly counting.
  2. Pause recording _mRecorder?.pauseRecorder()
  3. Resume recording _mRecorder?.resumeRecorder(). You will see the duration now is wrong

Please help. Thanks a lot

sleith avatar Aug 20 '21 08:08 sleith

I had the same problem,Did you solve it?

eaglecxs avatar Aug 24 '21 07:08 eaglecxs

I downgraded to version 8.3.4, it's working fine on that version :)

sleith avatar Aug 24 '21 08:08 sleith

I tried, but it didn't work

eaglecxs avatar Aug 24 '21 08:08 eaglecxs

Is this the class you use, TauRecorder

eaglecxs avatar Aug 24 '21 08:08 eaglecxs

I use FlutterSoundRecorder

sleith avatar Aug 24 '21 10:08 sleith

OK,Thanks!

eaglecxs avatar Aug 25 '21 00:08 eaglecxs

Hello, still no. Do you have an example?

eaglecxs avatar Aug 25 '21 01:08 eaglecxs

The bug is there in the latest version ^8.4.1+1.

I tried downgrading the version to 8.3.4, but it's still there.

Any solution?

nicks101 avatar Oct 21 '21 07:10 nicks101

I had the same problem. Did you found any solution please ?

naderhezzy avatar Jan 01 '22 13:01 naderhezzy

I have the same problem. But only on Android.

naoyaono0102 avatar Jan 10 '22 08:01 naoyaono0102

I'm having the same problem. Please is there a fix around it yet?

usmanabdulmajid avatar Jan 11 '22 22:01 usmanabdulmajid

We're having the same problem, are you going to address it or we should use the outdated version of the package (8.3.4)?

lorenzOliveto avatar Feb 04 '22 08:02 lorenzOliveto

With flutter_sound: ^8.4.2 problem still persists.

HeckCodes avatar Feb 14 '22 10:02 HeckCodes

I had the same problem on 9.1.7

tmtit avatar Mar 21 '22 17:03 tmtit

I had the same problem on 9.2.10 Did you found any solution please ?

DinhNam99 avatar May 03 '22 02:05 DinhNam99

I had the same problem on 9.2.13

caihua avatar Sep 22 '22 15:09 caihua

Any updates on this issue?

HeckCodes avatar Apr 23 '23 19:04 HeckCodes

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