Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

record mp3

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
flutter >=1.12.x
dependencies:
  record_mp3: ^2.1.0

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


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.