getRecorderManager

Requires:
BaseKit≥2.3.2@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
import { getRecorderManager } from '@ray-js/ray';

// Promise usage
try {
  const res = await getRecorderManager();
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Method signature
getRecorderManager(params: )
Minimum SDK versions
iOSThingSmartBaseKitBizBundle
≥ 5.2.1
Androidcom.thingclips.smart:thingsmart-bizbundle-basekit
≥ 5.2.0

Description

Get the global singleton recorder manager

Parameters

PropertyTypeRequiredDescription
complete() => voidNoCompletion callback (executed on both success and failure)
success() => voidNoCallback on successful API call
fail(params: Object) => voidNoFailure callback
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

Return Value

Type: RecorderManager
RecorderManager
PropertyTypeDescriptionMinimum SDK versions
startfunctionStart recording—
resumefunctionResume recording—
pausefunctionPause recording—
stopfunctionStop recording—
startRecordingfunctionStart continuous recording—
stopRecordingfunctionStop continuous recording—

Examples

import { getRecorderManager } from '@ray-js/ray'

const manager = await getRecorderManager();