[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuously outputting after stop recording #360

Open
dbb987 opened this issue Jun 30, 2024 · 3 comments
Open

Continuously outputting after stop recording #360

dbb987 opened this issue Jun 30, 2024 · 3 comments

Comments

@dbb987
Copy link
dbb987 commented Jun 30, 2024

Package version
5.1.2

Environment

  • OS: android app(30 and 34)

Describe the bug
On the Android end, the recording function is normal, but after calling stop to end the recording, the console still keeps outputting the following continuously

A clear and concise description of what the bug is.

Add your record configuration RecordConfig(...)
await _record.start(
const RecordConfig(),
path: path
);
_record.stop()

To Reproduce

Steps to reproduce the behavior:

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

@llfbandit
Copy link
Owner

Could you provide what output is it? Are you using an emulator?

@dbb987
Copy link
Author
dbb987 commented Jun 30, 2024

I did not use it on the emulator. I debug it on Android 14 (34), Android 13 (33), and Android 10 (29). I have found on these phones that even after stop recording, the console still outputs and writes information,

The output is as follows:
D/MPEG4Writer(18575): + mBufferedDataSize(16371), chunk->mDataSize(16371) D/MPEG4Writer(18575): - mBufferedDataSize(0), chunk->mDataSize(16371)

@dkliss
Copy link
dkliss commented Jul 8, 2024

I see same/similar issue. Below function does not return an exception at times if start and stop are pressed very quickly and the recorder keep on running and the await is never finished.

final path = await state.audioRecorder.stop();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants