1- /** 1.3 .0 */
1+ /** 1.4 .0 */
22
33// eslint-disable-next-line no-undef
44export as namespace SendBirdCall ;
@@ -155,6 +155,7 @@ export interface DirectCall {
155155 onRemoteVideoSettingsChanged : ( ( call : DirectCall ) => void ) | null ;
156156 onCustomItemsUpdated : ( ( call : DirectCall , updatedKeys : string [ ] ) => void ) | null ;
157157 onCustomItemsDeleted : ( ( call : DirectCall , deletedKeys : string [ ] ) => void ) | null ;
158+ onRemoteRecordingStatusChanged : ( ( call : DirectCall ) => void ) | null ;
158159 onEnded : ( ( call : DirectCall ) => void ) | null ;
159160
160161 readonly callId : string ;
@@ -174,6 +175,8 @@ export interface DirectCall {
174175 readonly endResult : DirectCallEndResult ;
175176 readonly callLog : DirectCallLog ;
176177 readonly customItems : CustomItems ;
178+ readonly localRecordingStatus : RecordingStatus ;
179+ readonly remoteRecordingStatus : RecordingStatus ;
177180 readonly localMediaView : HTMLMediaElement ;
178181 readonly remoteMediaView : HTMLMediaElement ;
179182
@@ -198,7 +201,7 @@ export interface DirectCall {
198201 deleteAllCustomItems ( callback ?: CustomItemsHandler ) : Promise < CustomItemsResult > ;
199202
200203 startRecording ( options : DirectCallRecordOption ) : string ;
201- stopRecording ( recordingId : string ) : boolean ;
204+ stopRecording ( recordId : string ) : boolean ;
202205}
203206
204207export interface DirectCallOption {
@@ -287,7 +290,7 @@ export interface MediaAccess {
287290
288291export interface DirectCallRecordOption {
289292 callId : string ;
290- recordingType : string ;
293+ recordingType : RecordingType ;
291294 fileName ?: string ;
292295}
293296
@@ -297,12 +300,17 @@ declare const DirectCallRecordOption: {
297300
298301export enum RecordingType {
299302 REMOTE_AUDIO_AND_VIDEO = 'remote_audio_and_video' ,
300- REMOTE_AUDIO_ONLY = 'remove_audio_only ' ,
303+ REMOTE_AUDIO_ONLY = 'remote_audio_only ' ,
301304 LOCAL_REMOTE_AUDIOS = 'local_remote_audios' ,
302305 LOCAL_AUDIO_REMOTE_AUDIO_AND_VIDEO = 'local_audio_remote_audio_and_video' ,
303306 LOCAL_AUDIO_AND_VIDEO_REMOTE_AUDIO = 'local_audio_and_video_remote_audio' ,
304307}
305308
309+ export enum RecordingStatus {
310+ NONE = 'none' ,
311+ RECORDING = 'recording' ,
312+ }
313+
306314/* eslint-disable babel/camelcase */
307315export interface WebhookData {
308316 category : string ;
0 commit comments