medcorder_audio_test

Flutter record/play audio plugin.

Developed for Evrone.com

Funded by David Weekly dweek.ly

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

With medcorder_audio_test plugin you can integrate record/play audio support into your flutter app for iOS or Android.

Plugin functions

setAudioSettings

Future setAudioSettings() iOS only. open PlayAndRecord audio session returns: 'OK', 'FAIL'

backAudioSettings

Future backAudioSettings() iOS only. close PlayAndRecord audio session returns: 'OK', 'FAIL'

startRecord

Future startRecord(String fileId) start record audio file to app documents path returns: 'OK', 'FAIL'

stopRecord

Future stopRecord() stop audio recording process returns: 'OK', 'FAIL'

checkMicrophonePermissions

Future checkMicrophonePermissions() check if you have recording audio permissions returns: 'OK', 'NO'

startPlay

Future startPlay(dynamic params) async start audio playing for file with position returns: 'OK', 'FAIL' params: Map<String, String>

KeyTypeDescription
fileStringString file Id
positiondoubleplay start position in seconds

stopPlay

Future stopPlay() stop audio playing returns: 'OK', 'FAIL' params: Map<String, String>

Plugin events

for recieving plugin events you need assign callback function void _onEvent(Map<String, dynamic> event) {...}

recording events

KeyTypeDescription
'code'String'recording',
'url'Stringrecording file url
'peakPowerForChannel'doublepeak power for channel
'currentTime'doublerecording time in seconds

playing events

KeyTypeDescription
'code'String'playing', 'audioPlayerDidFinishPlaying'
'url'Stringplaying file url
'currentTime'doubleplaying time in seconds
'duration'doubleplaying file duration

Libraries

medcorder_audio_test

Dart

dart:ui
Built-in types and core primitives for a Flutter application. [...]

Core

dart:async
Support for asynchronous programming, with classes such as Future and Stream. [...]
dart:collection
Classes and utilities that supplement the collection support in dart:core. [...]
dart:convert
Encoders and decoders for converting between different data representations, including JSON and UTF-8. [...]
dart:core
Built-in types, collections, and other core functionality for every Dart program. [...]
dart:developer
Interact with developer tools such as the debugger and inspector. [...]
dart:math
Mathematical constants and functions, plus a random number generator. [...]
dart:typed_data
Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers) and SIMD numeric types. [...]

VM

dart:io
File, socket, HTTP, and other I/O support for non-web applications. [...]
dart:isolate
Concurrent programming using isolates: independent workers that are similar to threads but don't share memory, communicating only via messages. [...]