record_windows 0.4.1 record_windows: ^0.4.1 copied to clipboard
Windows specific implementation for record package called by record_platform_interface.
import 'dart:io';
import 'package:path/path.dart' as p;
import 'package:record_windows/record_windows.dart';
Future<void> main() async {
final record = RecordWindows()
..start(
path: p.join(File(Platform.resolvedExecutable).parent.path, 'rec.m4a'),
);
await Future.delayed(const Duration(seconds: 1));
record.pause();
await Future.delayed(const Duration(seconds: 1));
record.resume();
await Future.delayed(const Duration(seconds: 1));
record.stop();
}