record_ohos 1.0.0 copy "record_ohos: ^1.0.0" to clipboard
record_ohos: ^1.0.0 copied to clipboard

Ohos specific implementation for record package called by record_platform_interface.

record Ohos #

Ohos specific implementation for record package called by record_platform_interface.

Usage #

dependencies:
  record: ^5.0.0
  record_ohos: 1.0.0

Usage #

import 'package:record/record_ohos.dart';

final record = AudioRecorder();

// Check and request permission if needed
if (await record.hasPermission()) {
  // Start recording to file
  await record.start(const RecordConfig(), path: 'aFullPath/myFile.m4a');
  // ... or to stream
  final stream = await record.startStream(const RecordConfig(AudioEncoder.pcm16bits));
}

// Stop recording...
final path = await record.stop();
// ... or cancel it (and implicitly remove file/blob).
await record.cancel();

record.dispose(); // As always, don't forget this one.
0
likes
120
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

Ohos specific implementation for record package called by record_platform_interface.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, record_platform_interface, uuid

More

Packages that depend on record_ohos

Packages that implement record_ohos