eeui plugin install https://github.com/aipaw/eeui-plugin-recordereeui plugin uninstall https://github.com/aipaw/eeui-plugin-recorderconst recorder = app.requireModule("eeui/recorder");-
options(Object)-
channel(String) (stereo,mono, default:stereo) -
quality(String) (low[8000Hz, 8bit] |standard[22050Hz, 16bit] |high[44100Hz, 16bit], default:standard)
-
-
[
callback] (Function)
recorder.start({
channel: `mono`
}, () => {
console.log('started')
})
- [
callback] (Function)
recorder.pause()
recorder.pause(() => {
console.log('paused')
})
- [
callback] (Function)
result(Object)path(String)
recorder.stop((ret) => {
console.log(ret.path)
})
format: "aac" (iOS) / "wav" (Android)
Error
RECORDER_INTERNAL_ERROR
RECORD_AUDIO_PERMISSION_DENIED
RECORD_AUDIO_INVALID_ARGUMENT
RECORDER_BUSY
RECORDER_NOT_STARTED