Help Center/ Meeting/ Client SDK Reference/ Electron SDK/ APIs/ Meeting Control Objects/ Subscribing to Local Recording Status Notifications
Updated on 2025-04-18 GMT+08:00

Subscribing to Local Recording Status Notifications

Function

This API is used to subscribe to local recording status notifications.

Function Prototype

setOnSelfLocalRecordStateNotifyCB(onSelfLocalRecordStateNotify: (localRecordStateInfo: LocalRecordStateInfo) => void): voidsetOnSelfLocalRecordStateNotifyCB(onSelfLocalRecordStateNotify: (localRecordStateInfo: LocalRecordStateInfo) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
onSelfLocalRecordStateNotify Yes (localRecordStateInfo: LocalRecordStateInfo) => void Local recording status notification.

Return Values

void

Notification Method Parameters

(localRecordStateInfo: LocalRecordStateInfo) => void

Table 2 Input parameter description
Parameter Type Description
localRecordStateInfo LocalRecordStateInfo Local recording status information.
Table 3 LocalRecordStateInfo
Parameter Type Description
status LocalRecordStatus Local recording status.
localRecordPath string Path of local recording files.
startTime number Recording start time (timestamp, in seconds).
Table 4 Enumerated values of LocalRecordStatus
Enumeration Name Enumerated Value Description
LOCAL_RECORD_STATUS_START 0 Local recording starts.
LOCAL_RECORD_STATUS_STOPPED 1 Local recording stops.
LOCAL_RECORD_STATUS_PAUSED 2 Local recording pauses.
LOCAL_RECORD_STATUS_RESUMED 3 Local recording resumes.