flutter_audio
Flutter record/play audio plugin.
Developed for Evrone.com
Funded by Medcorder Medcorder.com
Getting Started
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.
Plugin functions
setAudioSettings
Future
backAudioSettings
Future
startRecord
Future
stopRecord
Future
checkMicrophonePermissions
Future
startPlay
Future
Key | Type | Description |
---|---|---|
file | String | String file Id |
position | double | play start position in seconds |
stopPlay
Future
Plugin events
for receiving plugin events you need assign callback function\ void _onEvent(dynamic event) {...}
recording events
Key | Type | Description |
---|---|---|
'code' | String | 'recording', |
'url' | String | recording file url |
'peakPowerForChannel' | double | peak power for channel |
'currentTime' | double | recording time in seconds |
playing events
Key | Type | Description |
---|---|---|
'code' | String | 'playing', 'audioPlayerDidFinishPlaying' |
'url' | String | playing file url |
'currentTime' | double | playing time in seconds |
'duration' | double | playing file duration |