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

outdated

使用原生实现的mp3录音插件

Record Mp3 #

pub package

Record an MP3 using the native API

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

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