Search packages, repositories and app categories

GitHub repositoryfluttercandies/flutter_record_mp3

flutter_record_mp3

flutter record mp3 using the native api

flutter_record_mp3 project cover
Stars
35
Forks
42
Last push (UTC)
May 6, 2024
Project status
Archived

Original README

English project snapshot. Visit GitHub for the latest content.

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
Flutter >=1.12.x  <2.0.0
dependencies:
  record_mp3: ^2.1.0
Flutter >=2.0.0 nullsafety
dependencies:
  record_mp3: 
  	git:
	 url:git://github.com/fluttercandies/flutter_record_mp3

dependencies:
  record_mp3: ^3.0.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();

FlutterCandies GitHub avatar
GitHub author

FlutterCandies ↗

Custom Flutter candies (packages) for you to build your Flutter app easily. Enjoy it!

LanguagesDartRuby

Categories

Dependencies used

Dependency list 2 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗