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

Lost connection to the device when audiorecorder.start method is called #261

Closed
Stexjy opened this issue Dec 17, 2023 · 2 comments
Closed

Comments

@Stexjy
Copy link

Stexjy commented Dec 17, 2023

Package version
5.0.1

Environment
Windows

Describe the bug
I get the Lost connection to device message when I call the start method on an instance of audio recorder

I used the default RecordConfig().

Here is the code

The widget built in the runapp method
@override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: Container( child: ElevatedButton( child: Container( color: Colors.black, ), onPressed: () => SST().run(), ), ), ), ); }

The SST run method
`Future run() async {
var record = AudioRecorder();

await record.start(const RecordConfig(), path: path);
await Future.delayed(const Duration(seconds: 1));
await record.stop();
print("Prova");

}`

@llfbandit
Copy link
Owner

A fix has been released in record 5.0.2 aside record_windows 1.0.2 as an attempt.
Marking this issue as a duplicate of #249

@dorklord23
Copy link

dorklord23 commented Feb 21, 2024

I'm using record 5.0.4 and still facing the same issue.

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