flutter_plugin_record icon indicating copy to clipboard operation
flutter_plugin_record copied to clipboard

how to get the record filepath on recording end

Open xEyad opened this issue 4 years ago • 2 comments

hello, i can't read chineese, so please reply in english. thanks in advance.

xEyad avatar Jan 16 '21 21:01 xEyad

OK I will translate it into English and publish it

yxwandroid avatar Jan 17 '21 03:01 yxwandroid

/// Listen to start or end recording recordPlugin.response.listen((data) { if (data.msg == "onStop") { /// When the recording is finished, the address of the recorded file is returned for uploading to the server print("onStop " + data.path); } else if (data.msg == "onStart") { print("onStart --"); } });

https://github.com/yxwandroid/flutter_plugin_record/blob/master/example/lib/record_screen.dart

yxwandroid avatar Jan 18 '21 11:01 yxwandroid