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

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:

Flutter <= 1.19.x
dependencies:
  record_mp3: ^1.0.1
copied to clipboard
Flutter >=1.12.x  <2.0.0
dependencies:
  record_mp3: ^2.1.0
copied to clipboard
Flutter >=2.0.0 nullsafety
dependencies:
  record_mp3: 
  	git:
	 url:git://github.com/fluttercandies/flutter_record_mp3

dependencies:
  record_mp3: ^3.0.0

copied to clipboard

Usage #

iOS #

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

<key>NSMicrophoneUsageDescription</key>
<string>xxxxxx</string>
copied to clipboard

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

copied to clipboard
58
likes
150
points
309
downloads

Publisher

verified publisherfluttercandies.com

Weekly Downloads

2024.09.08 - 2025.03.23

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

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on record_mp3