Skip to content

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

Closed
@Stexjy

Description

@Stexjy

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");

}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions