record_mp3 1.0.1 copy "record_mp3: ^1.0.1" to clipboard
record_mp3: ^1.0.1 copied to clipboard

outdated

Record an MP3 using the Platform native API,You can start ,pause,resume and stop record,And export an MP3 file.

Record Mp3 #

pub package

Record an MP3 using the platform native API

Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
  record_mp3: ^1.0.1

Usage #

iOS #

Make sure you add the following key to Info.plist for iOS

<key>NSMicrophoneUsageDescription</key>
<string>xxxxxx</string>

Example #

import 'package:record_mp3/record_mp3.dart';

//start record 
RecordMp3.instance.start(recordFilePath, (type) {
       // record fail callback
});
	  
//pause record
RecordMp3.instance.pause();

//resume record
RecordMp3.instance.resume();

//complete record and export a record file
RecordMp3.instance.stop();

58
likes
30
points
368
downloads

Publisher

verified publisherfluttercandies.com

Weekly Downloads

Record an MP3 using the Platform native API,You can start ,pause,resume and stop record,And export an MP3 file.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on record_mp3