HomeDocs
Skip to main content

RecorderManager.resume

Introduction

Resumes recording, which means continuing a previously paused recording.

Usage Restrictions

Supported in the basic library version 4.0.0 or higher.

Parameters

Object object

PropertyTypeDefaultRequiredDescription
successfunctionNoCallback function for a successful API invocation.
failfunctionNoCallback function for a failed API invocation.
completefunctionNoCallback function that is called at the end of the API invocation (whether it was successful or failed).

object.success Callback Function Parameters

Object res

PropertyTypeDescription
successstringtrue - Success

object.fail Callback Function Parameters

Object res

PropertyTypeDescription
errMsgstringError message
successstringfalse - Failure

errMsg Description

Error MessageDescription
Audio is recording, don't start record again : A10008Recording is in progress, please do not start again
Audio failed with permission denied : A10011No recording permission

Example

// pages/index/index.js

Page({
resume() {
const recorderManager = dlt.getRecorderManager();

recorderManager.resume({
success: () => {
console.log('Success');
},
});
},
});

In this example, the RecorderManager is used to resume a previously paused recording. The resume method is called, and event listeners can be set up to handle the recording events as needed.

Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.