medcorder_audio
Flutter 오디오 녹음/재생 플러그인입니다. medcorder_audio 플러그인을 사용하면 iOS 또는 Android용 Flutter 앱에 오디오 녹음/재생 기능을 통합할 수 있습니다.
음악 재생 및 녹음을 위한 플러터 오디오 플러그인
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
For help getting started with Flutter, view our online documentation.
For help on editing plugin code, view the documentation.
With the medcorder_audio plugin you can integrate record/play audio support into your flutter app for iOS or Android.
Future setAudioSettings()
iOS only. open PlayAndRecord audio session
returns: 'OK', 'FAIL'
Future backAudioSettings()
iOS only. close PlayAndRecord audio session
returns: 'OK', 'FAIL'
Future startRecord(String fileId)
start record audio file to app documents path
returns: 'OK', 'FAIL'
Future stopRecord()
stop audio recording process
returns: 'OK', 'FAIL'
Future checkMicrophonePermissions()
check if you have recording audio permissions
returns: 'OK', 'NO'
Future startPlay(dynamic params) async
start audio playing for file with position
returns: 'OK', 'FAIL'
params: Map<String, String>
| Key | Type | Description |
|---|---|---|
| file | String | String file Id |
| position | double | play start position in seconds |
Future stopPlay()
stop audio playing
returns: 'OK', 'FAIL'\
for receiving plugin events you need assign callback function
void _onEvent(dynamic event) {...}
| Key | Type | Description |
|---|---|---|
| 'code' | String | 'recording', |
| 'url' | String | recording file url |
| 'peakPowerForChannel' | double | peak power for channel |
| 'currentTime' | double | recording time in seconds |
| Key | Type | Description |
|---|---|---|
| 'code' | String | 'playing', 'audioPlayerDidFinishPlaying' |
| 'url' | String | playing file url |
| 'currentTime' | double | playing time in seconds |
| 'duration' | double | playing file duration |
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗