@100mslive/react-native-hms 1.10.8 → 1.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +19 -2
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +34 -3
- package/android/src/main/java/com/reactnativehmssdk/PipActionReceiver.kt +3 -1
- package/ios/HMSRNSDK.swift +13 -8
- package/lib/commonjs/classes/HMSAudioDevice.js +9 -0
- package/lib/commonjs/classes/HMSAudioDevice.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixingMode.js +11 -0
- package/lib/commonjs/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrack.js +9 -0
- package/lib/commonjs/classes/HMSAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSCameraFacing.js +9 -0
- package/lib/commonjs/classes/HMSCameraFacing.js.map +1 -1
- package/lib/commonjs/classes/HMSConfig.js +27 -0
- package/lib/commonjs/classes/HMSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSException.js +18 -0
- package/lib/commonjs/classes/HMSException.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSTimedMetadata.js.map +1 -1
- package/lib/commonjs/classes/HMSIOSAudioMode.js +15 -0
- package/lib/commonjs/classes/HMSIOSAudioMode.js.map +1 -1
- package/lib/commonjs/classes/HMSLogAlarmManager.js +12 -0
- package/lib/commonjs/classes/HMSLogAlarmManager.js.map +1 -1
- package/lib/commonjs/classes/HMSLogLevel.js +12 -0
- package/lib/commonjs/classes/HMSLogLevel.js.map +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js +14 -0
- package/lib/commonjs/classes/HMSLogSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js +11 -0
- package/lib/commonjs/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js +40 -10
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js.map +1 -1
- package/lib/commonjs/classes/HMSPIPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSPIPListenerActions.js +9 -0
- package/lib/commonjs/classes/HMSPIPListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSPeer.js +148 -0
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerType.js +12 -1
- package/lib/commonjs/classes/HMSPeerType.js.map +1 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js +14 -0
- package/lib/commonjs/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +17 -0
- package/lib/commonjs/classes/HMSRole.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js +13 -0
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSSDK.js +1126 -248
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSSessionStore.js +14 -15
- package/lib/commonjs/classes/HMSSessionStore.js.map +1 -1
- package/lib/commonjs/classes/HMSTrack.js +13 -0
- package/lib/commonjs/classes/HMSTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettings.js +10 -0
- package/lib/commonjs/classes/HMSTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js +9 -0
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSource.js +10 -0
- package/lib/commonjs/classes/HMSTrackSource.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackType.js +7 -0
- package/lib/commonjs/classes/HMSTrackType.js.map +1 -1
- package/lib/commonjs/classes/HMSUpdateListenerActions.js +42 -3
- package/lib/commonjs/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js +17 -0
- package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +12 -2
- package/lib/commonjs/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HmsView.js +42 -0
- package/lib/commonjs/classes/HmsView.js.map +1 -1
- package/lib/module/classes/HMSAudioDevice.js +9 -0
- package/lib/module/classes/HMSAudioDevice.js.map +1 -1
- package/lib/module/classes/HMSAudioMixingMode.js +11 -0
- package/lib/module/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/module/classes/HMSAudioTrack.js +9 -0
- package/lib/module/classes/HMSAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSCameraFacing.js +9 -0
- package/lib/module/classes/HMSCameraFacing.js.map +1 -1
- package/lib/module/classes/HMSConfig.js +27 -0
- package/lib/module/classes/HMSConfig.js.map +1 -1
- package/lib/module/classes/HMSException.js +18 -0
- package/lib/module/classes/HMSException.js.map +1 -1
- package/lib/module/classes/HMSHLSTimedMetadata.js.map +1 -1
- package/lib/module/classes/HMSIOSAudioMode.js +15 -0
- package/lib/module/classes/HMSIOSAudioMode.js.map +1 -1
- package/lib/module/classes/HMSLogAlarmManager.js +12 -0
- package/lib/module/classes/HMSLogAlarmManager.js.map +1 -1
- package/lib/module/classes/HMSLogLevel.js +12 -0
- package/lib/module/classes/HMSLogLevel.js.map +1 -1
- package/lib/module/classes/HMSLogSettings.js +14 -0
- package/lib/module/classes/HMSLogSettings.js.map +1 -1
- package/lib/module/classes/HMSNetworkQuality.js +11 -0
- package/lib/module/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/module/classes/HMSNoiseCancellationPlugin.js +40 -10
- package/lib/module/classes/HMSNoiseCancellationPlugin.js.map +1 -1
- package/lib/module/classes/HMSPIPConfig.js.map +1 -1
- package/lib/module/classes/HMSPIPListenerActions.js +9 -0
- package/lib/module/classes/HMSPIPListenerActions.js.map +1 -1
- package/lib/module/classes/HMSPeer.js +149 -0
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPeerType.js +12 -1
- package/lib/module/classes/HMSPeerType.js.map +1 -1
- package/lib/module/classes/HMSRTMPConfig.js +14 -0
- package/lib/module/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/module/classes/HMSRole.js +17 -0
- package/lib/module/classes/HMSRole.js.map +1 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js +13 -0
- package/lib/module/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSSDK.js +1126 -248
- package/lib/module/classes/HMSSDK.js.map +1 -1
- package/lib/module/classes/HMSSessionStore.js +14 -15
- package/lib/module/classes/HMSSessionStore.js.map +1 -1
- package/lib/module/classes/HMSTrack.js +13 -0
- package/lib/module/classes/HMSTrack.js.map +1 -1
- package/lib/module/classes/HMSTrackSettings.js +10 -0
- package/lib/module/classes/HMSTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSTrackSettingsInitState.js +9 -0
- package/lib/module/classes/HMSTrackSettingsInitState.js.map +1 -1
- package/lib/module/classes/HMSTrackSource.js +10 -0
- package/lib/module/classes/HMSTrackSource.js.map +1 -1
- package/lib/module/classes/HMSTrackType.js +7 -0
- package/lib/module/classes/HMSTrackType.js.map +1 -1
- package/lib/module/classes/HMSUpdateListenerActions.js +42 -3
- package/lib/module/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/module/classes/HMSVideoTrack.js +17 -0
- package/lib/module/classes/HMSVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js +12 -2
- package/lib/module/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/module/classes/HmsView.js +43 -0
- package/lib/module/classes/HmsView.js.map +1 -1
- package/lib/typescript/classes/HMSAudioDevice.d.ts +14 -0
- package/lib/typescript/classes/HMSAudioMixingMode.d.ts +11 -0
- package/lib/typescript/classes/HMSAudioTrack.d.ts +9 -0
- package/lib/typescript/classes/HMSCameraFacing.d.ts +11 -0
- package/lib/typescript/classes/HMSConfig.d.ts +27 -0
- package/lib/typescript/classes/HMSException.d.ts +18 -0
- package/lib/typescript/classes/HMSHLSTimedMetadata.d.ts +12 -0
- package/lib/typescript/classes/HMSIOSAudioMode.d.ts +15 -0
- package/lib/typescript/classes/HMSLogAlarmManager.d.ts +12 -0
- package/lib/typescript/classes/HMSLogLevel.d.ts +12 -0
- package/lib/typescript/classes/HMSLogSettings.d.ts +14 -0
- package/lib/typescript/classes/HMSNetworkQuality.d.ts +11 -0
- package/lib/typescript/classes/HMSNoiseCancellationPlugin.d.ts +36 -6
- package/lib/typescript/classes/HMSPIPConfig.d.ts +37 -0
- package/lib/typescript/classes/HMSPIPListenerActions.d.ts +17 -0
- package/lib/typescript/classes/HMSPeer.d.ts +137 -0
- package/lib/typescript/classes/HMSPeerType.d.ts +11 -0
- package/lib/typescript/classes/HMSRTMPConfig.d.ts +14 -0
- package/lib/typescript/classes/HMSRole.d.ts +17 -0
- package/lib/typescript/classes/HMSRtmpVideoResolution.d.ts +13 -0
- package/lib/typescript/classes/HMSSDK.d.ts +1080 -235
- package/lib/typescript/classes/HMSSessionStore.d.ts +14 -15
- package/lib/typescript/classes/HMSTrack.d.ts +13 -0
- package/lib/typescript/classes/HMSTrackSettings.d.ts +10 -0
- package/lib/typescript/classes/HMSTrackSettingsInitState.d.ts +11 -0
- package/lib/typescript/classes/HMSTrackSource.d.ts +10 -0
- package/lib/typescript/classes/HMSTrackType.d.ts +7 -0
- package/lib/typescript/classes/HMSUpdateListenerActions.d.ts +290 -4
- package/lib/typescript/classes/HMSVideoTrack.d.ts +17 -0
- package/lib/typescript/classes/HMSVideoTrackSettings.d.ts +12 -2
- package/lib/typescript/classes/HmsView.d.ts +16 -0
- package/package.json +1 -1
- package/sdk-versions.json +2 -2
- package/src/classes/HMSAudioDevice.ts +18 -0
- package/src/classes/HMSAudioMixingMode.ts +11 -0
- package/src/classes/HMSAudioTrack.ts +9 -0
- package/src/classes/HMSCameraFacing.ts +11 -0
- package/src/classes/HMSConfig.ts +27 -0
- package/src/classes/HMSException.ts +18 -0
- package/src/classes/HMSHLSTimedMetadata.ts +12 -0
- package/src/classes/HMSIOSAudioMode.ts +15 -0
- package/src/classes/HMSLogAlarmManager.ts +12 -0
- package/src/classes/HMSLogLevel.ts +12 -0
- package/src/classes/HMSLogSettings.ts +14 -0
- package/src/classes/HMSNetworkQuality.ts +11 -0
- package/src/classes/HMSNoiseCancellationPlugin.ts +41 -10
- package/src/classes/HMSPIPConfig.ts +25 -8
- package/src/classes/HMSPIPListenerActions.ts +18 -0
- package/src/classes/HMSPeer.ts +137 -0
- package/src/classes/HMSPeerType.ts +13 -2
- package/src/classes/HMSRTMPConfig.ts +14 -0
- package/src/classes/HMSRole.ts +17 -0
- package/src/classes/HMSRtmpVideoResolution.ts +13 -0
- package/src/classes/HMSSDK.tsx +1182 -277
- package/src/classes/HMSSessionStore.ts +14 -15
- package/src/classes/HMSTrack.ts +13 -0
- package/src/classes/HMSTrackSettings.ts +10 -0
- package/src/classes/HMSTrackSettingsInitState.ts +11 -0
- package/src/classes/HMSTrackSource.ts +10 -0
- package/src/classes/HMSTrackType.ts +7 -0
- package/src/classes/HMSUpdateListenerActions.ts +312 -3
- package/src/classes/HMSVideoTrack.ts +17 -0
- package/src/classes/HMSVideoTrackSettings.ts +12 -2
- package/src/classes/HmsView.tsx +39 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_HMSEncoder","_HMSHelper","_HMSLogger","_HMSUpdateListenerActions","_HmsView","_HMSManagerModule","_HMSPIPListenerActions","_HMSNativeEventListener","_HMSPeersCache","_HMSRoomCache","_HMSPeerUpdate","_HMSSessionStore","_HMSPeerListIterator","_HMSInteractivityCenter","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ReactNativeVersion","HmsSdk","HMSSDK","constructor","id","logger","verbose","clearHmsPeersCache","clearHmsRoomCache","removeAllListeners","HMSManager","destroy","roomCode","userId","endpoint","getAuthTokenByRoomCode","config","setHmsPeersCache","HMSPeersCache","setHmsRoomCache","HMSRoomCache","join","preview","React","forwardRef","props","ref","trackId","style","mirror","scaleType","setZOrderMediaOverlay","autoSimulcast","createElement","HmsViewComponent","_this$appStateSubscri","appStateSubscription","remove","HMSEncoder","clearData","data","op","leave","roomLeaveCleanup","message","type","sendBroadcastMessage","roles","sendGroupMessage","HMSHelper","getRoleNames","peer","peerId","peerID","sendDirectMessage","metadata","changeMetadata","startRTMPOrRecording","stopRtmpAndRecording","startHLSStreaming","stopHLSStreaming","sendHLSTimedMetadata","role","force","name","changeRole","changeRoleOfPeer","ofRoles","toRole","map","ofRole","filter","Boolean","changeRoleOfPeersWithRoles","track","mute","changeTrackState","source","roleNames","changeTrackStateForRoles","reason","removePeer","lock","endRoom","changeName","previewForRole","previewTracks","encodeHmsPreviewForRoleTracks","tracks","cancelPreview","acceptRoleChange","setPlaybackForAllAudio","remoteMuteAllAudio","_getHmsRoomCache","hmsRoom","getRoom","getHmsRoomCache","updateRoomCache","encodedHmsRoom","encodeHmsRoom","localPeer","getLocalPeer","encodedLocalPeer","encodeHmsLocalPeer","remotePeers","getRemotePeers","encodedRemotePeers","encodeHmsRemotePeers","getRoles","encodedRoles","encodeHmsRoles","volume","setVolume","startScreenshare","isScreenShared","stopScreenshare","enableNetworkQualityUpdates","disableNetworkQualityUpdates","audioMixingMode","Platform","OS","startAudioshare","console","log","isAudioShared","stopAudioshare","getAudioMixingMode","setAudioMixingMode","getAudioDevicesList","getAudioOutputRouteType","audioDevice","switchAudioOutput","Error","switchAudioOutputUsingIOSUI","audioMode","setAudioMode","callback","addEventListener","HMSUpdateListenerActions","ON_AUDIO_DEVICE_CHANGED","setAudioDeviceChangeListener","remoteVideoTrackData","getRemoteVideoTrackFromTrackId","encodeHmsRemoteVideoTrack","remoteAudioTrackData","getRemoteAudioTrackFromTrackId","encodeHmsRemoteAudioTrack","peersCache","getHmsPeersCache","peerRole","getProperty","encodeHmsPeer","raiseLocalPeerHand","lowerLocalPeerHand","lowerRemotePeerHand","options","uniqueId","Math","random","toString","slice","getPeerListIterator","limit","HMSPeerListIterator","totalCount","enabled","setAlwaysScreenOn","action","ON_PREVIEW","emitterSubscriptions","previewSubscription","HMSNativeEventListener","addListener","onPreviewListener","onPreviewDelegate","ON_JOIN","joinSubscription","onJoinListener","onJoinDelegate","ON_ROOM_UPDATE","roomSubscription","onRoomListener","onRoomDelegate","ON_TRANSCRIPTS","transcriptsSubscription","onTranscriptsListener","onTranscriptsDelegate","ON_PEER_UPDATE","peerSubscription","onPeerListener","onPeerDelegate","ON_PEER_LIST_UPDATED","peerListUpdatedSubscription","onPeerListUpdatedListener","onPeerListUpdatedDelegate","ON_TRACK_UPDATE","trackSubscription","onTrackListener","onTrackDelegate","ON_ERROR","errorSubscription","onErrorListener","onErrorDelegate","ON_MESSAGE","messageSubscription","onMessageListener","onMessageDelegate","ON_SPEAKER","speakerSubscription","onSpeakerListener","onSpeakerDelegate","RECONNECTING","reconnectingSubscription","reconnectingListener","onReconnectingDelegate","RECONNECTED","reconnectedSubscription","reconnectedListener","onReconnectedDelegate","ON_ROLE_CHANGE_REQUEST","roleChangeReqSubscription","onRoleChangeRequestListener","onRoleChangeRequestDelegate","ON_CHANGE_TRACK_STATE_REQUEST","changeTrackReqSubscription","onChangeTrackStateRequestListener","onChangeTrackStateRequestDelegate","ON_REMOVED_FROM_ROOM","removedFromRoomSubscription","onRemovedFromRoomListener","onRemovedFromRoomDelegate","ON_RTC_STATS","rtcStatsSubscription","RTCStatsListener","onRtcStatsDelegate","ON_LOCAL_AUDIO_STATS","lclAudioStatsSubscription","onLocalAudioStatsListener","onLocalAudioStatsDelegate","ON_LOCAL_VIDEO_STATS","lclVideoStatsSubscription","onLocalVideoStatsListener","onLocalVideoStatsDelegate","ON_REMOTE_AUDIO_STATS","rmAudioStatsSubscription","onRemoteAudioStatsListener","onRemoteAudioStatsDelegate","ON_REMOTE_VIDEO_STATS","rmVideoStatsSubscription","onRemoteVideoStatsListener","onRemoteVideoStatsDelegate","audDeviceChgSubscription","onAudioDeviceChangedListener","onAudioDeviceChangedDelegate","ON_SESSION_STORE_AVAILABLE","sessionStoreAvailableSubscription","onSessionStoreAvailableListener","onSessionStoreAvailableDelegate","HMSPIPListenerActions","ON_PIP_ROOM_LEAVE","pipRoomLeaveSubscription","onPIPRoomLeaveListener","onPIPRoomLeaveDelegate","ON_PIP_MODE_CHANGED","pipModeChangedSubscription","onPIPModeChangedListener","onPIPModeChangedDelegate","subscription","undefined","values","forEach","emitterSubscription","room","encodeHmsPreviewTracks","_getHmsRoomCache2","transformTranscripts","transcripts","peerData","ordinal","HMSPeerUpdateOrdinals","keys","encodeHmsPeerUpdate","HMSPeerUpdate","PEER_LEFT","sendPeerUpdateWhenPeerLeaves","_getHmsPeersCache","updatePeerCache","sendPeerUpdate","_getHmsPeersCache2","addedPeers","encodeHmsPeers","removedPeers","totalAddedPeers","length","totalRemovedPeers","_getHmsPeersCache3","encodeHmsTrack","encodeHMSMessage","speakers","encodeHmsSpeakers","warn","encodeHMSException","encodedRoleChangeRequest","encodeHmsRoleChangeRequest","encodeHmsChangeTrackStateRequest","requestedBy","roomEnded","rtcStats","encodeRTCStats","localAudioStats","encodeHMSLocalAudioStats","encodeHmsLocalAudioTrack","localVideoStats","encodeHMSLocalVideoStats","encodeHmsLocalVideoTrack","remoteAudioStats","encodeHMSRemoteAudioStats","remoteVideoStats","encodeHMSRemoteVideoStats","sessionStore","HMSSessionStore","hmsLogger","setLogger","build","params","version","major","minor","patch","trackSettings","appGroup","preferredExtension","frameworkInfo","sdkVersion","isPrebuilt","logSettings","isPipModeSupported","handlePipActions","enterPipMode","setPipParams","changeIOSPIPVideoTrack","setActiveSpeakerInIOSPIP","enable","startRealTimeTranscription","handleRealTimeTranscription","stopRealTimeTranscription","interactivityCenter","_interactivityCenter","HMSInteractivityCenter","getLogger","exports"],"sources":["HMSSDK.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport { HMSEncoder } from './HMSEncoder';\nimport { HMSHelper } from './HMSHelper';\nimport { getLogger, logger, setLogger } from './HMSLogger';\nimport { HMSUpdateListenerActions } from './HMSUpdateListenerActions';\nimport { HmsViewComponent } from './HmsView';\n\nimport HMSManager from '../modules/HMSManagerModule';\n\nimport type { HMSTrackType } from './HMSTrackType';\nimport type { HmsComponentProps } from './HmsView';\nimport type { HMSConfig } from './HMSConfig';\nimport type { HMSLocalPeer } from './HMSLocalPeer';\nimport type { HMSRemotePeer } from './HMSRemotePeer';\nimport type { HMSRoom } from './HMSRoom';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSLogger } from './HMSLogger';\nimport type { HMSPeer } from './HMSPeer';\nimport type { HMSTrackSettings } from './HMSTrackSettings';\nimport type { HMSRTMPConfig } from './HMSRTMPConfig';\nimport type { HMSHLSConfig } from './HMSHLSConfig';\nimport type { HMSAudioDevice } from './HMSAudioDevice';\nimport type { HMSAudioMode } from './HMSAudioMode';\nimport type { HMSAudioMixingMode } from './HMSAudioMixingMode';\nimport type { HMSLogSettings } from './HMSLogSettings';\nimport { HMSPIPListenerActions } from './HMSPIPListenerActions';\nimport HMSNativeEventListener from './HMSNativeEventListener';\nimport type { HMSNativeEventSubscription } from './HMSNativeEventListener';\nimport {\n clearHmsPeersCache,\n getHmsPeersCache,\n HMSPeersCache,\n setHmsPeersCache,\n} from './HMSPeersCache';\nimport {\n clearHmsRoomCache,\n getHmsRoomCache,\n HMSRoomCache,\n setHmsRoomCache,\n} from './HMSRoomCache';\nimport { HMSPeerUpdate, HMSPeerUpdateOrdinals } from './HMSPeerUpdate';\nimport { HMSSessionStore } from './HMSSessionStore';\nimport type { HMSPeerListIteratorOptions } from './HMSPeerListIteratorOptions';\nimport { HMSPeerListIterator } from './HMSPeerListIterator';\nimport type { HMSPIPConfig } from './HMSPIPConfig';\nimport { HMSInteractivityCenter } from './HMSInteractivityCenter';\nimport type { HMSHLSTimedMetadata } from './HMSHLSTimedMetadata';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\n\ntype HmsViewProps = Omit<HmsComponentProps, 'id'>;\n\nconst ReactNativeVersion = require('react-native/Libraries/Core/ReactNativeVersion');\n\nlet HmsSdk: HMSSDK | undefined;\n\nexport class HMSSDK {\n id: string;\n private _interactivityCenter: HMSInteractivityCenter | null = null;\n\n private appStateSubscription?: any;\n private onPreviewDelegate?: any;\n private onJoinDelegate?: any;\n private onRoomDelegate?: any;\n private onTranscriptsDelegate?: any;\n private onPeerDelegate?: any;\n private onPeerListUpdatedDelegate?: any;\n private onTrackDelegate?: any;\n private onErrorDelegate?: any;\n private onMessageDelegate?: any;\n private onSpeakerDelegate?: any;\n private onReconnectingDelegate?: any;\n private onReconnectedDelegate?: any;\n private onRoleChangeRequestDelegate?: any;\n private onChangeTrackStateRequestDelegate?: any;\n private onRemovedFromRoomDelegate?: any;\n private onRtcStatsDelegate?: any;\n private onLocalAudioStatsDelegate?: any;\n private onLocalVideoStatsDelegate?: any;\n private onRemoteAudioStatsDelegate?: any;\n private onRemoteVideoStatsDelegate?: any;\n private onAudioDeviceChangedDelegate?: any;\n private onSessionStoreAvailableDelegate?: any;\n private onPIPRoomLeaveDelegate?: any;\n private onPIPModeChangedDelegate?: any;\n\n private emitterSubscriptions: Partial<\n Record<\n HMSUpdateListenerActions | HMSPIPListenerActions,\n HMSNativeEventSubscription\n >\n > = {};\n\n private constructor(id: string) {\n this.id = id;\n }\n\n /**\n * - Returns an instance of [HMSSDK] {@link HMSSDK}\n * - This function must be called to get an instance of HMSSDK class and only then user can interact with its methods.\n *\n * Regular Usage:\n *\n * const hmsInstance = await HMSSDK.build();\n *\n * For Advanced Use-Cases:\n * @param {trackSettings} trackSettings is an optional value only required to enable features like iOS Screen/Audio Share, Android Software Echo Cancellation, etc\n * @param {appGroup} appGroup is an optional value only required for implementing Screen & Audio Share on iOS. They are not required for Android. DO NOT USE if your app does not implements Screen or Audio Share on iOS.\n * @param {preferredExtension} preferredExtension is an optional value only required for implementing Screen & Audio Share on iOS. They are not required for Android. DO NOT USE if your app does not implements Screen or Audio Share on iOS.\n *\n * @static\n * @returns\n * @memberof HMSSDK\n */\n static async build(params?: {\n trackSettings?: HMSTrackSettings;\n appGroup?: String;\n preferredExtension?: String;\n logSettings?: HMSLogSettings;\n isPrebuilt?: boolean;\n }) {\n const { version } = require('../../package.json');\n const { major, minor, patch } = ReactNativeVersion.version;\n let id = await HMSManager.build({\n trackSettings: params?.trackSettings,\n appGroup: params?.appGroup, // required for iOS Screenshare, not required for Android\n preferredExtension: params?.preferredExtension, // required for iOS Screenshare, not required for Android\n frameworkInfo: {\n version: major + '.' + minor + '.' + patch,\n sdkVersion: version,\n isPrebuilt: params?.isPrebuilt || false,\n },\n logSettings: params?.logSettings,\n });\n HmsSdk = new HMSSDK(id);\n return HmsSdk;\n }\n\n /**\n * - Calls removeListeners that in turn breaks all connections with native listeners.\n *\n * @memberof HMSSDK\n */\n destroy = async () => {\n logger?.verbose('#Function destroy', { id: this.id });\n clearHmsPeersCache();\n clearHmsRoomCache();\n this.removeAllListeners();\n return await HMSManager.destroy({ id: this.id });\n };\n\n /**\n * - getAuthTokenByRoomCode function is used to get the Auth Token by Room Code\n *\n * checkout {@link https://www.100ms.live/docs/concepts/v2/concepts/rooms/room-codes/room-codes} for more info\n *\n * @memberof HMSSDK\n */\n getAuthTokenByRoomCode = async (\n roomCode: string,\n userId?: string,\n endpoint?: string\n ): Promise<string> => {\n logger?.verbose('#Function getAuthTokenByRoomCode', {\n id: this.id,\n roomCode,\n userId,\n endpoint,\n });\n\n return HMSManager.getAuthTokenByRoomCode({\n id: this.id,\n roomCode,\n userId,\n endpoint,\n });\n };\n\n /**\n * takes an instance of [HMSConfig]{@link HMSConfig} and joins the room.\n * after joining the room user will start receiving the events and updates of the room.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/join} for more info\n *\n * @param {HMSConfig} config\n * @memberof HMSSDK\n */\n join = async (config: HMSConfig) => {\n logger?.verbose('#Function join', { config, id: this.id });\n setHmsPeersCache(new HMSPeersCache(this.id));\n setHmsRoomCache(new HMSRoomCache(this.id));\n await HMSManager.join({ ...config, id: this.id });\n };\n\n /**\n * - preview function is used to initiate a preview for the localPeer.\n * - We can call this function and wait for a response in previewListener, the response will contain previewTracks for local peer.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/preview} for more info\n *\n * @param {HMSConfig} config\n * @memberof HMSSDK\n */\n preview = (config: HMSConfig) => {\n logger?.verbose('#Function preview', { config, id: this.id });\n HMSManager.preview({ ...config, id: this.id });\n };\n\n /**\n * - HmsView is react component that takes trackId and starts showing that track on a tile.\n * - The appearance of tile is completely customizable with style prop.\n * - Scale type can determine how the incoming video will fit in the canvas check {@link HMSVideoViewMode} for more information.\n * - Mirror to flip the video vertically.\n * - Auto Simulcast to automatically select the best Streaming Quality of track if feature is enabled in Room.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/render-video} for more info\n *\n * @param {HmsViewProps}\n * @memberof HMSSDK\n */\n HmsView = React.forwardRef<any, HmsViewProps>((props, ref) => {\n const {\n trackId,\n style,\n mirror,\n scaleType,\n setZOrderMediaOverlay,\n autoSimulcast,\n } = props;\n return (\n <HmsViewComponent\n ref={ref}\n trackId={trackId}\n style={style}\n autoSimulcast={autoSimulcast}\n setZOrderMediaOverlay={setZOrderMediaOverlay}\n mirror={mirror}\n scaleType={scaleType}\n id={this.id}\n />\n );\n });\n\n roomLeaveCleanup = () => {\n this?.appStateSubscription?.remove();\n clearHmsPeersCache();\n clearHmsRoomCache();\n HMSEncoder.clearData(); // Clearing cached data in encoder\n };\n\n /**\n * Calls leave function of native sdk and session of current user is invalidated.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/leave} for more info\n *\n * @memberof HMSSDK\n */\n leave = async () => {\n logger?.verbose('#Function leave', { id: this.id });\n const data = {\n id: this.id,\n };\n\n const op = await HMSManager.leave(data);\n this.roomLeaveCleanup();\n return op;\n };\n\n /**\n * - This function sends message to all the peers in the room, the get the message in onMessage listener.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/chat} for more info\n *\n * @memberof HMSSDK\n * @param message the message that is to be sent\n * @param type the default type is set to CHAT. You can pass a custom type here for sending events like Emoji Reactions, Notifications, etc\n */\n sendBroadcastMessage = async (message: string, type: string = 'chat') => {\n logger?.verbose('#Function sendBroadcastMessage', {\n message,\n type: type || null,\n id: this.id,\n });\n const data: { messageId: string | undefined } =\n await HMSManager.sendBroadcastMessage({\n message,\n type: type || null,\n id: this.id,\n });\n\n return data;\n };\n\n /**\n * - sendGroupMessage sends a message to specific set of roles, whoever has any of those role in room\n * will get the message in onMessage listener.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/chat} for more info\n *\n * @memberof HMSSDK\n */\n sendGroupMessage = async (\n message: string,\n roles: HMSRole[],\n type: string = 'chat'\n ) => {\n logger?.verbose('#Function sendGroupMessage', {\n message,\n roles,\n id: this.id,\n type: type || null,\n });\n const data: { messageId: string | undefined } =\n await HMSManager.sendGroupMessage({\n message,\n roles: HMSHelper.getRoleNames(roles),\n id: this.id,\n type: type || null,\n });\n\n return data;\n };\n\n /**\n * - sendDirectMessage sends a private message to a single peer, only that peer will get the message\n * in onMessage Listener.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/chat} for more info\n *\n * @memberof HMSSDK\n */\n sendDirectMessage = async (\n message: string,\n peer: HMSPeer,\n type: string = 'chat'\n ) => {\n logger?.verbose('#Function sendDirectMessage', {\n message,\n peerId: peer.peerID,\n id: this.id,\n type: type || null,\n });\n const data: { messageId: string | undefined } =\n await HMSManager.sendDirectMessage({\n message,\n peerId: peer.peerID,\n id: this.id,\n type: type || null,\n });\n\n return data;\n };\n\n /**\n * - changeMetadata changes a specific field in localPeer which is [metadata] it is a string that can\n * be used for various functionalities like raiseHand, beRightBack and many more that explains the\n * current status of the peer.\n *\n * - it is advised to use a json object in string format to store multiple dataPoints in metadata.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/advanced-features/change-metadata} for more info\n *\n * @param {string}\n * @memberof HMSSDK\n */\n changeMetadata = async (metadata: string) => {\n logger?.verbose('#Function changeMetadata', { metadata, id: this.id });\n return await HMSManager.changeMetadata({ metadata, id: this.id });\n };\n\n /**\n * - startRTMPOrRecording takes a configuration object {@link HMSRTMPConfig} and stats the RTMP recording\n * - this object of {@link HMSRTMPConfig} sets the urls for streaming and weather to set recording on or not\n * - we get the response of this function in onRoomUpdate as RTMP_STREAMING_STATE_UPDATED.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/recording} for more info\n *\n * @memberof HMSSDK\n */\n startRTMPOrRecording = async (data: HMSRTMPConfig) => {\n logger?.verbose('#Function startRTMPOrRecording', {\n ...data,\n id: this.id,\n });\n\n const op = await HMSManager.startRTMPOrRecording({ ...data, id: this.id });\n return op;\n };\n\n /**\n * - this function stops all the ongoing RTMP streaming and recording.\n * - we get the response of this function in onRoomUpdate as RTMP_STREAMING_STATE_UPDATED.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/recording} for more info\n *\n * @memberof HMSSDK\n */\n stopRtmpAndRecording = async () => {\n logger?.verbose('#Function stopRtmpAndRecording', {});\n const op = await HMSManager.stopRtmpAndRecording({ id: this.id });\n return op;\n };\n\n /**\n * - This function starts HLSStreaming.\n * - we get the response of this function in onRoomUpdate as HLS_STREAMING_STATE_UPDATED.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/hls-streaming} for more info\n *\n * @param {HMSHLSConfig}\n * @memberof HMSSDK\n */\n startHLSStreaming = async (data?: HMSHLSConfig) => {\n logger?.verbose('#Function startHLSStreaming', {\n ...data,\n id: this.id,\n });\n return await HMSManager.startHLSStreaming({ ...data, id: this.id });\n };\n\n /**\n * - stopHLSStreaming function stops the ongoing HLSStreams.\n * - we get the response of this function in onRoomUpdate as HLS_STREAMING_STATE_UPDATED.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/hls-streaming} for more info\n *\n * @memberof HMSSDK\n */\n stopHLSStreaming = async () => {\n logger?.verbose('#Function stopHLSStreaming', {});\n return await HMSManager.stopHLSStreaming({ id: this.id });\n };\n\n /**\n * send timed metadata for HLS player\n * @param metadata list of {@link HMSHLSTimedMetadata} to be sent\n * @returns Promise<boolean>\n */\n sendHLSTimedMetadata = async (\n metadata: HMSHLSTimedMetadata[]\n ): Promise<boolean> => {\n const data = { metadata, id: this.id };\n logger?.verbose('#Function sendHLSTimedMetadata', data);\n return await HMSManager.sendHLSTimedMetadata(data);\n };\n\n /**\n * @deprecated This function has been deprecated in favor of #Function changeRoleOfPeer\n *\n * - This function can be used in a situation when we want to change role hence manipulate their\n * access and rights in the current room, it takes the peer {@link HMSPeer} whom role we want to change,\n * role {@link HMSRole} which will be the new role for that peer and weather to forcefully change\n * the role or ask the to accept the role change request using a boolean force.\n *\n * - if we change the role forcefully the peer's role will be updated without asking the peer\n * otherwise the user will get the roleChangeRequest in roleChangeRequest listener.\n * for more information on this checkout {@link onRoleChangeRequestListener}\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/change-role} for more info\n *\n * @memberof HMSSDK\n */\n changeRole = async (peer: HMSPeer, role: HMSRole, force: boolean = false) => {\n const data = {\n peerId: peer?.peerID,\n role: role?.name,\n force: force,\n id: this.id,\n };\n logger?.verbose('#Function changeRole', data);\n return await HMSManager.changeRole(data);\n };\n\n /**\n * - This function can be used in a situation when we want to change role hence manipulate their\n * access and rights in the current room, it takes the peer {@link HMSPeer} whom role we want to change,\n * role {@link HMSRole} which will be the new role for that peer and weather to forcefully change\n * the role or ask the to accept the role change request using a boolean force.\n *\n * - if we change the role forcefully the peer's role will be updated without asking the peer\n * otherwise the user will get the roleChangeRequest in roleChangeRequest listener.\n * for more information on this checkout {@link onRoleChangeRequestListener}\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/change-role} for more info\n *\n * @memberof HMSSDK\n */\n changeRoleOfPeer = async (\n peer: HMSPeer,\n role: HMSRole,\n force: boolean = false\n ) => {\n const data = {\n peerId: peer.peerID,\n role: role.name,\n force: force,\n id: this.id,\n };\n logger?.verbose('#Function changeRoleOfPeer', data);\n return HMSManager.changeRoleOfPeer(data);\n };\n\n /**\n * - This function can be used in a situation when we want to change role of multiple peers by specifying their roles.\n * Hence manipulate their access and rights in the current room.\n * It takes the list of roles {@link HMSRole} whom role we want to change\n * and role {@link HMSRole} which will be the new role for peers.\n *\n * - Note that role will be updated without asking the peers.\n * Meaning, Peers will not get the roleChangeRequest in roleChangeRequest listener.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/change-role} for more info\n *\n * @memberof HMSSDK\n */\n changeRoleOfPeersWithRoles = async (ofRoles: HMSRole[], toRole: HMSRole) => {\n const data = {\n ofRoles: ofRoles.map((ofRole) => ofRole.name).filter(Boolean),\n toRole: toRole.name,\n id: this.id,\n };\n logger?.verbose('#Function changeRoleOfPeersWithRoles', data);\n return HMSManager.changeRoleOfPeersWithRoles(data);\n };\n\n /**\n * - This function can be used to manipulate mute status of any track.\n * - Targeted peer affected by this action will get a callback in onChangeTrackStateRequestListener.\n *\n * * checkout {@link https://www.100ms.live/docs/react-native/v2/features/change-track-state} for more info\n *\n * @param {HMSTrack}\n * @memberof HMSSDK\n */\n changeTrackState = async (track: HMSTrack, mute: boolean) => {\n logger?.verbose('#Function changeTrackState', {\n track,\n mute,\n id: this.id,\n });\n const data = {\n trackId: track.trackId,\n mute,\n id: this.id,\n };\n\n return await HMSManager.changeTrackState(data);\n };\n\n /**\n * - changeTrackStateForRoles is an enhancement on the functionality of {@link changeTrackState}.\n * - We can change mute status for all the tracks of peers having a particular role.\n * - @param source determines the source of the track ex. video, audio etc.\n * - The peers affected by this action will get a callback in onChangeTrackStateRequestListener.\n *\n * @memberof HMSSDK\n */\n changeTrackStateForRoles = async (\n mute: boolean,\n type?: HMSTrackType,\n source?: string,\n roles?: Array<HMSRole>\n ) => {\n let roleNames = null;\n if (roles) {\n roleNames = HMSHelper.getRoleNames(roles);\n }\n logger?.verbose('#Function changeTrackStateRoles', {\n source,\n mute,\n type,\n roles,\n id: this.id,\n });\n const data = {\n source,\n mute,\n type,\n roles: roleNames,\n id: this.id,\n };\n\n return await HMSManager.changeTrackStateForRoles(data);\n };\n\n /**\n * - removePeer can forcefully disconnect a Peer from the room.\n * - the user who's removed from this action will get a callback in {@link onRemovedFromRoomListener}.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/remove-peer} for more info\n *\n * @memberof HMSSDK\n */\n removePeer = async (peer: HMSPeer, reason: string) => {\n logger?.verbose('#Function removePeer', {\n peerId: peer.peerID,\n reason,\n id: this.id,\n });\n const data = {\n peerId: peer.peerID,\n reason,\n id: this.id,\n };\n\n return await HMSManager.removePeer(data);\n };\n\n /**\n * - endRoom can be used in a situation where we want to disconnect all the peers from current room\n * and end the call.\n * - everyone in the room will get an update of this action in {@link onRemovedFromRoomListener}.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/end-room} for more info\n *\n * @memberof HMSSDK\n */\n endRoom = async (reason: string, lock: boolean = false) => {\n logger?.verbose('#Function endRoom', { lock, reason, id: this.id });\n const data = {\n lock,\n reason,\n id: this.id,\n };\n\n return await HMSManager.endRoom(data);\n };\n\n /**\n * - This function can be used to change name of localPeer.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/change-name} for more info\n *\n * @memberof HMSSDK\n */\n changeName = async (name: string) => {\n logger?.verbose('#Function changeName', { name, id: this.id });\n const data = {\n name,\n id: this.id,\n };\n\n return await HMSManager.changeName(data);\n };\n\n /**\n * -Preview for a specific Role before changing it.\n *\n * By previewing before doing a Role Change, users can see their expected Audio & Video tracks which will be visible to other Peers in Room post changing the Role.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/change-role} for more info\n *\n * @param {role: string}\n * @memberof HMSSDK\n */\n previewForRole = async (role: string) => {\n logger?.verbose('#Function previewForRole', {\n role,\n id: this.id,\n });\n const data = await HMSManager.previewForRole({\n role,\n id: this.id,\n });\n\n const previewTracks = HMSEncoder.encodeHmsPreviewForRoleTracks(\n data.tracks,\n this.id\n );\n\n return previewTracks;\n };\n\n /**\n * Cancel the Previewing for Role invocation.\n *\n * If a [previewForRole] call was performed previously then calling this method clears the tracks created anticipating a Change of Role\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/change-role} for more info\n *\n * @memberof HMSSDK\n */\n cancelPreview = async () => {\n logger?.verbose('#Function cancelPreview', {\n id: this.id,\n });\n const data: { data: string } = await HMSManager.cancelPreview({\n id: this.id,\n });\n\n return data;\n };\n\n /**\n * - Calling this function will accept the most recent roleChange request made by anyone in the room\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/change-role} for more info\n *\n * @memberof HMSSDK\n */\n acceptRoleChange = async () => {\n logger?.verbose('#Function acceptRoleChange', { id: this.id });\n return await HMSManager.acceptRoleChange({ id: this.id });\n };\n\n /**\n * - setPlaybackForAllAudio is an extension of the abilities of setPlaybackAllowed in\n * HMSRemoteAudioTrack. It sets mute status for all peers in the room only for the local peer.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/playback-allowed} for more info\n *\n * @memberof HMSSDK\n */\n setPlaybackForAllAudio = (mute: boolean) => {\n logger?.verbose('#Function setPlaybackForAllAudio', { mute, id: this.id });\n HMSManager.setPlaybackForAllAudio({ mute, id: this.id });\n };\n\n /**\n * - This function mutes audio for all peers in the room.\n *\n * @memberof HMSSDK\n */\n remoteMuteAllAudio = async () => {\n logger?.verbose('#Function remoteMuteAllAudio', { id: this.id });\n return await HMSManager.remoteMuteAllAudio({ id: this.id });\n };\n\n /**\n * - getRoom is a wrapper function on an existing native function also known as getRoom the returns\n * current room object which is of type {@link HMSRoom}\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/join#get-room} for more info\n *\n * @memberof HMSSDK\n * @return Promise<HMSRoom>\n */\n getRoom = async (): Promise<HMSRoom> => {\n logger?.verbose('#Function getRoom', {\n id: this.id,\n });\n const hmsRoom = await HMSManager.getRoom({ id: this.id });\n\n getHmsRoomCache()?.updateRoomCache(hmsRoom);\n\n const encodedHmsRoom = HMSEncoder.encodeHmsRoom(hmsRoom, this.id);\n return encodedHmsRoom;\n };\n\n /**\n * - getLocalPeer is a wrapper function on an existing native function also known as getLocalPeer the returns\n * current local peer object which is of type {@link HMSLocalPeer}\n *\n * @memberof HMSSDK\n * @return Promise<HMSLocalPeer>\n */\n getLocalPeer = async (): Promise<HMSLocalPeer> => {\n logger?.verbose('#Function getLocalPeer', {\n id: this.id,\n });\n const localPeer = await HMSManager.getLocalPeer({ id: this.id });\n\n const encodedLocalPeer = HMSEncoder.encodeHmsLocalPeer(localPeer, this.id);\n return encodedLocalPeer;\n };\n\n /**\n * - getRemotePeers is a wrapper function on an existing native function also known as getRemotePeers the returns\n * remote peers array which is of type {@link HMSRemotePeer}\n *\n * @memberof HMSSDK\n * @return Promise<HMSRemotePeer[]>\n */\n getRemotePeers = async (): Promise<HMSRemotePeer[]> => {\n logger?.verbose('#Function getRemotePeers', {\n id: this.id,\n });\n const remotePeers = await HMSManager.getRemotePeers({ id: this.id });\n\n const encodedRemotePeers = HMSEncoder.encodeHmsRemotePeers(\n remotePeers,\n this.id\n );\n return encodedRemotePeers;\n };\n\n /**\n * - getRoles is a wrapper function on an existing native function also known as getRoles the returns\n * array of all present roles which is of type {@link HMSRole}\n *\n * @memberof HMSSDK\n * @return Promise<HMSRole[]>\n */\n getRoles = async (): Promise<HMSRole[]> => {\n logger?.verbose('#Function getRoles', {\n id: this.id,\n });\n const roles = await HMSManager.getRoles({ id: this.id });\n\n const encodedRoles = HMSEncoder.encodeHmsRoles(roles);\n return encodedRoles;\n };\n\n /**\n * - This function sets the volume of any peer in the room\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/advanced-features/set-volume} for more info\n *\n * @memberof HMSSDK\n */\n setVolume = (track: HMSTrack, volume: number) => {\n logger?.verbose('#Function setVolume', {\n track,\n volume,\n id: this.id,\n });\n HMSManager.setVolume({\n id: this.id,\n trackId: track.trackId,\n volume,\n });\n };\n\n /**\n * - This function is used to start screenshare, currently available only for android\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/screenshare} for more info\n *\n * @memberof HMSSDK\n */\n startScreenshare = async () => {\n logger?.verbose('#Function startScreenshare', { id: this.id });\n return await HMSManager.startScreenshare({ id: this.id });\n };\n\n /**\n * - Returns a boolean stating if the screen is currently shared or not\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/screenshare} for more info\n *\n * @memberof HMSSDK\n */\n isScreenShared = async () => {\n logger?.verbose('#Function isScreenShared', { id: this.id });\n return await HMSManager.isScreenShared({ id: this.id });\n };\n\n /**\n * - stops the screenShare, currently available for android only.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/screenshare} for more info\n *\n * @memberof HMSSDK\n */\n stopScreenshare = async () => {\n logger?.verbose('#Function stopScreenshare', { id: this.id });\n return await HMSManager.stopScreenshare({ id: this.id });\n };\n\n enableNetworkQualityUpdates = () => {\n logger?.verbose('#Function enableNetworkQualityUpdates', { id: this.id });\n HMSManager.enableNetworkQualityUpdates({ id: this.id });\n };\n\n disableNetworkQualityUpdates = () => {\n logger?.verbose('#Function disableNetworkQualityUpdates', { id: this.id });\n HMSManager.disableNetworkQualityUpdates({ id: this.id });\n };\n\n /**\n * - This wrapper function is used to start streaming device audio, currently available only for android.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/audio-share#how-to-stream-device-audio-from-the-app} for more info.\n *\n * @param {HMSAudioMixingMode}\n * @memberof HMSSDK\n */\n startAudioshare = async (audioMixingMode: HMSAudioMixingMode) => {\n logger?.verbose('#Function startAudioshare', {\n id: this.id,\n audioMixingMode,\n });\n if (Platform.OS === 'android') {\n return await HMSManager.startAudioshare({ id: this.id, audioMixingMode });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * - This wrapper function returns true if audio is being shared and vice versa, currently available only for android.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/audio-share#how-to-get-audio-share-status} for more info.\n *\n * @memberof HMSSDK\n */\n isAudioShared = async () => {\n logger?.verbose('#Function isAudioShared', { id: this.id });\n if (Platform.OS === 'android') {\n return await HMSManager.isAudioShared({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * - This wrapper function is used to stop streaming device audio, currently available only for android.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/audio-share#how-to-stop-audio-sharing} for more info.\n *\n * @memberof HMSSDK\n */\n stopAudioshare = async () => {\n logger?.verbose('#Function stopAudioshare', { id: this.id });\n if (Platform.OS === 'android') {\n return await HMSManager.stopAudioshare({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * - This wrapper function returns the current audio mixing mode, currently available only for android.\n *\n * @memberof HMSSDK\n * @return HMSAudioMixingMode\n */\n getAudioMixingMode = async () => {\n logger?.verbose('#Function getAudioMixingMode', { id: this.id });\n if (Platform.OS === 'android') {\n return await HMSManager.getAudioMixingMode({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * - This wrapper function used to change the mode while the user is streaming audio, currently available only for android.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/audio-share#how-to-change-mode} for more info\n *\n * @param {HMSAudioMixingMode}\n * @memberof HMSSDK\n */\n setAudioMixingMode = async (audioMixingMode: HMSAudioMixingMode) => {\n logger?.verbose('#Function setAudioMixingMode', {\n id: this.id,\n audioMixingMode,\n });\n if (Platform.OS === 'android') {\n return await HMSManager.setAudioMixingMode({\n id: this.id,\n audioMixingMode,\n });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * - This wrapper function returns the array of audio output devices which is of\n * type {@link HMSAudioDevice[]}, currently available only for android.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/audio-output-routing#get-list-of-audio-device} for more info\n *\n * @memberof HMSSDK\n * @return HMSAudioDevice[]\n */\n getAudioDevicesList = async () => {\n logger?.verbose('#Function getAudioDevicesList', {\n id: this.id,\n });\n if (Platform.OS === 'android') {\n return await HMSManager.getAudioDevicesList({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * - This wrapper function returns the current audio output device which is of\n * type {@link HMSAudioDevice}, currently available only for android.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/audio-output-routing#get-current-focussed-device} for more info\n *\n * @memberof HMSSDK\n * @return HMSAudioDevice\n */\n getAudioOutputRouteType = async () => {\n logger?.verbose('#Function getAudioOutputRouteType', {\n id: this.id,\n });\n if (Platform.OS === 'android') {\n return await HMSManager.getAudioOutputRouteType({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * - This wrapper function used to switch output to device other than the default route.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/audio-output-routing#switch-audio-focus-to-another-device} for more info\n *\n * @memberof HMSSDK\n * @param audioDevice\n */\n switchAudioOutput = (audioDevice: HMSAudioDevice) => {\n logger?.verbose('#Function switchAudioOutput', {\n id: this.id,\n audioDevice,\n });\n\n return HMSManager.switchAudioOutput({ id: this.id, audioDevice });\n };\n\n switchAudioOutputUsingIOSUI = () => {\n logger?.verbose('#Function switchAudioOutputUsingIOSUI', {\n id: this.id,\n });\n if (Platform.OS !== 'ios') {\n throw new Error(\n '#Function `switchAudioOutputUsingIOSUI` is only available on iOS, use `switchAudioOutput` method instead!'\n );\n }\n\n return HMSManager.switchAudioOutputUsingIOSUI({ id: this.id });\n };\n\n /**\n * - This wrapper function used to change Audio Mode manually, currently available only for android.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/audio-mode-change} for more info\n *\n * @param {HMSAudioMode}\n * @memberof HMSSDK\n */\n setAudioMode = (audioMode: HMSAudioMode) => {\n logger?.verbose('#Function setAudioMode', {\n id: this.id,\n audioMode,\n });\n if (Platform.OS === 'android') {\n return HMSManager.setAudioMode({ id: this.id, audioMode });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * - This is a wrapper function which adds a listener which is triggered when audio output device is switched, currently available only for android.\n *\n * checkout {@link https://www.100ms.live/docs/react-native/v2/features/audio-output-routing#adding-a-listener} for more info\n *\n * @param {Function}\n * @memberof HMSSDK\n */\n setAudioDeviceChangeListener = (callback: Function) => {\n logger?.verbose('#Function setAudioDeviceChangeListener', {\n id: this.id,\n });\n if (Platform.OS === 'android') {\n this.addEventListener(\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED,\n callback\n );\n return HMSManager.setAudioDeviceChangeListener({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n getRemoteVideoTrackFromTrackId = async (trackId: string) => {\n logger?.verbose('#Function getRemoteVideoTrackFromTrackId', {\n id: this.id,\n trackId,\n });\n\n const remoteVideoTrackData =\n await HMSManager.getRemoteVideoTrackFromTrackId({\n id: this.id,\n trackId,\n });\n return HMSEncoder.encodeHmsRemoteVideoTrack(remoteVideoTrackData, this.id);\n };\n\n getRemoteAudioTrackFromTrackId = async (trackId: string) => {\n logger?.verbose('#Function getRemoteAudioTrackFromTrackId', {\n id: this.id,\n trackId,\n });\n\n const remoteAudioTrackData =\n await HMSManager.getRemoteAudioTrackFromTrackId({\n id: this.id,\n trackId,\n });\n return HMSEncoder.encodeHmsRemoteAudioTrack(remoteAudioTrackData, this.id);\n };\n\n getPeerFromPeerId = (peerId: string) => {\n logger?.verbose('#Function getPeerFromPeerId', {\n id: this.id,\n peerId,\n });\n // Getting Peer Cache\n const peersCache = getHmsPeersCache();\n\n // If Peer Cache doesn't exist, return `undefined` as we don't have Peer\n if (!peersCache) return;\n\n const peerRole = peersCache.getProperty(peerId, 'role');\n\n // If Peer doesn't have valid Role, return `undefined` as we don't have Peer\n if (!peerRole) return;\n\n return HMSEncoder.encodeHmsPeer({ peerID: peerId });\n };\n\n /**\n * - This function is used to raise hand for the local peer\n * @memberof HMSSDK\n */\n raiseLocalPeerHand = async () => {\n const data = {\n id: this.id,\n };\n logger?.verbose('#Function raiseLocalPeerHand', data);\n return HMSManager.raiseLocalPeerHand(data);\n };\n\n /**\n * - This function is used to lower hand for the local peer\n * @memberof HMSSDK\n */\n lowerLocalPeerHand = async () => {\n const data = {\n id: this.id,\n };\n logger?.verbose('#Function lowerLocalPeerHand', data);\n return HMSManager.lowerLocalPeerHand(data);\n };\n\n /**\n * - This function is used to lower hand for the remote peer\n * @param peer\n */\n lowerRemotePeerHand = async (peer: HMSPeer) => {\n const data = {\n peerId: peer.peerID,\n id: this.id,\n };\n logger?.verbose('#Function lowerRemotePeerHand', data);\n return HMSManager.lowerRemotePeerHand(data);\n };\n\n /**\n * `getPeerListIterator` method returns an instance of `HMSPeerListIterator` class\n *\n * @param options options for configuring iterator\n * @returns instance of HMSPeerListIterator class\n *\n * Example usage:\n * ```\n * const peerListIterator = hmsInstance.getPeerListIterator();\n * ```\n * OR\n * ```\n * const peerListIterator = hmsInstance.getPeerListIterator({\n * limit: 10,\n * byRoleName: 'viewer-realtime',\n * });\n * ```\n */\n getPeerListIterator = (\n options?: HMSPeerListIteratorOptions\n ): HMSPeerListIterator => {\n logger?.verbose('#Function getPeerListIterator', {\n id: this.id,\n options,\n });\n\n const uniqueId = Math.random().toString(16).slice(2);\n\n const data: null | {\n sucess: boolean;\n uniqueId: string;\n totalCount: number;\n } = HMSManager.getPeerListIterator({\n id: this.id,\n ...options,\n limit: options?.limit ?? 10,\n uniqueId,\n });\n\n if (!data) {\n throw new Error('Unable to create PeerListIterator');\n }\n\n return new HMSPeerListIterator(data.uniqueId, data.totalCount);\n };\n\n /**\n * - This function allows the user to set the screen on always.\n * - This is useful when the user wants to keep the screen on while the app is in the foreground.\n * @param enabled boolean value to enable or disable the always screen on\n */\n setAlwaysScreenOn = async (enabled: boolean) => {\n logger?.verbose('#Function toggleAlwaysScreenOn', {\n id: this.id,\n enabled,\n });\n return HMSManager.setAlwaysScreenOn({ id: this.id, enabled });\n };\n\n /**\n * - This is a prototype event listener that takes action and listens for updates related to that particular action\n *\n * @param {string} action\n * @param {*} callback\n * @memberof HMSSDK\n */\n addEventListener = (\n action: HMSUpdateListenerActions | HMSPIPListenerActions,\n callback: any\n ) => {\n logger?.verbose('#Function addEventListener', {\n action,\n id: this.id,\n });\n switch (action) {\n case HMSUpdateListenerActions.ON_PREVIEW: {\n // Checking if we already have ON_PREVIEW subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_PREVIEW]) {\n // Adding ON_PREVIEW native listener\n const previewSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_PREVIEW,\n this.onPreviewListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PREVIEW] =\n previewSubscription;\n }\n // Adding App Delegate listener\n this.onPreviewDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_JOIN: {\n // Checking if we already have ON_JOIN subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_JOIN]) {\n // Adding ON_JOIN native listener\n const joinSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_JOIN,\n this.onJoinListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_JOIN] =\n joinSubscription;\n }\n // Adding App Delegate listener\n this.onJoinDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_ROOM_UPDATE: {\n // Checking if we already have ON_ROOM_UPDATE subscription\n if (\n !this.emitterSubscriptions[HMSUpdateListenerActions.ON_ROOM_UPDATE]\n ) {\n // Adding ON_ROOM_UPDATE native listener\n const roomSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_ROOM_UPDATE,\n this.onRoomListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ROOM_UPDATE] =\n roomSubscription;\n }\n // Adding App Delegate listener\n this.onRoomDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_TRANSCRIPTS: {\n // Checking if we already have ON_TRANSCRIPTS subscription\n if (\n !this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRANSCRIPTS]\n ) {\n // Adding ON_TRANSCRIPTS native listener\n const transcriptsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_TRANSCRIPTS,\n this.onTranscriptsListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRANSCRIPTS] =\n transcriptsSubscription;\n }\n // Adding App Delegate listener\n this.onTranscriptsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_PEER_UPDATE: {\n // Checking if we already have ON_PEER_UPDATE subscription\n if (\n !this.emitterSubscriptions[HMSUpdateListenerActions.ON_PEER_UPDATE]\n ) {\n // Adding ON_PEER_UPDATE native listener\n const peerSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_PEER_UPDATE,\n this.onPeerListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PEER_UPDATE] =\n peerSubscription;\n }\n // Adding App Delegate listener\n this.onPeerDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_PEER_LIST_UPDATED: {\n // Checking if we already have ON_PEER_LIST_UPDATED subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_PEER_LIST_UPDATED\n ]\n ) {\n // Adding ON_PEER_LIST_UPDATED native listener\n const peerListUpdatedSubscription =\n HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_PEER_LIST_UPDATED,\n this.onPeerListUpdatedListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_PEER_LIST_UPDATED\n ] = peerListUpdatedSubscription;\n }\n // Adding App Delegate listener\n this.onPeerListUpdatedDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_TRACK_UPDATE: {\n // Checking if we already have ON_TRACK_UPDATE subscription\n if (\n !this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRACK_UPDATE]\n ) {\n // Adding ON_TRACK_UPDATE native listener\n const trackSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_TRACK_UPDATE,\n this.onTrackListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRACK_UPDATE] =\n trackSubscription;\n }\n // Adding App Delegate listener\n this.onTrackDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_ERROR: {\n // Checking if we already have ON_ERROR subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_ERROR]) {\n // Adding ON_ERROR native listener\n const errorSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_ERROR,\n this.onErrorListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ERROR] =\n errorSubscription;\n }\n // Adding App Delegate listener\n this.onErrorDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_MESSAGE: {\n // Checking if we already have ON_MESSAGE subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_MESSAGE]) {\n // Adding ON_MESSAGE native listener\n const messageSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_MESSAGE,\n this.onMessageListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_MESSAGE] =\n messageSubscription;\n }\n // Adding App Delegate listener\n this.onMessageDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_SPEAKER: {\n // Checking if we already have ON_SPEAKER subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_SPEAKER]) {\n // Adding ON_SPEAKER native listener\n const speakerSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_SPEAKER,\n this.onSpeakerListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_SPEAKER] =\n speakerSubscription;\n }\n // Adding App Delegate listener\n this.onSpeakerDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.RECONNECTING: {\n // Checking if we already have RECONNECTING subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTING]) {\n // Adding RECONNECTING native listener\n const reconnectingSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.RECONNECTING,\n this.reconnectingListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTING] =\n reconnectingSubscription;\n }\n // Adding App Delegate listener\n this.onReconnectingDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.RECONNECTED: {\n // Checking if we already have RECONNECTED subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTED]) {\n // Adding RECONNECTED native listener\n const reconnectedSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.RECONNECTED,\n this.reconnectedListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTED] =\n reconnectedSubscription;\n }\n // Adding App Delegate listener\n this.onReconnectedDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST: {\n // Checking if we already have ON_ROLE_CHANGE_REQUEST subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST\n ]\n ) {\n // Adding ON_ROLE_CHANGE_REQUEST native listener\n const roleChangeReqSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST,\n this.onRoleChangeRequestListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST\n ] = roleChangeReqSubscription;\n }\n // Adding App Delegate listener\n this.onRoleChangeRequestDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST: {\n // Checking if we already have ON_CHANGE_TRACK_STATE_REQUEST subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST\n ]\n ) {\n // Adding ON_CHANGE_TRACK_STATE_REQUEST native listener\n const changeTrackReqSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST,\n this.onChangeTrackStateRequestListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST\n ] = changeTrackReqSubscription;\n }\n // Adding App Delegate listener\n this.onChangeTrackStateRequestDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM: {\n // Checking if we already have ON_REMOVED_FROM_ROOM subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM\n ]\n ) {\n // Adding ON_REMOVED_FROM_ROOM native listener\n const removedFromRoomSubscription =\n HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM,\n this.onRemovedFromRoomListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM\n ] = removedFromRoomSubscription;\n }\n // Adding App Delegate listener\n this.onRemovedFromRoomDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_RTC_STATS: {\n // Checking if we already have ON_RTC_STATS subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_RTC_STATS]) {\n // Adding ON_RTC_STATS native listener\n const rtcStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_RTC_STATS,\n this.RTCStatsListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_RTC_STATS] =\n rtcStatsSubscription;\n }\n // Adding App Delegate listener\n this.onRtcStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS: {\n // Checking if we already have ON_LOCAL_AUDIO_STATS subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS\n ]\n ) {\n // Adding ON_LOCAL_AUDIO_STATS native listener\n const lclAudioStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS,\n this.onLocalAudioStatsListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS\n ] = lclAudioStatsSubscription;\n }\n // Adding App Delegate listener\n this.onLocalAudioStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS: {\n // Checking if we already have ON_LOCAL_VIDEO_STATS subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS\n ]\n ) {\n // Adding ON_LOCAL_VIDEO_STATS native listener\n const lclVideoStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS,\n this.onLocalVideoStatsListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS\n ] = lclVideoStatsSubscription;\n }\n // Adding App Delegate listener\n this.onLocalVideoStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS: {\n // Checking if we already have ON_REMOTE_AUDIO_STATS subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS\n ]\n ) {\n // Adding ON_REMOTE_AUDIO_STATS native listener\n const rmAudioStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS,\n this.onRemoteAudioStatsListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS\n ] = rmAudioStatsSubscription;\n }\n // Adding App Delegate listener\n this.onRemoteAudioStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS: {\n // Checking if we already have ON_REMOTE_VIDEO_STATS subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS\n ]\n ) {\n // Adding ON_REMOTE_VIDEO_STATS native listener\n const rmVideoStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS,\n this.onRemoteVideoStatsListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS\n ] = rmVideoStatsSubscription;\n }\n // Adding App Delegate listener\n this.onRemoteVideoStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED: {\n // Checking if we already have ON_AUDIO_DEVICE_CHANGED subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED\n ]\n ) {\n // Adding ON_AUDIO_DEVICE_CHANGED native listener\n const audDeviceChgSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED,\n this.onAudioDeviceChangedListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED\n ] = audDeviceChgSubscription;\n }\n // Adding App Delegate listener\n this.onAudioDeviceChangedDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE: {\n // Checking if we already have ON_SESSION_STORE_AVAILABLE subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE\n ]\n ) {\n // Adding ON_SESSION_STORE_AVAILABLE native listener\n const sessionStoreAvailableSubscription =\n HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE,\n this.onSessionStoreAvailableListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE\n ] = sessionStoreAvailableSubscription;\n }\n // Adding Session Store Available App Delegate listener\n this.onSessionStoreAvailableDelegate = callback;\n break;\n }\n case HMSPIPListenerActions.ON_PIP_ROOM_LEAVE: {\n if (Platform.OS === 'android') {\n // Checking if we already have ON_PIP_ROOM_LEAVE subscription\n if (\n !this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_ROOM_LEAVE]\n ) {\n // Adding ON_PIP_ROOM_LEAVE native listener\n const pipRoomLeaveSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSPIPListenerActions.ON_PIP_ROOM_LEAVE,\n this.onPIPRoomLeaveListener\n );\n this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_ROOM_LEAVE] =\n pipRoomLeaveSubscription;\n }\n // Adding App Delegate listener\n this.onPIPRoomLeaveDelegate = callback;\n }\n break;\n }\n case HMSPIPListenerActions.ON_PIP_MODE_CHANGED: {\n // Checking if we already have ON_PIP_MODE_CHANGED subscription\n if (\n !this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_MODE_CHANGED]\n ) {\n const pipModeChangedSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSPIPListenerActions.ON_PIP_MODE_CHANGED,\n this.onPIPModeChangedListener\n );\n this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_MODE_CHANGED] =\n pipModeChangedSubscription;\n }\n // Adding PIP mode changed Delegate listener\n this.onPIPModeChangedDelegate = callback;\n\n break;\n }\n default:\n }\n };\n\n /**\n * - This is a prototype event listener that takes action and listens for updates related to that particular action\n *\n * @param {string} action\n * @param {*} callback\n * @memberof HMSSDK\n */\n removeEventListener = (\n action: HMSUpdateListenerActions | HMSPIPListenerActions\n ) => {\n logger?.verbose('#Function removeEventListener', { action, id: this.id });\n switch (action) {\n case HMSUpdateListenerActions.ON_PREVIEW: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PREVIEW];\n // Removing ON_PREVIEW native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PREVIEW] =\n undefined;\n }\n // Removing App Delegate listener\n this.onPreviewDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_JOIN: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_JOIN];\n // Removing ON_JOIN native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_JOIN] =\n undefined;\n }\n // Removing App Delegate listener\n this.onJoinDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_ROOM_UPDATE: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ROOM_UPDATE];\n // Removing ON_ROOM_UPDATE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ROOM_UPDATE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onRoomDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_TRANSCRIPTS: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRANSCRIPTS];\n // Removing ON_TRANSCRIPTS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRANSCRIPTS] =\n undefined;\n }\n // Removing App Delegate listener\n this.onTranscriptsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_PEER_UPDATE: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PEER_UPDATE];\n // Removing ON_PEER_UPDATE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PEER_UPDATE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onPeerDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_TRACK_UPDATE: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRACK_UPDATE];\n // Removing ON_TRACK_UPDATE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRACK_UPDATE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onTrackDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_ERROR: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ERROR];\n // Removing ON_ERROR native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ERROR] =\n undefined;\n }\n // Removing App Delegate listener\n this.onErrorDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_MESSAGE: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_MESSAGE];\n // Removing ON_MESSAGE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_MESSAGE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onMessageDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_SPEAKER: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_SPEAKER];\n // Removing ON_SPEAKER native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_SPEAKER] =\n undefined;\n }\n // Removing App Delegate listener\n this.onSpeakerDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.RECONNECTING: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTING];\n // Removing RECONNECTING native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTING] =\n undefined;\n }\n // Removing App Delegate listener\n this.onReconnectingDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.RECONNECTED: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTED];\n // Removing RECONNECTED native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTED] =\n undefined;\n }\n // Removing App Delegate listener\n this.onReconnectedDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST\n ];\n // Removing ON_ROLE_CHANGE_REQUEST native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onRoleChangeRequestDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST\n ];\n // Removing ON_CHANGE_TRACK_STATE_REQUEST native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onChangeTrackStateRequestDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM\n ];\n // Removing ON_REMOVED_FROM_ROOM native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onRemovedFromRoomDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_RTC_STATS: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_RTC_STATS];\n // Removing ON_RTC_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_RTC_STATS] =\n undefined;\n }\n // Removing App Delegate listener\n this.onRtcStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS\n ];\n // Removing ON_LOCAL_AUDIO_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onLocalAudioStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS\n ];\n // Removing ON_LOCAL_VIDEO_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onLocalVideoStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS\n ];\n // Removing ON_REMOTE_AUDIO_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onRemoteAudioStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS\n ];\n // Removing ON_REMOTE_VIDEO_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onRemoteVideoStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED\n ];\n // Removing ON_AUDIO_DEVICE_CHANGED native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onAudioDeviceChangedDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE\n ];\n // Removing ON_SESSION_STORE_AVAILABLE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onSessionStoreAvailableDelegate = null;\n break;\n }\n case HMSPIPListenerActions.ON_PIP_ROOM_LEAVE: {\n if (Platform.OS === 'android') {\n const subscription =\n this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_ROOM_LEAVE];\n // Removing ON_PIP_ROOM_LEAVE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_ROOM_LEAVE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onPIPRoomLeaveDelegate = null;\n }\n break;\n }\n case HMSPIPListenerActions.ON_PIP_MODE_CHANGED: {\n if (Platform.OS === 'android') {\n const subscription =\n this.emitterSubscriptions[\n HMSPIPListenerActions.ON_PIP_MODE_CHANGED\n ];\n // Removing ON_PIP_MODE_CHANGED native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSPIPListenerActions.ON_PIP_MODE_CHANGED\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onPIPModeChangedDelegate = null;\n }\n break;\n }\n default:\n }\n };\n\n /**\n * removes all the listeners\n *\n * @memberof HMSSDK\n */\n removeAllListeners = () => {\n this.onPreviewDelegate = null;\n this.onJoinDelegate = null;\n this.onRoomDelegate = null;\n this.onPeerDelegate = null;\n this.onTrackDelegate = null;\n this.onErrorDelegate = null;\n this.onMessageDelegate = null;\n this.onSpeakerDelegate = null;\n this.onReconnectingDelegate = null;\n this.onReconnectedDelegate = null;\n this.onRoleChangeRequestDelegate = null;\n this.onChangeTrackStateRequestDelegate = null;\n this.onRemovedFromRoomDelegate = null;\n this.onPIPRoomLeaveDelegate = null;\n\n // Getting list of all available `emitterSubscription` objects\n Object.values(this.emitterSubscriptions)\n .filter(Boolean)\n .forEach((emitterSubscription) => {\n emitterSubscription.remove();\n });\n\n // clearing reference of all `emitterSubscription` objects\n this.emitterSubscriptions = {};\n\n logger?.verbose('#Function REMOVE_ALL_LISTENER', { id: this.id });\n };\n\n /**\n * - Below are all the listeners that are connected to native side.\n *\n * - All of the are connected when build function is called, we can connect them to the app by\n * calling {@link addEventListener} with corresponding event type.\n *\n * - Before passing the data to the eventListener of the app these listeners encode the data in\n * ts classes for a proper structuring of the data.\n *\n * - Even When event listeners of the app are disconnected using {@link removeEventListener} or\n * {@link removeAllListeners} or not even connected in first place, these functions still run to\n * maintain the current state of the instance of {@link HMSSDK}.\n *\n */\n\n onPreviewListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const room: HMSRoom = HMSEncoder.encodeHmsRoom(data.room, this.id);\n const previewTracks = HMSEncoder.encodeHmsPreviewTracks(\n data.previewTracks,\n this.id\n );\n\n if (this.onPreviewDelegate) {\n logger?.verbose('#Listener ON_PREVIEW_LISTENER_CALL', {\n room,\n previewTracks,\n });\n this.onPreviewDelegate({ room, previewTracks });\n }\n };\n\n onJoinListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n const room: HMSRoom = HMSEncoder.encodeHmsRoom(data.room, this.id);\n\n if (this.onJoinDelegate) {\n logger?.verbose('#Listener ON_JOIN_LISTENER_CALL', {\n room,\n });\n this.onJoinDelegate({ room });\n }\n };\n\n onRoomListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const room: HMSRoom = HMSEncoder.encodeHmsRoom(data.room, this.id);\n const type = data.type;\n\n getHmsRoomCache()?.updateRoomCache(data.room, data.type);\n\n if (this.onRoomDelegate) {\n logger?.verbose('#Listener ON_ROOM_LISTENER_CALL', {\n room,\n type,\n });\n this.onRoomDelegate({ room, type });\n }\n };\n\n onTranscriptsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n HMSEncoder.transformTranscripts(data.transcripts);\n\n if (this.onTranscriptsDelegate) {\n logger?.verbose('#Listener ON_TRANSCRIPTS_LISTENER_CALL', data);\n this.onTranscriptsDelegate(data);\n }\n };\n\n onPeerListener = (peerData: any) => {\n const data: { peer: any; type: any } = {\n peer: peerData,\n type: null,\n };\n\n for (const ordinal of HMSPeerUpdateOrdinals.keys()) {\n if (ordinal in peerData) {\n data.peer.peerID = peerData[ordinal];\n data.type = ordinal;\n break;\n }\n }\n\n const peer: HMSPeer = HMSEncoder.encodeHmsPeer(data.peer);\n const type = HMSEncoder.encodeHmsPeerUpdate(data.type) || data.type;\n\n if (type === HMSPeerUpdate.PEER_LEFT) {\n this.sendPeerUpdateWhenPeerLeaves(data, peer, type);\n } else {\n getHmsPeersCache()?.updatePeerCache(data.peer.peerID, data.peer, type);\n this.sendPeerUpdate(peer, type);\n }\n };\n\n private sendPeerUpdate = (peer: any, type: any) => {\n if (this.onPeerDelegate) {\n logger?.verbose('#Listener ON_PEER_LISTENER_CALL', {\n peer,\n type,\n });\n this.onPeerDelegate({ peer, type });\n }\n };\n\n private sendPeerUpdateWhenPeerLeaves = (data: any, peer: any, type: any) => {\n this.sendPeerUpdate(peer, type);\n\n getHmsPeersCache()?.updatePeerCache(data.peer.peerID, data.peer, type);\n };\n\n onPeerListUpdatedListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const addedPeers = HMSEncoder.encodeHmsPeers(data.addedPeers);\n const removedPeers = HMSEncoder.encodeHmsPeers(data.removedPeers);\n\n if (this.onPeerListUpdatedDelegate) {\n logger?.verbose('#Listener ON_PEER_LIST_UPDATED_LISTENER_CALL', {\n totalAddedPeers: addedPeers.length,\n totalRemovedPeers: removedPeers.length,\n });\n\n this.onPeerListUpdatedDelegate({\n addedPeers,\n removedPeers,\n });\n }\n };\n\n onTrackListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const track: HMSTrack = HMSEncoder.encodeHmsTrack(data.track, this.id);\n const peer: HMSPeer = HMSEncoder.encodeHmsPeer(data.peer);\n const type = data.type;\n\n getHmsPeersCache()?.updatePeerCache(data.peer.peerID, { track }, data.type);\n\n if (this.onTrackDelegate) {\n logger?.verbose('#Listener ON_TRACK_LISTENER_CALL', {\n peer,\n track,\n type,\n });\n this.onTrackDelegate({\n peer,\n track,\n type,\n });\n }\n };\n\n onMessageListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const message = HMSEncoder.encodeHMSMessage(data);\n if (this.onMessageDelegate) {\n logger?.verbose('#Listener ON_MESSAGE_LISTENER_CALL', message);\n this.onMessageDelegate(message);\n }\n };\n\n onSpeakerListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onSpeakerDelegate) {\n logger?.verbose('#Listener ON_SPEAKER_LISTENER_CALL', data?.speakers);\n this.onSpeakerDelegate(\n HMSEncoder.encodeHmsSpeakers(data?.speakers, this.id)\n );\n }\n };\n\n onErrorListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onErrorDelegate) {\n logger?.verbose('#Listener ON_ERROR_LISTENER_CALL', data);\n logger?.warn('#Listener ON_ERROR_LISTENER_CALL', data);\n this.onErrorDelegate(HMSEncoder.encodeHMSException(data));\n }\n };\n\n onRoleChangeRequestListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onRoleChangeRequestDelegate) {\n const encodedRoleChangeRequest =\n HMSEncoder.encodeHmsRoleChangeRequest(data);\n logger?.verbose(\n '#Listener ON_ROLE_CHANGE_LISTENER_CALL',\n encodedRoleChangeRequest\n );\n this.onRoleChangeRequestDelegate(encodedRoleChangeRequest);\n }\n };\n\n onChangeTrackStateRequestListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onChangeTrackStateRequestDelegate) {\n const encodedRoleChangeRequest =\n HMSEncoder.encodeHmsChangeTrackStateRequest(data);\n logger?.verbose(\n '#Listener ON_CHANGE_TRACK_STATE_REQUEST_LISTENER_CALL',\n encodedRoleChangeRequest\n );\n this.onChangeTrackStateRequestDelegate(encodedRoleChangeRequest);\n }\n };\n\n onRemovedFromRoomListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n this.roomLeaveCleanup();\n\n if (this.onRemovedFromRoomDelegate) {\n let requestedBy = null;\n if (data.requestedBy) {\n requestedBy = HMSEncoder.encodeHmsPeer(data.requestedBy);\n }\n const reason = data.reason;\n const roomEnded = data.roomEnded;\n\n logger?.verbose('#Listener ON_REMOVED_FROM_ROOM_LISTENER_CALL', {\n requestedBy,\n reason,\n roomEnded,\n id: this.id,\n });\n this.onRemovedFromRoomDelegate({ requestedBy, reason, roomEnded });\n }\n };\n\n reconnectingListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onReconnectingDelegate) {\n logger?.verbose('#Listener ON_RECONNECTING_CALL', data);\n this.onReconnectingDelegate(data);\n }\n };\n\n reconnectedListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onReconnectedDelegate) {\n logger?.verbose('#Listener ON_RECONNECTED_CALL', data);\n this.onReconnectedDelegate(data);\n }\n };\n\n RTCStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let rtcStats = HMSEncoder.encodeRTCStats(data);\n\n if (this.onRtcStatsDelegate) {\n logger?.verbose('#Listener RTCStatsListener_CALL', { rtcStats });\n this.onRtcStatsDelegate({ rtcStats });\n }\n };\n\n onLocalAudioStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let localAudioStats = HMSEncoder.encodeHMSLocalAudioStats(\n data.localAudioStats\n );\n let peer = HMSEncoder.encodeHmsPeer(data.peer);\n let track = HMSEncoder.encodeHmsLocalAudioTrack(data.track, this.id);\n\n if (this.onLocalAudioStatsDelegate) {\n logger?.verbose('#Listener onLocalAudioStatsListener_CALL', {\n ...data,\n localAudioStats,\n peer,\n track,\n });\n this.onLocalAudioStatsDelegate({ ...data, localAudioStats, peer, track });\n }\n };\n\n onLocalVideoStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let localVideoStats = HMSEncoder.encodeHMSLocalVideoStats(\n data.localVideoStats\n );\n let peer = HMSEncoder.encodeHmsPeer(data.peer);\n let track = HMSEncoder.encodeHmsLocalVideoTrack(data.track, this.id);\n\n if (this.onLocalVideoStatsDelegate) {\n logger?.verbose('#Listener onLocalVideoStatsListener_CALL', {\n ...data,\n localVideoStats,\n peer,\n track,\n });\n this.onLocalVideoStatsDelegate({ ...data, localVideoStats, peer, track });\n }\n };\n\n onRemoteAudioStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let remoteAudioStats = HMSEncoder.encodeHMSRemoteAudioStats(\n data.remoteAudioStats\n );\n let peer = HMSEncoder.encodeHmsPeer(data.peer);\n let track = HMSEncoder.encodeHmsRemoteAudioTrack(data.track, this.id);\n\n if (this.onRemoteAudioStatsDelegate) {\n logger?.verbose('#Listener onRemoteAudioStatsListener_CALL', {\n ...data,\n remoteAudioStats,\n peer,\n track,\n });\n this.onRemoteAudioStatsDelegate({\n ...data,\n remoteAudioStats,\n peer,\n track,\n });\n }\n };\n\n onRemoteVideoStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let remoteVideoStats = HMSEncoder.encodeHMSRemoteVideoStats(\n data.remoteVideoStats\n );\n let peer = HMSEncoder.encodeHmsPeer(data.peer);\n let track = HMSEncoder.encodeHmsRemoteVideoTrack(data.track, this.id);\n\n if (this.onRemoteVideoStatsDelegate) {\n logger?.verbose('#Listener onRemoteVideoStatsListener_CALL', {\n ...data,\n remoteVideoStats,\n peer,\n track,\n });\n this.onRemoteVideoStatsDelegate({\n ...data,\n remoteVideoStats,\n peer,\n track,\n });\n }\n };\n\n onAudioDeviceChangedListener = (data: {\n id: string;\n device: string;\n audioDevicesList: string[];\n }) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onAudioDeviceChangedDelegate) {\n logger?.verbose('#Listener onAudioDeviceChangedListener_CALL', data);\n this.onAudioDeviceChangedDelegate({\n ...data,\n });\n }\n };\n\n onSessionStoreAvailableListener = (data: { id: string }) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onSessionStoreAvailableDelegate) {\n logger?.verbose(\n '#Listener ON_SESSION_STORE_AVAILABLE_LISTENER_CALL',\n data\n );\n this.onSessionStoreAvailableDelegate({\n ...data,\n sessionStore: new HMSSessionStore(),\n });\n }\n };\n\n /*\n * - This listener is fired when Room is left from the Picture in Picture mode. Android only.\n */\n onPIPRoomLeaveListener = (data: { id: string }) => {\n if (data.id !== this.id) {\n return;\n }\n\n this.roomLeaveCleanup();\n\n if (this.onPIPRoomLeaveDelegate) {\n logger?.verbose('#Listener onPIPRoomLeave_CALL', data);\n this.onPIPRoomLeaveDelegate({\n ...data,\n });\n }\n };\n\n /*\n * - Attach this listener to get notified when Picture in Picture mode is changed\n */\n onPIPModeChangedListener = (data: { isInPictureInPictureMode: boolean }) => {\n if (this.onPIPModeChangedDelegate) {\n logger?.verbose('#Listener onPIPModeChanged_CALL', data);\n\n this.onPIPModeChangedDelegate(data);\n }\n };\n\n /*\n * - This function is used to check if Picture in Picture mode is supported on the device\n */\n async isPipModeSupported(): Promise<undefined | boolean> {\n const data = { id: this.id };\n logger?.verbose('#Function isPipModeSupported', data);\n return HMSManager.handlePipActions('isPipModeSupported', data);\n }\n\n /*\n * - This function can be used to manually enter Picture in Picture mode\n */\n async enterPipMode(data?: HMSPIPConfig): Promise<undefined | boolean> {\n logger?.verbose('#Function enterPipMode', data);\n return HMSManager.handlePipActions('enterPipMode', {\n ...data,\n id: this.id,\n });\n }\n\n /*\n * - This function is to be used to configure the Picture in Picture window\n */\n async setPipParams(data?: HMSPIPConfig): Promise<undefined | boolean> {\n return HMSManager.handlePipActions('setPictureInPictureParams', {\n ...data,\n id: this.id,\n });\n }\n\n /*\n * - Use this function to set Video Track for Picture in Picture mode. iOS Only.\n */\n async changeIOSPIPVideoTrack(track: HMSVideoTrack) {\n const data = {\n id: this.id,\n trackId: track.trackId,\n };\n logger?.verbose('#Function changeIOSPIPVideoTrack', data);\n return await HMSManager.changeIOSPIPVideoTrack(data);\n }\n\n /*\n * - Use this function to automatically show the current Active Speaker Peer video in the PIP Mode window. iOS Only.\n */\n async setActiveSpeakerInIOSPIP(enable: boolean) {\n const data = {\n id: this.id,\n enable,\n };\n logger?.verbose('#Function setActiveSpeakerInIOSPIP', data);\n return await HMSManager.setActiveSpeakerInIOSPIP(data);\n }\n\n async startRealTimeTranscription() {\n const data = {\n id: this.id,\n action: 'start',\n };\n logger?.verbose('#Function startRealTimeTranscription', data);\n return HMSManager.handleRealTimeTranscription(data);\n }\n\n async stopRealTimeTranscription() {\n const data = {\n id: this.id,\n action: 'stop',\n };\n logger?.verbose('#Function stopRealTimeTranscription', data);\n return HMSManager.handleRealTimeTranscription(data);\n }\n\n get interactivityCenter() {\n if (!this._interactivityCenter) {\n this._interactivityCenter = new HMSInteractivityCenter();\n }\n return this._interactivityCenter;\n }\n\n /**\n * - Returns the instance of logger which can be used to manipulate log levels.\n * @returns @instance HMSLogger\n * @memberof HMSSDK\n */\n static getLogger() {\n return getLogger();\n }\n\n /**\n * - Updates the logger for this instance of HMSSDK\n * @param {HMSLogger} hmsLogger\n * @memberof HMSSDK\n */\n setLogger = (hmsLogger?: HMSLogger) => {\n setLogger(this.id, hmsLogger);\n };\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,yBAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAEA,IAAAO,iBAAA,GAAAR,sBAAA,CAAAC,OAAA;AAmBA,IAAAQ,sBAAA,GAAAR,OAAA;AACA,IAAAS,uBAAA,GA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,CAACA,EAAE;MACXkV;IACF,CAAC;IACDjV,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,oCAAoC,EAAEkC,IAAI,CAAC;IAC3D,OAAO,MAAM9B,yBAAU,CAAC2U,wBAAwB,CAAC7S,IAAI,CAAC;EACxD;EAEA,MAAM+S,0BAA0BA,CAAA,EAAG;IACjC,MAAM/S,IAAI,GAAG;MACXpC,EAAE,EAAE,IAAI,CAACA,EAAE;MACXmK,MAAM,EAAE;IACV,CAAC;IACDlK,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,sCAAsC,EAAEkC,IAAI,CAAC;IAC7D,OAAO9B,yBAAU,CAAC8U,2BAA2B,CAAChT,IAAI,CAAC;EACrD;EAEA,MAAMiT,yBAAyBA,CAAA,EAAG;IAChC,MAAMjT,IAAI,GAAG;MACXpC,EAAE,EAAE,IAAI,CAACA,EAAE;MACXmK,MAAM,EAAE;IACV,CAAC;IACDlK,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,qCAAqC,EAAEkC,IAAI,CAAC;IAC5D,OAAO9B,yBAAU,CAAC8U,2BAA2B,CAAChT,IAAI,CAAC;EACrD;EAEA,IAAIkT,mBAAmBA,CAAA,EAAG;IACxB,IAAI,CAAC,IAAI,CAACC,oBAAoB,EAAE;MAC9B,IAAI,CAACA,oBAAoB,GAAG,IAAIC,8CAAsB,CAAC,CAAC;IAC1D;IACA,OAAO,IAAI,CAACD,oBAAoB;EAClC;;EAEA;AACF;AACA;AACA;AACA;EACE,OAAOE,SAASA,CAAA,EAAG;IACjB,OAAO,IAAAA,oBAAS,EAAC,CAAC;EACpB;AAUF;AAACC,OAAA,CAAA5V,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_HMSEncoder","_HMSHelper","_HMSLogger","_HMSUpdateListenerActions","_HmsView","_HMSManagerModule","_HMSPIPListenerActions","_HMSNativeEventListener","_HMSPeersCache","_HMSRoomCache","_HMSPeerUpdate","_HMSSessionStore","_HMSPeerListIterator","_HMSInteractivityCenter","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ReactNativeVersion","HmsSdk","HMSSDK","constructor","id","logger","verbose","clearHmsPeersCache","clearHmsRoomCache","removeAllListeners","HMSManager","destroy","roomCode","userId","endpoint","getAuthTokenByRoomCode","config","setHmsPeersCache","HMSPeersCache","setHmsRoomCache","HMSRoomCache","join","preview","React","forwardRef","props","ref","trackId","style","mirror","scaleType","setZOrderMediaOverlay","autoSimulcast","createElement","HmsViewComponent","_this$appStateSubscri","appStateSubscription","remove","HMSEncoder","clearData","data","op","leave","roomLeaveCleanup","message","type","sendBroadcastMessage","roles","sendGroupMessage","HMSHelper","getRoleNames","peer","peerId","peerID","sendDirectMessage","metadata","changeMetadata","startRTMPOrRecording","stopRtmpAndRecording","startHLSStreaming","stopHLSStreaming","sendHLSTimedMetadata","role","force","name","changeRole","changeRoleOfPeer","ofRoles","toRole","map","ofRole","filter","Boolean","changeRoleOfPeersWithRoles","track","mute","changeTrackState","source","roleNames","changeTrackStateForRoles","reason","removePeer","lock","endRoom","changeName","previewForRole","previewTracks","encodeHmsPreviewForRoleTracks","tracks","cancelPreview","acceptRoleChange","setPlaybackForAllAudio","remoteMuteAllAudio","_getHmsRoomCache","hmsRoom","getRoom","getHmsRoomCache","updateRoomCache","encodedHmsRoom","encodeHmsRoom","localPeer","getLocalPeer","encodedLocalPeer","encodeHmsLocalPeer","remotePeers","getRemotePeers","encodedRemotePeers","encodeHmsRemotePeers","getRoles","encodedRoles","encodeHmsRoles","volume","setVolume","startScreenshare","isScreenShared","stopScreenshare","enableNetworkQualityUpdates","disableNetworkQualityUpdates","audioMixingMode","Platform","OS","startAudioshare","console","log","isAudioShared","Promise","resolve","stopAudioshare","getAudioMixingMode","reject","setAudioMixingMode","getAudioDevicesList","getAudioOutputRouteType","audioDevice","switchAudioOutput","Error","switchAudioOutputUsingIOSUI","audioMode","setAudioMode","callback","addEventListener","HMSUpdateListenerActions","ON_AUDIO_DEVICE_CHANGED","setAudioDeviceChangeListener","remoteVideoTrackData","getRemoteVideoTrackFromTrackId","encodeHmsRemoteVideoTrack","remoteAudioTrackData","getRemoteAudioTrackFromTrackId","encodeHmsRemoteAudioTrack","peersCache","getHmsPeersCache","peerRole","getProperty","encodeHmsPeer","raiseLocalPeerHand","lowerLocalPeerHand","lowerRemotePeerHand","options","uniqueId","Math","random","toString","slice","getPeerListIterator","limit","HMSPeerListIterator","totalCount","enabled","setAlwaysScreenOn","setPermissionsAccepted","action","ON_PREVIEW","emitterSubscriptions","previewSubscription","HMSNativeEventListener","addListener","onPreviewListener","onPreviewDelegate","ON_JOIN","joinSubscription","onJoinListener","onJoinDelegate","ON_PERMISSIONS_REQUESTED","permissionsRequestedSubscription","onPermissionsRequestedListener","onPermissionsRequestedDelegate","ON_ROOM_UPDATE","roomSubscription","onRoomListener","onRoomDelegate","ON_TRANSCRIPTS","transcriptsSubscription","onTranscriptsListener","onTranscriptsDelegate","ON_PEER_UPDATE","peerSubscription","onPeerListener","onPeerDelegate","ON_PEER_LIST_UPDATED","peerListUpdatedSubscription","onPeerListUpdatedListener","onPeerListUpdatedDelegate","ON_TRACK_UPDATE","trackSubscription","onTrackListener","onTrackDelegate","ON_ERROR","errorSubscription","onErrorListener","onErrorDelegate","ON_MESSAGE","messageSubscription","onMessageListener","onMessageDelegate","ON_SPEAKER","speakerSubscription","onSpeakerListener","onSpeakerDelegate","RECONNECTING","reconnectingSubscription","reconnectingListener","onReconnectingDelegate","RECONNECTED","reconnectedSubscription","reconnectedListener","onReconnectedDelegate","ON_ROLE_CHANGE_REQUEST","roleChangeReqSubscription","onRoleChangeRequestListener","onRoleChangeRequestDelegate","ON_CHANGE_TRACK_STATE_REQUEST","changeTrackReqSubscription","onChangeTrackStateRequestListener","onChangeTrackStateRequestDelegate","ON_REMOVED_FROM_ROOM","removedFromRoomSubscription","onRemovedFromRoomListener","onRemovedFromRoomDelegate","ON_RTC_STATS","rtcStatsSubscription","RTCStatsListener","onRtcStatsDelegate","ON_LOCAL_AUDIO_STATS","lclAudioStatsSubscription","onLocalAudioStatsListener","onLocalAudioStatsDelegate","ON_LOCAL_VIDEO_STATS","lclVideoStatsSubscription","onLocalVideoStatsListener","onLocalVideoStatsDelegate","ON_REMOTE_AUDIO_STATS","rmAudioStatsSubscription","onRemoteAudioStatsListener","onRemoteAudioStatsDelegate","ON_REMOTE_VIDEO_STATS","rmVideoStatsSubscription","onRemoteVideoStatsListener","onRemoteVideoStatsDelegate","audDeviceChgSubscription","onAudioDeviceChangedListener","onAudioDeviceChangedDelegate","ON_SESSION_STORE_AVAILABLE","sessionStoreAvailableSubscription","onSessionStoreAvailableListener","onSessionStoreAvailableDelegate","HMSPIPListenerActions","ON_PIP_ROOM_LEAVE","pipRoomLeaveSubscription","onPIPRoomLeaveListener","onPIPRoomLeaveDelegate","ON_PIP_MODE_CHANGED","pipModeChangedSubscription","onPIPModeChangedListener","onPIPModeChangedDelegate","subscription","undefined","values","forEach","emitterSubscription","room","encodeHmsPreviewTracks","_getHmsRoomCache2","transformTranscripts","transcripts","peerData","ordinal","HMSPeerUpdateOrdinals","keys","encodeHmsPeerUpdate","HMSPeerUpdate","PEER_LEFT","sendPeerUpdateWhenPeerLeaves","_getHmsPeersCache","updatePeerCache","sendPeerUpdate","_getHmsPeersCache2","addedPeers","encodeHmsPeers","removedPeers","totalAddedPeers","length","totalRemovedPeers","_getHmsPeersCache3","encodeHmsTrack","encodeHMSMessage","speakers","encodeHmsSpeakers","warn","encodeHMSException","encodedRoleChangeRequest","encodeHmsRoleChangeRequest","encodeHmsChangeTrackStateRequest","requestedBy","roomEnded","rtcStats","encodeRTCStats","localAudioStats","encodeHMSLocalAudioStats","encodeHmsLocalAudioTrack","localVideoStats","encodeHMSLocalVideoStats","encodeHmsLocalVideoTrack","remoteAudioStats","encodeHMSRemoteAudioStats","remoteVideoStats","encodeHMSRemoteVideoStats","sessionStore","HMSSessionStore","hmsLogger","setLogger","build","params","version","major","minor","patch","trackSettings","haltPreviewJoinForPermissionsRequest","haltPreviewJoinForPermissionsRequestOnAndroid","appGroup","preferredExtension","frameworkInfo","sdkVersion","isPrebuilt","logSettings","isPipModeSupported","handlePipActions","enterPipMode","setPipParams","changeIOSPIPVideoTrack","setActiveSpeakerInIOSPIP","enable","startRealTimeTranscription","handleRealTimeTranscription","stopRealTimeTranscription","interactivityCenter","_interactivityCenter","HMSInteractivityCenter","getLogger","exports"],"sources":["HMSSDK.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport { HMSEncoder } from './HMSEncoder';\nimport { HMSHelper } from './HMSHelper';\nimport { getLogger, logger, setLogger } from './HMSLogger';\nimport { HMSUpdateListenerActions } from './HMSUpdateListenerActions';\nimport { HmsViewComponent } from './HmsView';\n\nimport HMSManager from '../modules/HMSManagerModule';\n\nimport type { HMSTrackType } from './HMSTrackType';\nimport type { HmsComponentProps } from './HmsView';\nimport type { HMSConfig } from './HMSConfig';\nimport type { HMSLocalPeer } from './HMSLocalPeer';\nimport type { HMSRemotePeer } from './HMSRemotePeer';\nimport type { HMSRoom } from './HMSRoom';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSLogger } from './HMSLogger';\nimport type { HMSPeer } from './HMSPeer';\nimport type { HMSTrackSettings } from './HMSTrackSettings';\nimport type { HMSRTMPConfig } from './HMSRTMPConfig';\nimport type { HMSHLSConfig } from './HMSHLSConfig';\nimport type { HMSAudioDevice } from './HMSAudioDevice';\nimport type { HMSAudioMode } from './HMSAudioMode';\nimport type { HMSAudioMixingMode } from './HMSAudioMixingMode';\nimport type { HMSLogSettings } from './HMSLogSettings';\nimport { HMSPIPListenerActions } from './HMSPIPListenerActions';\nimport HMSNativeEventListener from './HMSNativeEventListener';\nimport type { HMSNativeEventSubscription } from './HMSNativeEventListener';\nimport {\n clearHmsPeersCache,\n getHmsPeersCache,\n HMSPeersCache,\n setHmsPeersCache,\n} from './HMSPeersCache';\nimport {\n clearHmsRoomCache,\n getHmsRoomCache,\n HMSRoomCache,\n setHmsRoomCache,\n} from './HMSRoomCache';\nimport { HMSPeerUpdate, HMSPeerUpdateOrdinals } from './HMSPeerUpdate';\nimport { HMSSessionStore } from './HMSSessionStore';\nimport type { HMSPeerListIteratorOptions } from './HMSPeerListIteratorOptions';\nimport { HMSPeerListIterator } from './HMSPeerListIterator';\nimport type { HMSPIPConfig } from './HMSPIPConfig';\nimport { HMSInteractivityCenter } from './HMSInteractivityCenter';\nimport type { HMSHLSTimedMetadata } from './HMSHLSTimedMetadata';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\nimport type { HMSRemoteVideoTrack } from './HMSRemoteVideoTrack';\nimport type { HMSRemoteAudioTrack } from './HMSRemoteAudioTrack';\n\ntype HmsViewProps = Omit<HmsComponentProps, 'id'>;\n\nconst ReactNativeVersion = require('react-native/Libraries/Core/ReactNativeVersion');\n\nlet HmsSdk: HMSSDK | undefined;\n\n/**\n * Represents the main SDK class for the 100ms (HMS) video conferencing service in a React Native application.\n * This class provides methods to manage the video conferencing lifecycle including joining a room, leaving a room,\n * managing streams, and handling events.\n *\n * @export\n * @class HMSSDK\n * @example\n * const hmsInstance = await HMSSDK.build();\n * await hmsInstance.join({ authToken: 'your_auth_token', username: 'John Appleseed' });\n * @see https://www.100ms.live/docs/react-native/v2/quickstart/quickstart\n */\nexport class HMSSDK {\n id: string;\n private _interactivityCenter: HMSInteractivityCenter | null = null;\n\n private appStateSubscription?: any;\n private onPreviewDelegate?: any;\n private onJoinDelegate?: any;\n private onPermissionsRequestedDelegate?: any;\n private onRoomDelegate?: any;\n private onTranscriptsDelegate?: any;\n private onPeerDelegate?: any;\n private onPeerListUpdatedDelegate?: any;\n private onTrackDelegate?: any;\n private onErrorDelegate?: any;\n private onMessageDelegate?: any;\n private onSpeakerDelegate?: any;\n private onReconnectingDelegate?: any;\n private onReconnectedDelegate?: any;\n private onRoleChangeRequestDelegate?: any;\n private onChangeTrackStateRequestDelegate?: any;\n private onRemovedFromRoomDelegate?: any;\n private onRtcStatsDelegate?: any;\n private onLocalAudioStatsDelegate?: any;\n private onLocalVideoStatsDelegate?: any;\n private onRemoteAudioStatsDelegate?: any;\n private onRemoteVideoStatsDelegate?: any;\n private onAudioDeviceChangedDelegate?: any;\n private onSessionStoreAvailableDelegate?: any;\n private onPIPRoomLeaveDelegate?: any;\n private onPIPModeChangedDelegate?: any;\n\n private emitterSubscriptions: Partial<\n Record<\n HMSUpdateListenerActions | HMSPIPListenerActions,\n HMSNativeEventSubscription\n >\n > = {};\n\n private constructor(id: string) {\n this.id = id;\n }\n\n /**\n * Asynchronously builds and returns an instance of the HMSSDK class.\n *\n * This method initializes the HMSSDK with optional configuration parameters and returns the initialized instance.\n * It is responsible for setting up the SDK with specific settings for track management, app groups, extensions for iOS screen sharing,\n * logging configurations, etc.\n *\n *\n * @param {Object} params - Optional configuration parameters for initializing the HMSSDK.\n * @param {trackSettings} params.trackSettings is an optional value only required to enable features like iOS Screen/Audio Share, Android Software Echo Cancellation, etc\n * @param {appGroup} params.appGroup is an optional value only required for implementing Screen & Audio Share on iOS. They are not required for Android. DO NOT USE if your app does not implements Screen or Audio Share on iOS.\n * @param {preferredExtension} params.preferredExtension is an optional value only required for implementing Screen & Audio Share on iOS. They are not required for Android. DO NOT USE if your app does not implements Screen or Audio Share on iOS.\n * @param {boolean} params.haltPreviewJoinForPermissionsRequestOnAndroid - Optional flag to halt the preview/join process until permissions are explicitly granted by the user. Android only. This is particularly useful when you might want to request permissions before proceeding with the preview or join operation.\n * @param {HMSLogSettings} params.logSettings - Optional settings for logging.\n *\n * @returns {Promise<HMSSDK>} A promise that resolves to an instance of HMSSDK.\n * @throws {Error} If the HMSSDK instance cannot be created.\n *\n * @example\n * // Regular usage:\n * const hmsInstance = await HMSSDK.build();\n *\n * @example\n * // Advanced Usage:\n * const hmsInstance = await HMSSDK.build({\n * trackSettings: {...},\n * appGroup: 'group.example',\n * preferredExtension: 'com.example.extension',\n * logSettings: {...},\n * });\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/install-the-sdk/hmssdk\n * @static\n * @async\n * @function build\n * @memberof HMSSDK\n */\n static async build(params?: {\n trackSettings?: HMSTrackSettings;\n haltPreviewJoinForPermissionsRequestOnAndroid?: boolean;\n appGroup?: String;\n preferredExtension?: String;\n logSettings?: HMSLogSettings;\n isPrebuilt?: boolean;\n }) {\n const { version } = require('../../package.json');\n const { major, minor, patch } = ReactNativeVersion.version;\n let id = await HMSManager.build({\n trackSettings: params?.trackSettings,\n haltPreviewJoinForPermissionsRequest:\n params?.haltPreviewJoinForPermissionsRequestOnAndroid, // required for Android Permissions, not required for iOS\n appGroup: params?.appGroup, // required for iOS Screenshare, not required for Android\n preferredExtension: params?.preferredExtension, // required for iOS Screenshare, not required for Android\n frameworkInfo: {\n version: major + '.' + minor + '.' + patch,\n sdkVersion: version,\n isPrebuilt: params?.isPrebuilt || false,\n },\n logSettings: params?.logSettings,\n });\n HmsSdk = new HMSSDK(id);\n return HmsSdk;\n }\n\n /**\n * Asynchronously destroys the HMSSDK instance.\n *\n * - This method performs a series of cleanup actions before destroying the HMSSDK instance.\n * - It logs the destruction process, clears both the HMS peers and room caches, removes all event listeners to prevent memory leaks, and finally calls the native\n * `destroy` method on the `HMSManager` with the instance's ID.\n * - This is typically used to ensure that all resources are properly released when the HMSSDK instance is no longer needed, such as when a user leaves a room or the application is shutting down.\n *\n * @returns {Promise<void>} A promise that resolves when the destruction process has completed.\n * @throws {Error} If the HMSSDK instance cannot be destroyed.\n *\n * @example\n * await hmsInstance.destroy();\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/install-the-sdk/hmssdk\n *\n * @memberof HMSSDK\n */\n destroy = async () => {\n logger?.verbose('#Function destroy', { id: this.id });\n clearHmsPeersCache();\n clearHmsRoomCache();\n this.removeAllListeners();\n return await HMSManager.destroy({ id: this.id });\n };\n\n /**\n * Asynchronously retrieves an authentication token using the room code, user ID, and endpoint.\n *\n * This method is responsible for fetching an authentication token that is required to join a room in the HMS ecosystem.\n * It makes a call to the HMSManager's `getAuthTokenByRoomCode` method, passing in the necessary parameters.\n * The function logs the attempt and returns the token as a string.\n *\n * @param {string} roomCode - The unique code of the room for which the token is being requested.\n * @param {string} [userId] - Optional. The user ID of the participant requesting the token. This can be used for identifying the user in the backend.\n * @param {string} [endpoint] - Optional. The endpoint URL to which the token request is sent. This can be used to specify a different authentication server if needed.\n * @returns {Promise<string>} A promise that resolves to the authentication token as a string.\n * @throws {Error} If the authentication token cannot be retrieved.\n * @example\n * const authToken = await hmsInstance.getAuthTokenByRoomCode('room-code');\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/get-methods#getauthtokenbyroomcode\n * @async\n * @function getAuthTokenByRoomCode\n * @memberof HMSSDK\n */\n getAuthTokenByRoomCode = async (\n roomCode: string,\n userId?: string,\n endpoint?: string\n ): Promise<string> => {\n logger?.verbose('#Function getAuthTokenByRoomCode', {\n id: this.id,\n roomCode,\n userId,\n endpoint,\n });\n\n return HMSManager.getAuthTokenByRoomCode({\n id: this.id,\n roomCode,\n userId,\n endpoint,\n });\n };\n\n /**\n * Asynchronously joins a room with the provided configuration\n *\n * This method is responsible for initiating the process of joining a room in the HMS ecosystem. It performs several key actions:\n * - Logs the attempt to join with the provided configuration and instance ID.\n * - Initializes the peers and room caches for the current session.\n * - Calls the `join` method on the `HMSManager` with the provided configuration and the instance ID.\n *\n * @param {HMSConfig} config - The configuration object required to join a room. This includes credentials, room details, and user information.\n * @returns {Promise<void>} A promise that resolves when the join operation has been successfully initiated.\n * @throws {Error} If the join operation cannot be completed.\n *\n * @example\n * await hmsInstance.join(hmsConfig);\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/join\n * @async\n * @function join\n * @memberof HMSSDK\n */\n join = async (config: HMSConfig) => {\n logger?.verbose('#Function join', { config, id: this.id });\n setHmsPeersCache(new HMSPeersCache(this.id));\n setHmsRoomCache(new HMSRoomCache(this.id));\n await HMSManager.join({ ...config, id: this.id });\n };\n\n /**\n * Initiates a preview for the local peer.\n *\n * This function triggers the preview process for the local peer, allowing the application to display\n * preview tracks (e.g., video or audio tracks) before joining a room. The response from the previewListener\n * will contain the preview tracks for the local peer, which can be used to render a preview UI.\n *\n * @param {HMSConfig} config - The configuration object required for previewing, including credentials and user details.\n * @example\n * // Example usage of the preview function\n * const previewConfig = {\n * authToken: \"your_auth_token\",\n * userName: \"John Doe\",\n * roomCode: \"your_room_code\"\n * };\n * hmsInstance.preview(previewConfig);\n *\n * @see https://www.100ms.live/docs/react-native/v2/features/preview\n *\n * @async\n * @function preview\n * @memberof HMSSDK\n */\n preview = async (config: HMSConfig) => {\n logger?.verbose('#Function preview', { config, id: this.id });\n await HMSManager.preview({ ...config, id: this.id });\n };\n\n /**\n * `HmsView` is a React component that renders a video track within a view.\n *\n * It utilizes the `HmsViewComponent` to display the media track specified by the `trackId`.\n * This component is designed to be used with React's `forwardRef` to allow for ref forwarding,\n * enabling direct interaction with the DOM element.\n *\n * Props:\n * - `trackId`: The unique identifier for the track to be displayed.\n * - `style`: Custom styles to apply to the view.\n * - `mirror`: If true, the video will be mirrored; commonly used for local video tracks.\n * - `scaleType`: Determines how the video fits within the bounds of the view (e.g., aspect fill, aspect fit).\n * - `setZOrderMediaOverlay`: When true, the video view will be rendered above the regular view hierarchy.\n * - `autoSimulcast`: Enables automatic simulcast layer switching based on network conditions (if supported).\n *\n * @param {Object} props - The properties passed to the HmsView component.\n * @param {React.Ref} ref - A ref provided by `forwardRef` for accessing the underlying DOM element.\n * @returns {React.Element} A `HmsViewComponent` element configured with the provided props and ref.\n * @memberof HMSSDK\n * @example\n * <HmsView trackId=\"track-id\" style={{ width: 100, height: 100 }} mirror={true} scaleType=\"aspectFill\" />\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/overview\n *\n * @param {HmsViewProps}\n * @memberof HMSSDK\n */\n HmsView = React.forwardRef<any, HmsViewProps>((props, ref) => {\n const {\n trackId,\n style,\n mirror,\n scaleType,\n setZOrderMediaOverlay,\n autoSimulcast,\n } = props;\n return (\n <HmsViewComponent\n ref={ref}\n trackId={trackId}\n style={style}\n autoSimulcast={autoSimulcast}\n setZOrderMediaOverlay={setZOrderMediaOverlay}\n mirror={mirror}\n scaleType={scaleType}\n id={this.id}\n />\n );\n });\n\n roomLeaveCleanup = () => {\n this?.appStateSubscription?.remove();\n clearHmsPeersCache();\n clearHmsRoomCache();\n HMSEncoder.clearData(); // Clearing cached data in encoder\n };\n\n /**\n * Asynchronously leaves the current room and performs cleanup.\n *\n * This method triggers the leave process for the current user, effectively disconnecting them from the room they are in.\n * It logs the leave action with the user's ID, calls the native `leave` method in `HMSManager` with the user's ID,\n * and then performs additional cleanup through `roomLeaveCleanup`. This cleanup includes removing app state subscriptions\n * and clearing cached data related to peers and the room.\n *\n * @returns {Promise<boolean>} A promise that resolves to `true` if the user has successfully left the room, or `false` otherwise.\n * @throws {Error} If the user cannot leave the room.\n * @memberof HMSSDK\n * @example\n * await hmsInstance.leave();\n *\n * @see https://www.100ms.live/docs/react-native/v2/features/leave\n *\n * @async\n * @function leave\n * @memberof HMSSDK\n */\n leave = async () => {\n logger?.verbose('#Function leave', { id: this.id });\n const data = {\n id: this.id,\n };\n\n const op = await HMSManager.leave(data);\n this.roomLeaveCleanup();\n return op;\n };\n\n /**\n * Sends a broadcast message to all peers in the room.\n *\n * This asynchronous function sends a message to all peers in the room, which they can receive through the `onMessage` listener.\n * It can be used to send chat messages or custom types of messages like emoji reactions or notifications.\n *\n * @param {string} message - The message to be sent to all peers.\n * @param {string} [type='chat'] - The type of the message. Default is 'chat'. Custom types can be used for specific purposes.\n * @returns {Promise<{messageId: string | undefined}>} A promise that resolves with the message ID of the sent message, or undefined if the message could not be sent.\n *\n * @example\n * // Sending a chat message to all peers\n * await hmsInstance.sendBroadcastMessage(\"Hello everyone!\", \"chat\");\n *\n * @example\n * // Sending a custom notification to all peers\n * await hmsInstance.sendBroadcastMessage(\"Meeting starts in 5 minutes\", \"notification\");\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/chat\n *\n * @async\n * @function sendBroadcastMessage\n * @memberof HMSSDK\n */\n sendBroadcastMessage = async (message: string, type: string = 'chat') => {\n logger?.verbose('#Function sendBroadcastMessage', {\n message,\n type: type || null,\n id: this.id,\n });\n const data: { messageId: string | undefined } =\n await HMSManager.sendBroadcastMessage({\n message,\n type: type || null,\n id: this.id,\n });\n\n return data;\n };\n\n /**\n * Sends a message to a specific set of roles within the room.\n *\n * This method allows for targeted communication by sending a message to peers who have any of the specified roles.\n * The message is received by the peers through the `onMessage` listener. This can be useful for sending announcements,\n * instructions, or other types of messages to a subset of the room based on their roles.\n *\n * @param {string} message - The message to be sent.\n * @param {HMSRole[]} roles - An array of roles to which the message will be sent. Peers with these roles will receive the message.\n * @param {string} [type='chat'] - The type of the message. Defaults to 'chat'. Custom types can be used for specific messaging scenarios.\n * @returns {Promise<{messageId: string | undefined}>} A promise that resolves with an object containing the `messageId` of the sent message. If the message could not be sent, `messageId` will be `undefined`.\n *\n * @example\n * // Sending a message to all peers with the role of 'moderator'\n * await hmsInstance.sendGroupMessage(\"Please start the meeting.\", [moderator]);\n *\n * @see https://www.100ms.live/docs/react-native/v2/features/chat\n *\n * @async\n * @function sendGroupMessage\n * @memberof HMSSDK\n */\n sendGroupMessage = async (\n message: string,\n roles: HMSRole[],\n type: string = 'chat'\n ) => {\n logger?.verbose('#Function sendGroupMessage', {\n message,\n roles,\n id: this.id,\n type: type || null,\n });\n const data: { messageId: string | undefined } =\n await HMSManager.sendGroupMessage({\n message,\n roles: HMSHelper.getRoleNames(roles),\n id: this.id,\n type: type || null,\n });\n\n return data;\n };\n\n /**\n * Sends a direct message to a specific peer in the room.\n *\n * This method allows sending a private message to a single peer, ensuring that only the specified recipient can receive and view the message.\n * The message is delivered to the recipient through the `onMessage` listener. This functionality is useful for implementing private chat features\n * within a larger group chat context.\n *\n * @param {string} message - The message text to be sent.\n * @param {HMSPeer} peer - The peer object representing the recipient of the message.\n * @param {string} [type='chat'] - The type of the message being sent. Defaults to 'chat'. This can be customized to differentiate between various message types (e.g., 'private', 'system').\n * @returns {Promise<{messageId: string | undefined}>} A promise that resolves with an object containing the `messageId` of the sent message. If the message could not be sent, `messageId` will be `undefined`.\n * @throws {Error} Throws an error if the message could not be sent.\n *\n * @example\n * // Sending a private chat message to a specific peer\n * const peer = { peerID: 'peer123', ... };\n * await hmsInstance.sendDirectMessage(\"Hello, this is a private message.\", peer, \"chat\");\n *\n * @see https://www.100ms.live/docs/react-native/v2/features/chat\n *\n * @async\n * @function sendDirectMessage\n * @memberof HMSSDK\n */\n sendDirectMessage = async (\n message: string,\n peer: HMSPeer,\n type: string = 'chat'\n ) => {\n logger?.verbose('#Function sendDirectMessage', {\n message,\n peerId: peer.peerID,\n id: this.id,\n type: type || null,\n });\n const data: { messageId: string | undefined } =\n await HMSManager.sendDirectMessage({\n message,\n peerId: peer.peerID,\n id: this.id,\n type: type || null,\n });\n\n return data;\n };\n\n /**\n * Asynchronously changes the metadata for the local peer.\n *\n * This method updates the metadata field of the local peer in the room. The metadata is a versatile field that can be used\n * to store various information such as the peer's current status (e.g., raising hand, be right back, etc.). It is recommended\n * to use a JSON object in string format to store multiple data points within the metadata. This allows for a structured and\n * easily parseable format for metadata management.\n *\n * @param {string} metadata - The new metadata in string format. It is advised to use a JSON string for structured data.\n * @returns {Promise<void>} A promise that resolves when the metadata has been successfully changed.\n * @throws {Error} Throws an error if the metadata change operation fails.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/change-metadata\n * @example\n * // Changing metadata to indicate the peer is raising their hand\n * const newMetadata = JSON.stringify({ status: 'raiseHand' });\n * await hmsInstance.changeMetadata(newMetadata);\n *\n * @async\n * @function changeMetadata\n * @memberof HMSSDK\n */\n changeMetadata = async (metadata: string) => {\n logger?.verbose('#Function changeMetadata', { metadata, id: this.id });\n return await HMSManager.changeMetadata({ metadata, id: this.id });\n };\n\n /**\n * Initiates RTMP streaming or recording based on the provided configuration.\n *\n * This method starts RTMP streaming or recording by taking a configuration object of type HMSRTMPConfig.\n * The configuration specifies the URLs for streaming and whether recording should be enabled. The response to this\n * operation can be observed in the `onRoomUpdate` event, specifically when the `RTMP_STREAMING_STATE_UPDATED` action is triggered.\n *\n * @param {HMSRTMPConfig} data - The configuration object for RTMP streaming or recording. It includes streaming URLs and recording settings.\n * @returns {Promise<any>} A promise that resolves with the operation result when the streaming or recording starts successfully.\n * @throws {Error} Throws an error if the operation fails or the configuration is invalid.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/record-and-live-stream/recording\n *\n * @example\n * const rtmpConfig = {\n * meetingURL: \"https://meet.example.com/myMeeting\",\n * rtmpURLs: [\"rtmp://live.twitch.tv/app\", \"rtmp://a.rtmp.youtube.com/live2\"],\n * record: true,\n * resolution: { width: 1280, height: 720 }\n * };\n * await hmsInstance.startRTMPOrRecording(rtmpConfig);\n * @async\n * @function startRTMPOrRecording\n * @memberof HMSSDK\n */\n startRTMPOrRecording = async (data: HMSRTMPConfig) => {\n logger?.verbose('#Function startRTMPOrRecording', {\n ...data,\n id: this.id,\n });\n\n const op = await HMSManager.startRTMPOrRecording({ ...data, id: this.id });\n return op;\n };\n\n /**\n * Stops all ongoing RTMP streaming and recording.\n *\n * This function is responsible for halting any active RTMP streaming or recording sessions.\n * It communicates with the native `HMSManager` module to execute the stop operation.\n * The completion or status of this operation can be monitored through the `onRoomUpdate` event, specifically when the `RTMP_STREAMING_STATE_UPDATED` action is triggered, indicating that the streaming or recording has been successfully stopped.\n *\n * @async\n * @function stopRtmpAndRecording\n * @returns {Promise<any>} A promise that resolves when the RTMP streaming and recording have been successfully stopped.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/record-and-live-stream/recording\n * @memberof HMSSDK\n * @example\n * await hmsInstance.stopRtmpAndRecording();\n */\n stopRtmpAndRecording = async () => {\n logger?.verbose('#Function stopRtmpAndRecording', {});\n const op = await HMSManager.stopRtmpAndRecording({ id: this.id });\n return op;\n };\n\n /**\n * Initiates HLS (HTTP Live Streaming) based on the provided configuration.\n *\n * This asynchronous function starts HLS streaming, allowing for live video content to be delivered over the internet in a scalable manner.\n * The function takes an optional `HMSHLSConfig` object as a parameter, which includes settings such as the meeting URL, HLS variant parameters, and recording settings.\n * The operation's response can be observed through the `onRoomUpdate` event, specifically when the `HLS_STREAMING_STATE_UPDATED` action is triggered, indicating the streaming state has been updated.\n *\n * @param {HMSHLSConfig} [data] - Optional configuration object for HLS streaming. Defines parameters such as meeting URL, HLS variants, and recording options.\n * @returns {Promise<any>} A promise that resolves when the HLS streaming starts successfully. The promise resolves with the operation result.\n * @throws {Error} Throws an error if the operation fails or if the provided configuration is invalid.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/record-and-live-stream/hls\n * @async\n * @function startHLSStreaming\n * @memberof HMSSDK\n * @example\n * await hmsInstance.startHLSStreaming();\n */\n startHLSStreaming = async (data?: HMSHLSConfig) => {\n logger?.verbose('#Function startHLSStreaming', {\n ...data,\n id: this.id,\n });\n return await HMSManager.startHLSStreaming({ ...data, id: this.id });\n };\n\n /**\n * Stops the ongoing HLS (HTTP Live Streaming) streams.\n *\n * This asynchronous function is responsible for stopping any active HLS streaming sessions.\n * It communicates with the native `HMSManager` module to execute the stop operation.\n * The completion or status of this operation can be observed through the `onRoomUpdate` event, specifically when the `HLS_STREAMING_STATE_UPDATED` action is triggered, indicating that the HLS streaming has been successfully stopped.\n *\n * @async\n * @function stopHLSStreaming\n * @returns {Promise<void>} A promise that resolves when the HLS streaming has been successfully stopped.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/record-and-live-stream/hls for more details on HLS streaming.\n * @memberof HMSSDK\n * @example\n * await hmsInstance.stopHLSStreaming();\n */\n stopHLSStreaming = async () => {\n logger?.verbose('#Function stopHLSStreaming', {});\n return await HMSManager.stopHLSStreaming({ id: this.id });\n };\n\n /**\n * Sends timed metadata for HLS (HTTP Live Streaming) playback.\n *\n * This asynchronous function is designed to send metadata that can be synchronized with the HLS video playback.\n * The metadata is sent to all viewers of the HLS stream, allowing for a variety of use cases such as displaying\n * song titles, ads, or other information at specific times during the stream.\n * The metadata should be an array of HMSHLSTimedMetadata objects, each specifying the content and timing for the metadata display.\n *\n * @async\n * @function sendHLSTimedMetadata\n * @param {HMSHLSTimedMetadata[]} metadata - An array of metadata objects to be sent.\n * @returns {Promise<boolean>} A promise that resolves to `true` if the metadata was successfully sent, or `false` otherwise.\n * @example\n * const metadata = [\n * { time: 10, data: \"Song: Example Song Title\" },\n * { time: 20, data: \"Advertisement: Buy Now!\" }\n * ];\n * await hmsInstance.sendHLSTimedMetadata(metadata);\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/record-and-live-stream/hls-player#how-to-use-hls-timed-metadata-with-100ms-hls-player\n */\n sendHLSTimedMetadata = async (\n metadata: HMSHLSTimedMetadata[]\n ): Promise<boolean> => {\n const data = { metadata, id: this.id };\n logger?.verbose('#Function sendHLSTimedMetadata', data);\n return await HMSManager.sendHLSTimedMetadata(data);\n };\n\n /**\n * Deprecated. Changes the role of a specified peer within the room.\n *\n * This function is marked as deprecated and should not be used in new implementations. Use `changeRoleOfPeer` instead.\n * It allows for the dynamic adjustment of a peer's permissions and capabilities within the room by changing their role.\n * The role change can be enforced immediately or offered to the peer as a request, depending on the `force` parameter.\n *\n * @deprecated Since version 1.1.0. Use `changeRoleOfPeer` instead.\n * @param {HMSPeer} peer - The peer whose role is to be changed.\n * @param {HMSRole} role - The new role to be assigned to the peer.\n * @param {boolean} [force=false] - If `true`, the role change is applied immediately without the peer's consent. If `false`, the peer receives a role change request.\n * @returns {Promise<void>} A promise that resolves when the role change operation is complete.\n * @throws {Error} Throws an error if the operation fails.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/change-role\n * @example\n * // Change the role of a peer to 'viewer' forcefully\n * const peer = { peerID: 'peer123', ... };\n * const newRole = { name: 'viewer', ... };\n * await hmsInstance.changeRole(peer, newRole, true);\n * @async\n * @function changeRole\n * @memberof HMSSDK\n */\n changeRole = async (peer: HMSPeer, role: HMSRole, force: boolean = false) => {\n const data = {\n peerId: peer?.peerID,\n role: role?.name,\n force: force,\n id: this.id,\n };\n logger?.verbose('#Function changeRole', data);\n return await HMSManager.changeRole(data);\n };\n\n /**\n * Asynchronously changes the role of a specified peer within the room.\n *\n * This function is designed to dynamically adjust a peer's permissions and capabilities within the room by changing their role.\n * It can enforce the role change immediately or offer it to the peer as a request, depending on the `force` parameter.\n * If the role change is forced, it is applied immediately without the peer's consent. Otherwise, the peer receives a role change request,\n * which can be accepted or declined. This functionality supports flexible room management and control over participant permissions.\n *\n * @async\n * @function changeRoleOfPeer\n * @param {HMSPeer} peer - The peer whose role is to be changed.\n * @param {HMSRole} role - The new role to be assigned to the peer.\n * @param {boolean} [force=false] - Determines whether the role change should be applied immediately (`true`) or sent as a request (`false`).\n * @returns {Promise<void>} A promise that resolves to `true` if the role change operation is successful, or `false` otherwise.\n * @throws {Error} Throws an error if the operation fails.\n * @see https://www.100ms.live/docs/react-native/v2/features/change-role\n * @example\n * // Change the role of a peer to 'viewer' forcefully\n * const peer = { peerID: 'peer123', ... };\n * const newRole = { name: 'viewer', ... };\n * await hmsInstance.changeRoleOfPeer(peer, newRole, true);\n *\n * @async\n * @function changeRoleOfPeer\n * @memberof HMSSDK\n */\n changeRoleOfPeer = async (\n peer: HMSPeer,\n role: HMSRole,\n force: boolean = false\n ): Promise<void> => {\n const data = {\n peerId: peer.peerID,\n role: role.name,\n force: force,\n id: this.id,\n };\n logger?.verbose('#Function changeRoleOfPeer', data);\n return HMSManager.changeRoleOfPeer(data);\n };\n\n /**\n * Asynchronously changes the roles of multiple peers within the room.\n *\n * This function is designed to batch update the roles of peers based on their current roles. It is particularly useful\n * in scenarios where a group of users need to be granted or restricted permissions en masse, such as promoting all viewers\n * to participants or demoting all speakers to viewers. The function updates the roles of all peers that have any of the specified\n * `ofRoles` to the new `toRole` without requiring individual consent, bypassing the `roleChangeRequest` listener on the peer's end.\n *\n * @async\n * @function changeRoleOfPeersWithRoles\n * @param {HMSRole[]} ofRoles - An array of roles to identify the peers whose roles are to be changed.\n * @param {HMSRole} toRole - The new role to be assigned to the identified peers.\n * @returns {Promise<void>} A promise that resolves when the role change operation is complete.\n * @throws {Error} Throws an error if the operation fails.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/change-role\n * @example\n * // Change the role of all peers with 'viewer' role to 'participant'\n * const viewerRole = { name: 'viewer', ... };\n * const participantRole = { name: 'participant', ... };\n * await hmsInstance.changeRoleOfPeersWithRoles([viewerRole], participantRole);\n *\n * @memberof HMSSDK\n */\n changeRoleOfPeersWithRoles = async (\n ofRoles: HMSRole[],\n toRole: HMSRole\n ): Promise<void> => {\n const data = {\n ofRoles: ofRoles.map((ofRole) => ofRole.name).filter(Boolean),\n toRole: toRole.name,\n id: this.id,\n };\n logger?.verbose('#Function changeRoleOfPeersWithRoles', data);\n return HMSManager.changeRoleOfPeersWithRoles(data);\n };\n\n /**\n * Asynchronously changes the mute state of a specified track.\n *\n * This function is designed to control the mute state of any track (audio or video) within the room.\n * When invoked, it sends a request to the HMSManager to change the mute state of the specified track.\n * The targeted peer, whose track is being manipulated, will receive a callback on the `onChangeTrackStateRequestListener`,\n * allowing for custom handling or UI updates based on the mute state change.\n *\n * @async\n * @function changeTrackState\n * @param {HMSTrack} track - The track object whose mute state is to be changed.\n * @param {boolean} mute - The desired mute state of the track. `true` to mute the track, `false` to unmute.\n * @returns {Promise<void>} A promise that resolves when the operation to change the track's mute state is complete.\n * @throws {Error} Throws an error if the operation fails or the track cannot be found.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/track/remote-mute\n * @async\n * @function changeTrackState\n * @memberof HMSSDK\n *\n * @example\n * // Mute a specific track\n * const trackToMute = { trackId: 'track123', ... };\n * await hmsInstance.changeTrackState(trackToMute, true);\n *\n * @example\n * // Unmute a specific track\n * const trackToUnmute = { trackId: 'track456', ... };\n * await hmsInstance.changeTrackState(trackToUnmute, false);\n */\n changeTrackState = async (track: HMSTrack, mute: boolean): Promise<void> => {\n logger?.verbose('#Function changeTrackState', {\n track,\n mute,\n id: this.id,\n });\n const data = {\n trackId: track.trackId,\n mute,\n id: this.id,\n };\n\n return await HMSManager.changeTrackState(data);\n };\n\n /**\n * Asynchronously changes the mute state of tracks for peers with specified roles.\n *\n * This method extends the functionality of `changeTrackState` by allowing the mute state of all tracks (audio, video, etc.)\n * belonging to peers with certain roles to be changed in a single operation. It is particularly useful for managing the audio\n * and video state of groups of users, such as muting all participants except the speaker in a conference call.\n *\n * The peers whose track states are being changed will receive a callback on `onChangeTrackStateRequestListener`, allowing for\n * custom handling or UI updates based on the mute state change.\n *\n * @async\n * @function changeTrackStateForRoles\n * @param {boolean} mute - The desired mute state of the tracks. `true` to mute, `false` to unmute.\n * @param {HMSTrackType} [type] - Optional. The type of the tracks to be muted/unmuted (e.g., audio, video).\n * @param {string} [source] - Optional. The source of the track (e.g., camera, screen).\n * @param {Array<HMSRole>} [roles] - The roles of the peers whose tracks are to be muted/unmuted. If not specified, affects all roles.\n * @returns {Promise<void>} A promise that resolves when the operation to change the track's mute state is complete.\n * @throws {Error} Throws an error if the operation fails.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/track/change-track-state-roles\n * @memberof HMSSDK\n *\n * @example\n * // Mute all audio tracks for peers with the role of 'viewer'\n * const viewerRole = { name: 'viewer', ... };\n * await hmsInstance.changeTrackStateForRoles(true, 'audio', undefined, [viewerRole]);\n */\n changeTrackStateForRoles = async (\n mute: boolean,\n type?: HMSTrackType,\n source?: string,\n roles?: Array<HMSRole>\n ): Promise<void> => {\n let roleNames = null;\n if (roles) {\n roleNames = HMSHelper.getRoleNames(roles);\n }\n logger?.verbose('#Function changeTrackStateRoles', {\n source,\n mute,\n type,\n roles,\n id: this.id,\n });\n const data = {\n source,\n mute,\n type,\n roles: roleNames,\n id: this.id,\n };\n\n return await HMSManager.changeTrackStateForRoles(data);\n };\n\n /**\n * Asynchronously removes a peer from the room.\n *\n * This method forcefully disconnects a specified peer from the room.\n * Upon successful removal, the removed peer will receive a callback through the `onRemovedFromRoomListener`, indicating\n * they have been removed from the room.\n * This can be used for managing room participants, such as removing disruptive users or managing room capacity.\n *\n * @param {HMSPeer} peer - The peer object representing the participant to be removed.\n * @param {string} reason - A string detailing the reason for the removal. This reason is communicated\n * to the removed peer, providing context for the action.\n * @returns {Promise<void>} A promise that resolves when the peer has been successfully removed.\n * If the operation fails, the promise will reject with an error.\n *\n * @example\n * // Assuming `peer` is an instance of HMSPeer representing the participant to remove\n * await hmsInstance.removePeer(peer, \"Violation of room rules\");\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/remove-peer\n *\n * @async\n * @function removePeer\n * @memberof HMSSDK\n */\n removePeer = async (peer: HMSPeer, reason: string): Promise<void> => {\n logger?.verbose('#Function removePeer', {\n peerId: peer.peerID,\n reason,\n id: this.id,\n });\n const data = {\n peerId: peer.peerID,\n reason,\n id: this.id,\n };\n\n return await HMSManager.removePeer(data);\n };\n\n /**\n * Asynchronously ends the current room session for all participants.\n *\n * This method is used to programmatically end the current room session, effectively disconnecting all participants.\n * It can also optionally lock the room to prevent new participants from joining. This is particularly useful for\n * managing the end of scheduled events or meetings, ensuring that all participants are removed at the same time.\n * Upon successful execution, all participants will receive a notification through the `onRemovedFromRoomListener`\n * indicating that they have been removed from the room.\n *\n * @param {string} reason - A descriptive reason for ending the room session. This reason is communicated to all participants.\n * @param {boolean} [lock=false] - Optional. Specifies whether the room should be locked after ending the session. Default is `false`.\n * @returns {Promise<void>} A promise that resolves when the room has been successfully ended and, optionally, locked.\n *\n * @example\n * // End the room and lock it to prevent rejoining\n * await hmsInstance.endRoom(\"Meeting concluded\", true);\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/room/end-room\n * @async\n * @function endRoom\n * @memberof HMSSDK\n */\n endRoom = async (reason: string, lock: boolean = false): Promise<void> => {\n logger?.verbose('#Function endRoom', { lock, reason, id: this.id });\n const data = {\n lock,\n reason,\n id: this.id,\n };\n\n return await HMSManager.endRoom(data);\n };\n\n /**\n * Asynchronously changes the name of the local peer.\n *\n * This function updates the name of the local peer in the room. It is useful for scenarios where a user's display name needs to be updated during a session, such as when a user decides to change their nickname or when correcting a typo in the user's name. The updated name is reflected across all participants in the room.\n *\n * Once the name change is successful, all the peers receive HMSUpdateListenerActions.ON_PEER_UPDATE event with HMSPeerUpdate.NAME_CHANGED as update type. When this event is received, the UI for that peer should be updated.\n *\n * @param {string} name - The new name to be set for the local peer.\n * @returns {Promise<void>} A promise that resolves when the name change operation has been successfully completed.\n * @throws {Error} Throws an error if the name change operation fails.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/change-name for more information on changing the peer's name.\n * @async\n * @function changeName\n * @memberof HMSSDK\n *\n * @example\n * // Change the name of the local peer to 'Alice'\n * await hmsInstance.changeName(\"Alice\");\n */\n changeName = async (name: string): Promise<void> => {\n logger?.verbose('#Function changeName', { name, id: this.id });\n const data = {\n name,\n id: this.id,\n };\n\n return await HMSManager.changeName(data);\n };\n\n /**\n * Asynchronously previews the audio and video tracks for a specific role before applying the role change.\n *\n * This method allows users to preview the expected audio and video tracks that will be visible to other peers in the room\n * after changing their role. It is useful for scenarios where a user wants to understand the impact of a role change on their\n * media tracks before making the change. This can help in ensuring that the right media settings are applied for the new role.\n *\n * @param {string} role - The role for which the preview is requested. The role should be defined within the room's role configurations.\n * @returns {Promise<any>} A promise that resolves with the preview tracks information. The resolved object contains details about the audio and video tracks that would be available to the user if the role were changed to the specified role.\n *\n * @example\n * // Preview the tracks for the 'speaker' role\n * const previewTracks = await hmsInstance.previewForRole('speaker');\n * console.log(previewTracks);\n *\n * @async\n * @function previewForRole\n * @memberof HMSSDK\n */\n previewForRole = async (role: string) => {\n logger?.verbose('#Function previewForRole', {\n role,\n id: this.id,\n });\n const data = await HMSManager.previewForRole({\n role,\n id: this.id,\n });\n\n const previewTracks = HMSEncoder.encodeHmsPreviewForRoleTracks(\n data.tracks,\n this.id\n );\n\n return previewTracks;\n };\n\n /**\n * Asynchronously cancels the preview for a role change.\n *\n * This method is intended to be used after a `previewForRole` invocation. It cancels the ongoing preview operation,\n * effectively clearing any tracks that were created in anticipation of a role change. This is useful in scenarios where\n * a role change preview was initiated but needs to be aborted before the actual role change occurs, allowing for clean\n * state management and resource cleanup.\n *\n * @async\n * @function cancelPreview\n * @memberof HMSSDK\n * @returns {Promise<{data: string}>} A promise that resolves with an object containing a data string.\n *\n * @example\n * // Cancel a previously initiated role change preview\n * await hmsInstance.cancelPreview();\n *\n */\n cancelPreview = async (): Promise<{ success: boolean }> => {\n logger?.verbose('#Function cancelPreview', {\n id: this.id,\n });\n const data = await HMSManager.cancelPreview({\n id: this.id,\n });\n\n return data;\n };\n\n /**\n * Asynchronously accepts a role change request for the local peer.\n *\n * This method is used when a role change request has been made to the local peer, typically by an admin or moderator of the room.\n * Invoking this method signals acceptance of the new role, and the role change is applied to the local peer. This can affect the peer's\n * permissions and capabilities within the room, such as the ability to send video, audio, or chat messages.\n *\n * The successful execution of this method triggers an update across the room, notifying other peers of the role change.\n * It is important to handle this method's response to ensure the local UI reflects the new role's permissions and capabilities.\n *\n * @async\n * @function acceptRoleChange\n * @memberof HMSSDK\n * @returns {Promise<void>} A promise that resolves when the role change has been successfully accepted and applied.\n * @throws {Error} Throws an error if the role change acceptance operation fails.\n * @example\n * // Accept a role change request to become a 'moderator'\n * await hmsInstance.acceptRoleChange();\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/change-role\n */\n acceptRoleChange = async (): Promise<void> => {\n logger?.verbose('#Function acceptRoleChange', { id: this.id });\n return await HMSManager.acceptRoleChange({ id: this.id });\n };\n\n /**\n * Sets the mute status for all remote audio tracks in the room for the local peer.\n *\n * This method allows the local user to mute or unmute the playback of all remote audio tracks in the room.\n * It affects only the local peer's audio playback and does not impact other peers. This can be useful in scenarios\n * where a user needs to quickly mute all incoming audio without affecting the audio state for other participants in the room.\n *\n * @param {boolean} mute - A boolean value indicating whether to mute (`true`) or unmute (`false`) all remote audio tracks for the local peer.\n * @returns {Promise<boolean>} A promise that resolves with a boolean value indicating the success of the operation.\n * @throws {Error} Throws an error if the operation fails.\n * @async\n * @function setPlaybackForAllAudio\n * @memberof HMSSDK\n * @example\n * // Mute all remote audio tracks for the local peer\n * hmsInstance.setPlaybackForAllAudio(true);\n *\n * @example\n * // Unmute all remote audio tracks for the local peer\n * hmsInstance.setPlaybackForAllAudio(false);\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/track/playback-allowed\n */\n setPlaybackForAllAudio = async (mute: boolean): Promise<boolean> => {\n logger?.verbose('#Function setPlaybackForAllAudio', { mute, id: this.id });\n return await HMSManager.setPlaybackForAllAudio({ mute, id: this.id });\n };\n\n /**\n * Mutes the audio for all peers in the room.\n *\n * This asynchronous function communicates with the native `HMSManager` module to mute the audio tracks of all remote peers in the room.\n * It is particularly useful in scenarios where a moderator needs to quickly mute all participants to prevent background noise or interruptions during a session.\n *\n * @async\n * @function remoteMuteAllAudio\n * @memberof HMSSDK\n * @returns {Promise<{success: boolean}>} A promise that resolves with a boolean value indicating the success of the operation.\n * @throws {Error} Throws an error if the operation fails.\n * @example\n * // Mute all remote audio tracks in the room\n * await hmsInstance.remoteMuteAllAudio();\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/track/remote-mute\n */\n remoteMuteAllAudio = async (): Promise<{ success: boolean }> => {\n logger?.verbose('#Function remoteMuteAllAudio', { id: this.id });\n return await HMSManager.remoteMuteAllAudio({ id: this.id });\n };\n\n /**\n * Retrieves the current room's details.\n *\n * This method acts as a wrapper around the native `getRoom` function, providing an easy way to obtain the current room's state and details,\n * including participants, tracks, and other relevant information. The room object is fetched from the native module and then processed\n * to match the expected format in the React Native layer. This method is useful for getting the room's state at any point in time, such as\n * when needing to display current room information or for debugging purposes.\n *\n * @async\n * @function getRoom\n * @memberof HMSSDK\n * @returns {Promise<HMSRoom>} A promise that resolves to the current room object.\n * @example\n * // Fetch the current room details\n * const roomDetails = await hmsInstance.getRoom();\n * console.log(roomDetails);\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/get-methods\n */\n getRoom = async (): Promise<HMSRoom> => {\n logger?.verbose('#Function getRoom', {\n id: this.id,\n });\n const hmsRoom = await HMSManager.getRoom({ id: this.id });\n\n getHmsRoomCache()?.updateRoomCache(hmsRoom);\n\n const encodedHmsRoom = HMSEncoder.encodeHmsRoom(hmsRoom, this.id);\n return encodedHmsRoom;\n };\n\n /**\n * Retrieves the current local peer's details.\n *\n * This asynchronous method wraps around the native `getLocalPeer` function, providing a straightforward way to obtain the current local peer's details,\n * including their ID, name, role, and any tracks they may be publishing. The local peer object is fetched from the native module and then processed\n * to match the expected format in the React Native layer. This method is particularly useful for operations that require information about the local user,\n * such as updating UI elements to reflect the current user's status or for debugging purposes.\n *\n * @async\n * @function getLocalPeer\n * @memberof HMSSDK\n * @returns {Promise<HMSLocalPeer>} A promise that resolves to the current local peer object.\n * @example\n * // Fetch the current local peer's details\n * const localPeerDetails = await hmsInstance.getLocalPeer();\n * console.log(localPeerDetails);\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/get-methods\n */\n getLocalPeer = async (): Promise<HMSLocalPeer> => {\n logger?.verbose('#Function getLocalPeer', {\n id: this.id,\n });\n const localPeer = await HMSManager.getLocalPeer({ id: this.id });\n\n const encodedLocalPeer = HMSEncoder.encodeHmsLocalPeer(localPeer, this.id);\n return encodedLocalPeer;\n };\n\n /**\n * Retrieves an array of remote peers currently in the room.\n *\n * This asynchronous method serves as a wrapper around the native `getRemotePeers` function, facilitating the retrieval of remote peers' details.\n * It fetches an array of `HMSRemotePeer` objects, each representing a remote participant in the room. The method processes the fetched data\n * to conform to the expected format in the React Native layer, making it suitable for UI rendering or further processing.\n *\n * @async\n * @function getRemotePeers\n * @memberof HMSSDK\n * @returns {Promise<HMSRemotePeer[]>} A promise that resolves with an array of `HMSRemotePeer` objects, representing the remote peers in the room.\n * @example\n * // Fetch the list of remote peers in the room\n * const remotePeers = await hmsInstance.getRemotePeers();\n * console.log(remotePeers);\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/get-methods\n */\n getRemotePeers = async (): Promise<HMSRemotePeer[]> => {\n logger?.verbose('#Function getRemotePeers', {\n id: this.id,\n });\n const remotePeers = await HMSManager.getRemotePeers({ id: this.id });\n\n const encodedRemotePeers = HMSEncoder.encodeHmsRemotePeers(\n remotePeers,\n this.id\n );\n return encodedRemotePeers;\n };\n\n /**\n * Retrieves a list of all roles currently available in the room.\n *\n * This asynchronous method calls the native `getRoles` function to fetch an array of `HMSRole` objects, representing the roles defined for the room.\n * Each `HMSRole` object includes details such as the role name, permissions, and other role-specific settings. The roles are then processed\n * to match the expected format in the React Native layer. This method is useful for operations that require a comprehensive list of roles,\n * such as displaying role options in a UI dropdown for role assignment or for role-based access control checks.\n *\n * @async\n * @function getRoles\n * @memberof HMSSDK\n * @returns {Promise<HMSRole[]>} A promise that resolves with an array of `HMSRole` objects, representing the available roles in the room.\n *\n * @example\n * // Fetch the list of available roles in the room\n * const roles = await hmsInstance.getRoles();\n * console.log(roles);\n */\n getRoles = async (): Promise<HMSRole[]> => {\n logger?.verbose('#Function getRoles', {\n id: this.id,\n });\n const roles = await HMSManager.getRoles({ id: this.id });\n\n const encodedRoles = HMSEncoder.encodeHmsRoles(roles);\n return encodedRoles;\n };\n\n /**\n * Sets the volume for a specific track of any peer in the room.\n *\n * This function allows the adjustment of the playback volume for any given audio track of a peer within the room.\n * It is particularly useful for controlling the audio levels of individual participants in a conference call or meeting.\n * The volume level is specified as a number. Volume level can vary from 0(min) to 10(max). The default value for volume is 1.0.\n *\n * @param {HMSTrack} track - The track object whose volume is to be set. This object must include a valid `trackId`.\n * @param {number} volume - The volume level to set for the specified track.\n * @returns {Promise<void>} A promise that resolves when the operation to set the track's volume is complete.\n * @throws {Error} Throws an error if the operation fails or the track cannot be found.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/track/set-volume\n *\n * @async\n * @memberof HMSSDK\n *\n * @example\n * // Assuming `track` is an instance of HMSTrack representing the participant's audio track\n * hmsInstance.setVolume(track, 10);\n */\n setVolume = async (track: HMSTrack, volume: number): Promise<void> => {\n logger?.verbose('#Function setVolume', {\n track,\n volume,\n id: this.id,\n });\n return await HMSManager.setVolume({\n id: this.id,\n trackId: track.trackId,\n volume,\n });\n };\n\n /**\n * Initiates screen sharing in the room.\n *\n * This asynchronous function triggers the screen sharing feature, allowing the local peer to share their screen with other participants in the room.\n * Upon successful execution, other participants in the room will be able to see the shared screen as part of the video conference.\n *\n * Note: Proper permissions must be granted by the user for screen sharing to work. Ensure to handle permission requests appropriately in your application.\n *\n * @async\n * @function startScreenshare\n * @memberof HMSSDK\n * @returns {Promise<void>} A promise that resolves when the screen sharing has successfully started.\n * @throws {Error} Throws an error if the operation fails or screen sharing cannot be initiated.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/screenshare\n * @example\n * // Start screen sharing\n * await hmsInstance.startScreenshare();\n */\n startScreenshare = async () => {\n logger?.verbose('#Function startScreenshare', { id: this.id });\n return await HMSManager.startScreenshare({ id: this.id });\n };\n\n /**\n * Checks if the screen sharing is currently active in the room.\n *\n * This asynchronous method queries the native `HMSManager` module to determine if the screen is currently being shared by the local peer in the room.\n * It returns a promise that resolves to a boolean value, indicating the screen sharing status. `true` signifies that the screen sharing is active,\n * while `false` indicates that it is not. This method can be used to toggle UI elements or to decide whether to start or stop screen sharing based on the current state.\n *\n * @async\n * @function isScreenShared\n * @memberof HMSSDK\n * @returns {Promise<boolean>} A promise that resolves to a boolean indicating whether the screen is currently shared.\n * @example\n * // Check if the screen is currently shared\n * const isShared = await hmsInstance.isScreenShared();\n * console.log(isShared ? \"Screen is being shared\" : \"Screen is not being shared\");\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/screenshare\n */\n isScreenShared = async (): Promise<boolean> => {\n logger?.verbose('#Function isScreenShared', { id: this.id });\n return await HMSManager.isScreenShared({ id: this.id });\n };\n\n /**\n * Asynchronously stops the screen sharing session.\n *\n * This method communicates with the native `HMSManager` module to stop the ongoing screen sharing session initiated by the local peer.\n * Upon successful execution, the screen sharing session is terminated, and other participants\n * in the room will no longer be able to see the shared screen. This method can be used to programmatically control the end of a screen sharing session,\n * providing flexibility in managing the screen sharing feature within your application.\n *\n * Note: Ensure that the necessary permissions and conditions for screen sharing are managed appropriately in your application.\n *\n * @async\n * @function stopScreenshare\n * @memberof HMSSDK\n * @returns {Promise<void>} A promise that resolves when the screen sharing has successfully stopped.\n * @throws {Error} Throws an error if the operation fails or the screen sharing cannot be stopped.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/screenshare\n * @example\n * // Stop screen sharing\n * await hmsInstance.stopScreenshare();\n */\n stopScreenshare = async () => {\n logger?.verbose('#Function stopScreenshare', { id: this.id });\n return await HMSManager.stopScreenshare({ id: this.id });\n };\n\n /**\n * Enables network quality updates for the local peer.\n *\n * This method activates the network quality monitoring feature, which periodically assesses and reports the network quality of peers in a room.\n * The network quality updates are useful for providing feedback to the user about their current connection status, potentially prompting them to improve their network environment if necessary.\n * Upon enabling, network quality updates are emitted through the appropriate event listeners - `HMSPeerUpdate.NETWORK_QUALITY_UPDATED` allowing the application to react or display the network status dynamically.\n *\n * @function enableNetworkQualityUpdates\n * @memberof HMSSDK\n * @example\n * // Enable network quality updates\n * hmsInstance.enableNetworkQualityUpdates();\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/measure-network-quality-and-performance/network-quality\n */\n enableNetworkQualityUpdates = () => {\n logger?.verbose('#Function enableNetworkQualityUpdates', { id: this.id });\n HMSManager.enableNetworkQualityUpdates({ id: this.id });\n };\n\n /**\n * Disables network quality updates for the local peer.\n *\n * This method deactivates the network quality monitoring feature, which stops the periodic assessment and reporting of the network quality of peers in a room.\n * Disabling network quality updates can be useful in scenarios where network quality information is no longer needed, or to reduce the computational overhead associated with monitoring network quality.\n * Once disabled, network quality updates will no longer be emitted through the event listeners, allowing the application to cease reacting to or displaying network status information.\n *\n * @function disableNetworkQualityUpdates\n * @memberof HMSSDK\n * @example\n * // Disable network quality updates\n * hmsInstance.disableNetworkQualityUpdates();\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/measure-network-quality-and-performance/network-quality\n */\n disableNetworkQualityUpdates = () => {\n logger?.verbose('#Function disableNetworkQualityUpdates', { id: this.id });\n HMSManager.disableNetworkQualityUpdates({ id: this.id });\n };\n\n /**\n * Starts streaming device audio, available only on Android devices.\n *\n * This method allows the application to share device audio, such as music or system sounds, with other participants in a video conference.\n * It leverages the native HMSManager's `startAudioshare` method to initiate audio sharing. The function takes an `HMSAudioMixingMode` parameter,\n * which specifies the audio mixing mode to be used during the audio share session.\n *\n * Note: This feature is currently supported only on Android. Attempting to use this feature on iOS will result in a console log indicating\n * that the API is not available for iOS.\n *\n * @async\n * @function startAudioshare\n * @param {HMSAudioMixingMode} audioMixingMode - The audio mixing mode to be used for the audio share session.\n * @returns {Promise} A promise that resolves to a success if the audio share is started successfully\n * @throws {Error} Throws an error if the operation fails or the audio share cannot be started.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/local-audio-share\n *\n * @example\n * // Start audio sharing with the default mixing mode\n * await hmsInstance.startAudioshare(HMSAudioMixingMode.DEFAULT);\n */\n startAudioshare = async (audioMixingMode: HMSAudioMixingMode) => {\n logger?.verbose('#Function startAudioshare', {\n id: this.id,\n audioMixingMode,\n });\n if (Platform.OS === 'android') {\n return await HMSManager.startAudioshare({ id: this.id, audioMixingMode });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * Checks if audio sharing is currently active.\n *\n * This asynchronous method determines whether audio sharing is currently active, with support limited to Android devices.\n * On Android, it queries the native `HMSManager` module to check the audio sharing status and returns a promise that resolves to a boolean value.\n *\n * @async\n * @function isAudioShared\n * @memberof HMSSDK\n * @returns {Promise<boolean>} A promise that resolves to a boolean indicating whether audio sharing is currently active.\n * @example\n * // Check if audio is being shared on an Android device\n * const isSharing = await hmsInstance.isAudioShared();\n * console.log(isSharing); // true or false based on the sharing status, or a message for iOS\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/local-audio-share\n */\n isAudioShared = async (): Promise<boolean> => {\n logger?.verbose('#Function isAudioShared', { id: this.id });\n if (Platform.OS === 'android') {\n return await HMSManager.isAudioShared({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return Promise.resolve(false);\n }\n };\n\n /**\n * Stops the streaming of device audio, with functionality currently limited to Android devices.\n *\n * This asynchronous method communicates with the native `HMSManager` module to stop the audio sharing session that was previously started.\n * It is primarily used when the application needs to cease sharing device audio, such as music or system sounds, with other participants in a video conference.\n * On Android devices, it successfully terminates the audio share session. On iOS devices, since the feature is not supported, it logs a message indicating the unavailability of the API.\n *\n * @async\n * @function stopAudioshare\n * @memberof HMSSDK\n * @returns {Promise<boolean>} A promise that resolves to a boolean indicating the success of the operation.\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/local-audio-share\n *\n * @example\n * // Stop audio sharing\n * await hmsInstance.stopAudioshare();\n */\n stopAudioshare = async (): Promise<boolean> => {\n logger?.verbose('#Function stopAudioshare', { id: this.id });\n if (Platform.OS === 'android') {\n return await HMSManager.stopAudioshare({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return Promise.resolve(false);\n }\n };\n\n /**\n * Asynchronously retrieves the current audio mixing mode, with functionality currently limited to Android devices.\n *\n * This method queries the native `HMSManager` module to obtain the current audio mixing mode used in the audio share session.\n * The audio mixing mode determines how local and remote audio tracks are mixed together during an audio share session.\n *\n * Note: This feature is only supported on Android. Attempting to use this feature on iOS will result in a console log indicating\n * that the API is not available for iOS devices.\n *\n * @async\n * @function getAudioMixingMode\n * @memberof HMSSDK\n * @returns {Promise<string>} A promise that resolves to a string indicating the current audio mixing mode.\n *\n * @throws {Error} Throws an error if the operation fails or the audio mixing mode cannot be retrieved.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/local-audio-share\n * @example\n * // Get the current audio mixing mode on an Android device\n * const mixingMode = await hmsInstance.getAudioMixingMode();\n * console.log(mixingMode); // Outputs the current audio mixing mode or a message for iOS\n */\n getAudioMixingMode = async (): Promise<string> => {\n logger?.verbose('#Function getAudioMixingMode', { id: this.id });\n if (Platform.OS === 'android') {\n return await HMSManager.getAudioMixingMode({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return Promise.reject('API currently not available for iOS');\n }\n };\n\n /**\n * Sets the audio mixing mode for the current session. Android only.\n *\n * This asynchronous function is used to change the mode of audio mixing during a session. It is currently\n * available only for Android. The function logs the action with the instance ID and the specified audio mixing mode,\n * then calls the native `setAudioMixingMode` method in `HMSManager` with the provided parameters.\n *\n * If the platform is not Android, it logs a message indicating that the API is not available for iOS.\n *\n * @param {HMSAudioMixingMode} audioMixingMode - The audio mixing mode to be set.\n * @returns {Promise<boolean>} A promise that resolves to a boolean indicating the success of the operation.\n * @throws {Error} Throws an error if the operation fails or the audio mixing mode cannot be set.\n *\n * @example\n * await hmsInstance.setAudioMixingMode(HMSAudioMixingMode.TALK_AND_MUSIC);\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/local-audio-share\n *\n * @memberof HMSSDK\n */\n setAudioMixingMode = async (\n audioMixingMode: HMSAudioMixingMode\n ): Promise<boolean> => {\n logger?.verbose('#Function setAudioMixingMode', {\n id: this.id,\n audioMixingMode,\n });\n if (Platform.OS === 'android') {\n return await HMSManager.setAudioMixingMode({\n id: this.id,\n audioMixingMode,\n });\n } else {\n console.log('API currently not available for iOS');\n return Promise.reject('API currently not available for iOS');\n }\n };\n\n /**\n * Retrieves a list of audio output devices. Android only.\n *\n * This method asynchronously fetches and returns an array of audio output devices available on the device.\n * It is designed to work specifically on Android platforms. For iOS, it will reject the promise with a message\n * indicating that the API is not available. This can be useful for applications that need to display or allow\n * the user to select from available audio output options, such as speakers, headphones, or Bluetooth devices.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/configure-your-device/speaker/audio-output-routing\n *\n * @memberof HMSSDK\n * @returns {Promise<HMSAudioDevice[]>} A promise that resolves to an array of `HMSAudioDevice` objects on Android. On iOS, the promise is rejected.\n * @example\n * // Get the list of audio output devices\n * const audioDevices = await hmsInstance.getAudioDevicesList();\n */\n getAudioDevicesList = async (): Promise<HMSAudioDevice[]> => {\n logger?.verbose('#Function getAudioDevicesList', {\n id: this.id,\n });\n if (Platform.OS === 'android') {\n return await HMSManager.getAudioDevicesList({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return Promise.reject('API currently not available for iOS');\n }\n };\n\n /**\n * Retrieves the current audio output device type on Android devices.\n *\n * This method is a wrapper function that returns the type of the current audio output device.\n * The return type is a `HMSAudioDevice`, which is an enumeration representing different types of audio output devices.\n *\n * Note: This API is not available for iOS devices. If invoked on iOS, it logs a message indicating the unavailability and rejects the promise.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/configure-your-device/speaker/audio-output-routing\n *\n * @memberof HMSSDK\n * @returns {Promise<HMSAudioDevice>} A promise that resolves to the current audio output device type if the platform is Android. If the platform is iOS, the promise is rejected.\n *\n * @example\n * // Get the current audio output device type\n * const currentAudioOutputDevice = await hmsInstance.getAudioOutputRouteType();\n */\n getAudioOutputRouteType = async (): Promise<HMSAudioDevice> => {\n logger?.verbose('#Function getAudioOutputRouteType', {\n id: this.id,\n });\n if (Platform.OS === 'android') {\n return await HMSManager.getAudioOutputRouteType({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return Promise.reject('API currently not available for iOS');\n }\n };\n\n /**\n * Switches the audio output device to a specified device.\n * This function is a wrapper around the native module's method to change the audio output route.\n * It allows for changing the audio output to a device other than the default one, such as a Bluetooth headset or speaker.\n *\n * @param {HMSAudioDevice} audioDevice - The audio device to switch the output to. This should be one of the devices available in `HMSAudioDevice`.\n *\n * @returns {Promise<void>} A promise that resolves when the audio output device is successfully switched. Rejected if the operation fails.\n *\n * @example\n * // To switch audio output to a Bluetooth device\n * hmsSDK.switchAudioOutput(HMSAudioDevice.Bluetooth);\n *\n * @memberof HMSSDK\n */\n switchAudioOutput = (audioDevice: HMSAudioDevice): Promise<void> => {\n logger?.verbose('#Function switchAudioOutput', {\n id: this.id,\n audioDevice,\n });\n\n return HMSManager.switchAudioOutput({ id: this.id, audioDevice });\n };\n\n switchAudioOutputUsingIOSUI = () => {\n logger?.verbose('#Function switchAudioOutputUsingIOSUI', {\n id: this.id,\n });\n if (Platform.OS !== 'ios') {\n throw new Error(\n '#Function `switchAudioOutputUsingIOSUI` is only available on iOS, use `switchAudioOutput` method instead!'\n );\n }\n\n return HMSManager.switchAudioOutputUsingIOSUI({ id: this.id });\n };\n\n /**\n * - This wrapper function used to change Audio Mode manually, currently available only for android.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/configure-your-device/speaker/audio-mode-change\n *\n * @param {HMSAudioMode}\n * @memberof HMSSDK\n */\n setAudioMode = (audioMode: HMSAudioMode) => {\n logger?.verbose('#Function setAudioMode', {\n id: this.id,\n audioMode,\n });\n if (Platform.OS === 'android') {\n return HMSManager.setAudioMode({ id: this.id, audioMode });\n } else {\n console.log('API currently not available for iOS');\n return 'API currently not available for iOS';\n }\n };\n\n /**\n * Adds a listener for changes in the audio output device.\n * This function is platform-specific and currently only implemented for Android devices.\n * When the audio output device changes (e.g., switching from the phone speaker to a Bluetooth headset), the specified callback function is triggered.\n * This can be useful for applications that need to react to changes in audio routing, such as updating the UI to reflect the current output device.\n *\n * Note: This API is not available on iOS as of the current implementation. Attempting to use it on iOS will result in a rejected promise with an appropriate error message.\n *\n * @param {Function} callback - The function to be called when the audio output device changes. This function does not receive any parameters.\n * @memberof HMSSDK\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/configure-your-device/speaker/audio-output-routing\n */\n setAudioDeviceChangeListener = (callback: Function) => {\n logger?.verbose('#Function setAudioDeviceChangeListener', {\n id: this.id,\n });\n if (Platform.OS === 'android') {\n this.addEventListener(\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED,\n callback\n );\n return HMSManager.setAudioDeviceChangeListener({ id: this.id });\n } else {\n console.log('API currently not available for iOS');\n return Promise.reject('API currently not available for iOS');\n }\n };\n\n /**\n * Asynchronously retrieves a remote video track by its track ID.\n *\n * @param {string} trackId - The unique identifier for the remote video track to be retrieved.\n * @returns {Promise<HMSRemoteVideoTrack>} A promise that resolves to the encoded remote video track data.\n */\n getRemoteVideoTrackFromTrackId = async (\n trackId: string\n ): Promise<HMSRemoteVideoTrack> => {\n logger?.verbose('#Function getRemoteVideoTrackFromTrackId', {\n id: this.id,\n trackId,\n });\n\n const remoteVideoTrackData =\n await HMSManager.getRemoteVideoTrackFromTrackId({\n id: this.id,\n trackId,\n });\n return HMSEncoder.encodeHmsRemoteVideoTrack(remoteVideoTrackData, this.id);\n };\n\n /**\n * Retrieves a remote audio track by its track ID.\n *\n * @param {string} trackId - The unique identifier for the remote audio track to be retrieved.\n * @returns {Promise<HMSRemoteAudioTrack>} A promise that resolves to the encoded remote audio track data.\n */\n getRemoteAudioTrackFromTrackId = async (\n trackId: string\n ): Promise<HMSRemoteAudioTrack> => {\n // Log the function call with the track ID for debugging purposes.\n logger?.verbose('#Function getRemoteAudioTrackFromTrackId', {\n id: this.id,\n trackId,\n });\n\n // Fetch the remote audio track data from the native HMSManager.\n const remoteAudioTrackData =\n await HMSManager.getRemoteAudioTrackFromTrackId({\n id: this.id,\n trackId,\n });\n // Encode and return the remote audio track data.\n return HMSEncoder.encodeHmsRemoteAudioTrack(remoteAudioTrackData, this.id);\n };\n\n /**\n * Retrieves a peer object based on the provided peer ID.\n *\n * @param {string} peerId - The ID of the peer to retrieve.\n * @returns {HMSPeer | undefined} An encoded HMSPeer object if the peer is found otherwise `undefined`.\n */\n getPeerFromPeerId = (peerId: string) => {\n logger?.verbose('#Function getPeerFromPeerId', {\n id: this.id,\n peerId,\n });\n // Getting Peer Cache\n const peersCache = getHmsPeersCache();\n\n // If Peer Cache doesn't exist, return `undefined` as we don't have Peer\n if (!peersCache) return;\n\n const peerRole = peersCache.getProperty(peerId, 'role');\n\n // If Peer doesn't have valid Role, return `undefined` as we don't have Peer\n if (!peerRole) return;\n\n return HMSEncoder.encodeHmsPeer({ peerID: peerId });\n };\n\n /**\n * - This function is used to raise hand for the local peer\n * @memberof HMSSDK\n */\n raiseLocalPeerHand = async () => {\n const data = {\n id: this.id,\n };\n logger?.verbose('#Function raiseLocalPeerHand', data);\n return HMSManager.raiseLocalPeerHand(data);\n };\n\n /**\n * - This function is used to lower hand for the local peer\n * @memberof HMSSDK\n */\n lowerLocalPeerHand = async () => {\n const data = {\n id: this.id,\n };\n logger?.verbose('#Function lowerLocalPeerHand', data);\n return HMSManager.lowerLocalPeerHand(data);\n };\n\n /**\n * - This function is used to lower hand for the remote peer\n * @param peer\n */\n lowerRemotePeerHand = async (peer: HMSPeer) => {\n const data = {\n peerId: peer.peerID,\n id: this.id,\n };\n logger?.verbose('#Function lowerRemotePeerHand', data);\n return HMSManager.lowerRemotePeerHand(data);\n };\n\n /**\n * `getPeerListIterator` method returns an instance of `HMSPeerListIterator` class\n *\n * @param options options for configuring iterator\n * @returns instance of HMSPeerListIterator class\n *\n * Example usage:\n * ```\n * const peerListIterator = hmsInstance.getPeerListIterator();\n * ```\n * OR\n * ```\n * const peerListIterator = hmsInstance.getPeerListIterator({\n * limit: 10,\n * byRoleName: 'viewer-realtime',\n * });\n * ```\n */\n getPeerListIterator = (\n options?: HMSPeerListIteratorOptions\n ): HMSPeerListIterator => {\n logger?.verbose('#Function getPeerListIterator', {\n id: this.id,\n options,\n });\n\n const uniqueId = Math.random().toString(16).slice(2);\n\n const data: null | {\n sucess: boolean;\n uniqueId: string;\n totalCount: number;\n } = HMSManager.getPeerListIterator({\n id: this.id,\n ...options,\n limit: options?.limit ?? 10,\n uniqueId,\n });\n\n if (!data) {\n throw new Error('Unable to create PeerListIterator');\n }\n\n return new HMSPeerListIterator(data.uniqueId, data.totalCount);\n };\n\n /**\n * - This function allows the user to set the screen on always.\n * - This is useful when the user wants to keep the screen on while the app is in the foreground.\n * @param enabled boolean value to enable or disable the always screen on\n */\n setAlwaysScreenOn = async (enabled: boolean) => {\n logger?.verbose('#Function toggleAlwaysScreenOn', {\n id: this.id,\n enabled,\n });\n return HMSManager.setAlwaysScreenOn({ id: this.id, enabled });\n };\n\n setPermissionsAcceptedOnAndroid = async () => {\n if (Platform.OS === 'ios') {\n Promise.reject(\n 'setPermissionsAcceptedOnAndroid API not available for iOS'\n );\n return;\n }\n logger?.verbose('#Function setPermissionsAcceptedOnAndroid', {\n id: this.id,\n });\n return await HMSManager.setPermissionsAccepted({ id: this.id });\n };\n\n /**\n * Registers an event listener for various HMS SDK events.\n *\n * This method allows the registration of callbacks for different types of events that can occur within the HMS SDK.\n * These events include but are not limited to updates about the room, peers, tracks, and errors.\n * The method dynamically adds listeners based on the specified action and associates them with a callback function\n * to handle the event. It ensures that only one subscription exists per event type to avoid duplicate listeners.\n *\n * @param {HMSUpdateListenerActions | HMSPIPListenerActions} action - The specific action/event to listen for.\n * @param {Function} callback - The callback function to execute when the event occurs. The specifics of the callback parameters depend on the event type.\n * @memberof HMSSDK\n *\n * @example\n * hmsInstance.addEventListener(HMSUpdateListenerActions.ON_JOIN, (event) => {\n * console.log('Joined the room:', event);\n * });\n *\n * @example\n * hmsInstance.addEventListener(HMSUpdateListenerActions.ON_PEER_UPDATE, (event) => {\n * console.log('Peer update:', event);\n * });\n */\n addEventListener = (\n action: HMSUpdateListenerActions | HMSPIPListenerActions,\n callback: any\n ) => {\n logger?.verbose('#Function addEventListener', {\n action,\n id: this.id,\n });\n switch (action) {\n case HMSUpdateListenerActions.ON_PREVIEW: {\n // Checking if we already have ON_PREVIEW subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_PREVIEW]) {\n // Adding ON_PREVIEW native listener\n const previewSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_PREVIEW,\n this.onPreviewListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PREVIEW] =\n previewSubscription;\n }\n // Adding App Delegate listener\n this.onPreviewDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_JOIN: {\n // Checking if we already have ON_JOIN subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_JOIN]) {\n // Adding ON_JOIN native listener\n const joinSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_JOIN,\n this.onJoinListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_JOIN] =\n joinSubscription;\n }\n // Adding App Delegate listener\n this.onJoinDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_PERMISSIONS_REQUESTED: {\n // Checking if we already have ON_PERMISSIONS_REQUESTED subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_PERMISSIONS_REQUESTED\n ]\n ) {\n // Adding ON_PERMISSIONS_REQUESTED native listener\n const permissionsRequestedSubscription =\n HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_PERMISSIONS_REQUESTED,\n this.onPermissionsRequestedListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_PERMISSIONS_REQUESTED\n ] = permissionsRequestedSubscription;\n }\n // Adding App Delegate listener\n this.onPermissionsRequestedDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_ROOM_UPDATE: {\n // Checking if we already have ON_ROOM_UPDATE subscription\n if (\n !this.emitterSubscriptions[HMSUpdateListenerActions.ON_ROOM_UPDATE]\n ) {\n // Adding ON_ROOM_UPDATE native listener\n const roomSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_ROOM_UPDATE,\n this.onRoomListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ROOM_UPDATE] =\n roomSubscription;\n }\n // Adding App Delegate listener\n this.onRoomDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_TRANSCRIPTS: {\n // Checking if we already have ON_TRANSCRIPTS subscription\n if (\n !this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRANSCRIPTS]\n ) {\n // Adding ON_TRANSCRIPTS native listener\n const transcriptsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_TRANSCRIPTS,\n this.onTranscriptsListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRANSCRIPTS] =\n transcriptsSubscription;\n }\n // Adding App Delegate listener\n this.onTranscriptsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_PEER_UPDATE: {\n // Checking if we already have ON_PEER_UPDATE subscription\n if (\n !this.emitterSubscriptions[HMSUpdateListenerActions.ON_PEER_UPDATE]\n ) {\n // Adding ON_PEER_UPDATE native listener\n const peerSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_PEER_UPDATE,\n this.onPeerListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PEER_UPDATE] =\n peerSubscription;\n }\n // Adding App Delegate listener\n this.onPeerDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_PEER_LIST_UPDATED: {\n // Checking if we already have ON_PEER_LIST_UPDATED subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_PEER_LIST_UPDATED\n ]\n ) {\n // Adding ON_PEER_LIST_UPDATED native listener\n const peerListUpdatedSubscription =\n HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_PEER_LIST_UPDATED,\n this.onPeerListUpdatedListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_PEER_LIST_UPDATED\n ] = peerListUpdatedSubscription;\n }\n // Adding App Delegate listener\n this.onPeerListUpdatedDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_TRACK_UPDATE: {\n // Checking if we already have ON_TRACK_UPDATE subscription\n if (\n !this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRACK_UPDATE]\n ) {\n // Adding ON_TRACK_UPDATE native listener\n const trackSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_TRACK_UPDATE,\n this.onTrackListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRACK_UPDATE] =\n trackSubscription;\n }\n // Adding App Delegate listener\n this.onTrackDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_ERROR: {\n // Checking if we already have ON_ERROR subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_ERROR]) {\n // Adding ON_ERROR native listener\n const errorSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_ERROR,\n this.onErrorListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ERROR] =\n errorSubscription;\n }\n // Adding App Delegate listener\n this.onErrorDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_MESSAGE: {\n // Checking if we already have ON_MESSAGE subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_MESSAGE]) {\n // Adding ON_MESSAGE native listener\n const messageSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_MESSAGE,\n this.onMessageListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_MESSAGE] =\n messageSubscription;\n }\n // Adding App Delegate listener\n this.onMessageDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_SPEAKER: {\n // Checking if we already have ON_SPEAKER subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_SPEAKER]) {\n // Adding ON_SPEAKER native listener\n const speakerSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_SPEAKER,\n this.onSpeakerListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_SPEAKER] =\n speakerSubscription;\n }\n // Adding App Delegate listener\n this.onSpeakerDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.RECONNECTING: {\n // Checking if we already have RECONNECTING subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTING]) {\n // Adding RECONNECTING native listener\n const reconnectingSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.RECONNECTING,\n this.reconnectingListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTING] =\n reconnectingSubscription;\n }\n // Adding App Delegate listener\n this.onReconnectingDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.RECONNECTED: {\n // Checking if we already have RECONNECTED subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTED]) {\n // Adding RECONNECTED native listener\n const reconnectedSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.RECONNECTED,\n this.reconnectedListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTED] =\n reconnectedSubscription;\n }\n // Adding App Delegate listener\n this.onReconnectedDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST: {\n // Checking if we already have ON_ROLE_CHANGE_REQUEST subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST\n ]\n ) {\n // Adding ON_ROLE_CHANGE_REQUEST native listener\n const roleChangeReqSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST,\n this.onRoleChangeRequestListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST\n ] = roleChangeReqSubscription;\n }\n // Adding App Delegate listener\n this.onRoleChangeRequestDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST: {\n // Checking if we already have ON_CHANGE_TRACK_STATE_REQUEST subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST\n ]\n ) {\n // Adding ON_CHANGE_TRACK_STATE_REQUEST native listener\n const changeTrackReqSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST,\n this.onChangeTrackStateRequestListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST\n ] = changeTrackReqSubscription;\n }\n // Adding App Delegate listener\n this.onChangeTrackStateRequestDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM: {\n // Checking if we already have ON_REMOVED_FROM_ROOM subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM\n ]\n ) {\n // Adding ON_REMOVED_FROM_ROOM native listener\n const removedFromRoomSubscription =\n HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM,\n this.onRemovedFromRoomListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM\n ] = removedFromRoomSubscription;\n }\n // Adding App Delegate listener\n this.onRemovedFromRoomDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_RTC_STATS: {\n // Checking if we already have ON_RTC_STATS subscription\n if (!this.emitterSubscriptions[HMSUpdateListenerActions.ON_RTC_STATS]) {\n // Adding ON_RTC_STATS native listener\n const rtcStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_RTC_STATS,\n this.RTCStatsListener\n );\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_RTC_STATS] =\n rtcStatsSubscription;\n }\n // Adding App Delegate listener\n this.onRtcStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS: {\n // Checking if we already have ON_LOCAL_AUDIO_STATS subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS\n ]\n ) {\n // Adding ON_LOCAL_AUDIO_STATS native listener\n const lclAudioStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS,\n this.onLocalAudioStatsListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS\n ] = lclAudioStatsSubscription;\n }\n // Adding App Delegate listener\n this.onLocalAudioStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS: {\n // Checking if we already have ON_LOCAL_VIDEO_STATS subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS\n ]\n ) {\n // Adding ON_LOCAL_VIDEO_STATS native listener\n const lclVideoStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS,\n this.onLocalVideoStatsListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS\n ] = lclVideoStatsSubscription;\n }\n // Adding App Delegate listener\n this.onLocalVideoStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS: {\n // Checking if we already have ON_REMOTE_AUDIO_STATS subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS\n ]\n ) {\n // Adding ON_REMOTE_AUDIO_STATS native listener\n const rmAudioStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS,\n this.onRemoteAudioStatsListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS\n ] = rmAudioStatsSubscription;\n }\n // Adding App Delegate listener\n this.onRemoteAudioStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS: {\n // Checking if we already have ON_REMOTE_VIDEO_STATS subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS\n ]\n ) {\n // Adding ON_REMOTE_VIDEO_STATS native listener\n const rmVideoStatsSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS,\n this.onRemoteVideoStatsListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS\n ] = rmVideoStatsSubscription;\n }\n // Adding App Delegate listener\n this.onRemoteVideoStatsDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED: {\n // Checking if we already have ON_AUDIO_DEVICE_CHANGED subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED\n ]\n ) {\n // Adding ON_AUDIO_DEVICE_CHANGED native listener\n const audDeviceChgSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED,\n this.onAudioDeviceChangedListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED\n ] = audDeviceChgSubscription;\n }\n // Adding App Delegate listener\n this.onAudioDeviceChangedDelegate = callback;\n break;\n }\n case HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE: {\n // Checking if we already have ON_SESSION_STORE_AVAILABLE subscription\n if (\n !this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE\n ]\n ) {\n // Adding ON_SESSION_STORE_AVAILABLE native listener\n const sessionStoreAvailableSubscription =\n HMSNativeEventListener.addListener(\n this.id,\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE,\n this.onSessionStoreAvailableListener\n );\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE\n ] = sessionStoreAvailableSubscription;\n }\n // Adding Session Store Available App Delegate listener\n this.onSessionStoreAvailableDelegate = callback;\n break;\n }\n case HMSPIPListenerActions.ON_PIP_ROOM_LEAVE: {\n if (Platform.OS === 'android') {\n // Checking if we already have ON_PIP_ROOM_LEAVE subscription\n if (\n !this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_ROOM_LEAVE]\n ) {\n // Adding ON_PIP_ROOM_LEAVE native listener\n const pipRoomLeaveSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSPIPListenerActions.ON_PIP_ROOM_LEAVE,\n this.onPIPRoomLeaveListener\n );\n this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_ROOM_LEAVE] =\n pipRoomLeaveSubscription;\n }\n // Adding App Delegate listener\n this.onPIPRoomLeaveDelegate = callback;\n }\n break;\n }\n case HMSPIPListenerActions.ON_PIP_MODE_CHANGED: {\n // Checking if we already have ON_PIP_MODE_CHANGED subscription\n if (\n !this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_MODE_CHANGED]\n ) {\n const pipModeChangedSubscription = HMSNativeEventListener.addListener(\n this.id,\n HMSPIPListenerActions.ON_PIP_MODE_CHANGED,\n this.onPIPModeChangedListener\n );\n this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_MODE_CHANGED] =\n pipModeChangedSubscription;\n }\n // Adding PIP mode changed Delegate listener\n this.onPIPModeChangedDelegate = callback;\n\n break;\n }\n default:\n }\n };\n\n /**\n * Removes an event listener for a specified event action.\n *\n * This method allows for the deregistration of previously registered callbacks for specific event types within the HMS SDK.\n * By specifying the action and the callback, it ensures that the event listener associated with that action is removed,\n * preventing the callback from being executed when the event occurs in the future. This is useful for cleaning up resources\n * and avoiding potential memory leaks in applications that dynamically add and remove event listeners based on component lifecycle\n * or user interactions.\n *\n * @param {HMSUpdateListenerActions | HMSPIPListenerActions} action - The specific action/event for which the listener is to be removed.\n * @param {Function} callback - The callback function that was originally registered for the event. This parameter is necessary to ensure\n * that only the specific callback associated with the action is removed.\n * @memberof HMSSDK\n * @example\n * // Remove a listener for the ON_JOIN event\n * hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_JOIN, onJoinCallback);\n */\n removeEventListener = (\n action: HMSUpdateListenerActions | HMSPIPListenerActions\n ) => {\n logger?.verbose('#Function removeEventListener', { action, id: this.id });\n switch (action) {\n case HMSUpdateListenerActions.ON_PREVIEW: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PREVIEW];\n // Removing ON_PREVIEW native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PREVIEW] =\n undefined;\n }\n // Removing App Delegate listener\n this.onPreviewDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_JOIN: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_JOIN];\n // Removing ON_JOIN native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_JOIN] =\n undefined;\n }\n // Removing App Delegate listener\n this.onJoinDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_PERMISSIONS_REQUESTED: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_PERMISSIONS_REQUESTED\n ];\n // Removing ON_PERMISSIONS_REQUESTED native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_PERMISSIONS_REQUESTED\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onPermissionsRequestedDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_ROOM_UPDATE: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ROOM_UPDATE];\n // Removing ON_ROOM_UPDATE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ROOM_UPDATE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onRoomDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_TRANSCRIPTS: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRANSCRIPTS];\n // Removing ON_TRANSCRIPTS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRANSCRIPTS] =\n undefined;\n }\n // Removing App Delegate listener\n this.onTranscriptsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_PEER_UPDATE: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PEER_UPDATE];\n // Removing ON_PEER_UPDATE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_PEER_UPDATE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onPeerDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_TRACK_UPDATE: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRACK_UPDATE];\n // Removing ON_TRACK_UPDATE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_TRACK_UPDATE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onTrackDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_ERROR: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ERROR];\n // Removing ON_ERROR native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_ERROR] =\n undefined;\n }\n // Removing App Delegate listener\n this.onErrorDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_MESSAGE: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_MESSAGE];\n // Removing ON_MESSAGE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_MESSAGE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onMessageDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_SPEAKER: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_SPEAKER];\n // Removing ON_SPEAKER native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_SPEAKER] =\n undefined;\n }\n // Removing App Delegate listener\n this.onSpeakerDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.RECONNECTING: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTING];\n // Removing RECONNECTING native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTING] =\n undefined;\n }\n // Removing App Delegate listener\n this.onReconnectingDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.RECONNECTED: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTED];\n // Removing RECONNECTED native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.RECONNECTED] =\n undefined;\n }\n // Removing App Delegate listener\n this.onReconnectedDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST\n ];\n // Removing ON_ROLE_CHANGE_REQUEST native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_ROLE_CHANGE_REQUEST\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onRoleChangeRequestDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST\n ];\n // Removing ON_CHANGE_TRACK_STATE_REQUEST native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_CHANGE_TRACK_STATE_REQUEST\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onChangeTrackStateRequestDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM\n ];\n // Removing ON_REMOVED_FROM_ROOM native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOVED_FROM_ROOM\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onRemovedFromRoomDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_RTC_STATS: {\n const subscription =\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_RTC_STATS];\n // Removing ON_RTC_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSUpdateListenerActions.ON_RTC_STATS] =\n undefined;\n }\n // Removing App Delegate listener\n this.onRtcStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS\n ];\n // Removing ON_LOCAL_AUDIO_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_AUDIO_STATS\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onLocalAudioStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS\n ];\n // Removing ON_LOCAL_VIDEO_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_LOCAL_VIDEO_STATS\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onLocalVideoStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS\n ];\n // Removing ON_REMOTE_AUDIO_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onRemoteAudioStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS\n ];\n // Removing ON_REMOTE_VIDEO_STATS native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onRemoteVideoStatsDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED\n ];\n // Removing ON_AUDIO_DEVICE_CHANGED native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onAudioDeviceChangedDelegate = null;\n break;\n }\n case HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE: {\n const subscription =\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE\n ];\n // Removing ON_SESSION_STORE_AVAILABLE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSUpdateListenerActions.ON_SESSION_STORE_AVAILABLE\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onSessionStoreAvailableDelegate = null;\n break;\n }\n case HMSPIPListenerActions.ON_PIP_ROOM_LEAVE: {\n if (Platform.OS === 'android') {\n const subscription =\n this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_ROOM_LEAVE];\n // Removing ON_PIP_ROOM_LEAVE native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[HMSPIPListenerActions.ON_PIP_ROOM_LEAVE] =\n undefined;\n }\n // Removing App Delegate listener\n this.onPIPRoomLeaveDelegate = null;\n }\n break;\n }\n case HMSPIPListenerActions.ON_PIP_MODE_CHANGED: {\n if (Platform.OS === 'android') {\n const subscription =\n this.emitterSubscriptions[\n HMSPIPListenerActions.ON_PIP_MODE_CHANGED\n ];\n // Removing ON_PIP_MODE_CHANGED native listener\n if (subscription) {\n subscription.remove();\n\n this.emitterSubscriptions[\n HMSPIPListenerActions.ON_PIP_MODE_CHANGED\n ] = undefined;\n }\n // Removing App Delegate listener\n this.onPIPModeChangedDelegate = null;\n }\n break;\n }\n default:\n }\n };\n\n /**\n * removes all the listeners\n *\n * @memberof HMSSDK\n */\n removeAllListeners = () => {\n this.onPreviewDelegate = null;\n this.onJoinDelegate = null;\n this.onRoomDelegate = null;\n this.onPeerDelegate = null;\n this.onTrackDelegate = null;\n this.onErrorDelegate = null;\n this.onMessageDelegate = null;\n this.onSpeakerDelegate = null;\n this.onReconnectingDelegate = null;\n this.onReconnectedDelegate = null;\n this.onRoleChangeRequestDelegate = null;\n this.onChangeTrackStateRequestDelegate = null;\n this.onRemovedFromRoomDelegate = null;\n this.onPIPRoomLeaveDelegate = null;\n\n // Getting list of all available `emitterSubscription` objects\n Object.values(this.emitterSubscriptions)\n .filter(Boolean)\n .forEach((emitterSubscription) => {\n emitterSubscription.remove();\n });\n\n // clearing reference of all `emitterSubscription` objects\n this.emitterSubscriptions = {};\n\n logger?.verbose('#Function REMOVE_ALL_LISTENER', { id: this.id });\n };\n\n onPreviewListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const room: HMSRoom = HMSEncoder.encodeHmsRoom(data.room, this.id);\n const previewTracks = HMSEncoder.encodeHmsPreviewTracks(\n data.previewTracks,\n this.id\n );\n\n if (this.onPreviewDelegate) {\n logger?.verbose('#Listener ON_PREVIEW_LISTENER_CALL', {\n room,\n previewTracks,\n });\n this.onPreviewDelegate({ room, previewTracks });\n }\n };\n\n onJoinListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n const room: HMSRoom = HMSEncoder.encodeHmsRoom(data.room, this.id);\n\n if (this.onJoinDelegate) {\n logger?.verbose('#Listener ON_JOIN_LISTENER_CALL', {\n room,\n });\n this.onJoinDelegate({ room });\n }\n };\n\n onPermissionsRequestedListener = (data: {\n id: string;\n permissions: Array<string>;\n }) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onPermissionsRequestedDelegate) {\n logger?.verbose('#Listener ON_PERMISSIONS_REQUESTED_LISTENER_CALL', data);\n this.onPermissionsRequestedDelegate({ ...data });\n }\n };\n\n onRoomListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const room: HMSRoom = HMSEncoder.encodeHmsRoom(data.room, this.id);\n const type = data.type;\n\n getHmsRoomCache()?.updateRoomCache(data.room, data.type);\n\n if (this.onRoomDelegate) {\n logger?.verbose('#Listener ON_ROOM_LISTENER_CALL', {\n room,\n type,\n });\n this.onRoomDelegate({ room, type });\n }\n };\n\n onTranscriptsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n HMSEncoder.transformTranscripts(data.transcripts);\n\n if (this.onTranscriptsDelegate) {\n logger?.verbose('#Listener ON_TRANSCRIPTS_LISTENER_CALL', data);\n this.onTranscriptsDelegate(data);\n }\n };\n\n onPeerListener = (peerData: any) => {\n const data: { peer: any; type: any } = {\n peer: peerData,\n type: null,\n };\n\n for (const ordinal of HMSPeerUpdateOrdinals.keys()) {\n if (ordinal in peerData) {\n data.peer.peerID = peerData[ordinal];\n data.type = ordinal;\n break;\n }\n }\n\n const peer: HMSPeer = HMSEncoder.encodeHmsPeer(data.peer);\n const type = HMSEncoder.encodeHmsPeerUpdate(data.type) || data.type;\n\n if (type === HMSPeerUpdate.PEER_LEFT) {\n this.sendPeerUpdateWhenPeerLeaves(data, peer, type);\n } else {\n getHmsPeersCache()?.updatePeerCache(data.peer.peerID, data.peer, type);\n this.sendPeerUpdate(peer, type);\n }\n };\n\n private sendPeerUpdate = (peer: any, type: any) => {\n if (this.onPeerDelegate) {\n logger?.verbose('#Listener ON_PEER_LISTENER_CALL', {\n peer,\n type,\n });\n this.onPeerDelegate({ peer, type });\n }\n };\n\n private sendPeerUpdateWhenPeerLeaves = (data: any, peer: any, type: any) => {\n this.sendPeerUpdate(peer, type);\n\n getHmsPeersCache()?.updatePeerCache(data.peer.peerID, data.peer, type);\n };\n\n onPeerListUpdatedListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const addedPeers = HMSEncoder.encodeHmsPeers(data.addedPeers);\n const removedPeers = HMSEncoder.encodeHmsPeers(data.removedPeers);\n\n if (this.onPeerListUpdatedDelegate) {\n logger?.verbose('#Listener ON_PEER_LIST_UPDATED_LISTENER_CALL', {\n totalAddedPeers: addedPeers.length,\n totalRemovedPeers: removedPeers.length,\n });\n\n this.onPeerListUpdatedDelegate({\n addedPeers,\n removedPeers,\n });\n }\n };\n\n onTrackListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const track: HMSTrack = HMSEncoder.encodeHmsTrack(data.track, this.id);\n const peer: HMSPeer = HMSEncoder.encodeHmsPeer(data.peer);\n const type = data.type;\n\n getHmsPeersCache()?.updatePeerCache(data.peer.peerID, { track }, data.type);\n\n if (this.onTrackDelegate) {\n logger?.verbose('#Listener ON_TRACK_LISTENER_CALL', {\n peer,\n track,\n type,\n });\n this.onTrackDelegate({\n peer,\n track,\n type,\n });\n }\n };\n\n onMessageListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n const message = HMSEncoder.encodeHMSMessage(data);\n if (this.onMessageDelegate) {\n logger?.verbose('#Listener ON_MESSAGE_LISTENER_CALL', message);\n this.onMessageDelegate(message);\n }\n };\n\n onSpeakerListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onSpeakerDelegate) {\n logger?.verbose('#Listener ON_SPEAKER_LISTENER_CALL', data?.speakers);\n this.onSpeakerDelegate(\n HMSEncoder.encodeHmsSpeakers(data?.speakers, this.id)\n );\n }\n };\n\n onErrorListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onErrorDelegate) {\n logger?.verbose('#Listener ON_ERROR_LISTENER_CALL', data);\n logger?.warn('#Listener ON_ERROR_LISTENER_CALL', data);\n this.onErrorDelegate(HMSEncoder.encodeHMSException(data));\n }\n };\n\n onRoleChangeRequestListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onRoleChangeRequestDelegate) {\n const encodedRoleChangeRequest =\n HMSEncoder.encodeHmsRoleChangeRequest(data);\n logger?.verbose(\n '#Listener ON_ROLE_CHANGE_LISTENER_CALL',\n encodedRoleChangeRequest\n );\n this.onRoleChangeRequestDelegate(encodedRoleChangeRequest);\n }\n };\n\n onChangeTrackStateRequestListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onChangeTrackStateRequestDelegate) {\n const encodedRoleChangeRequest =\n HMSEncoder.encodeHmsChangeTrackStateRequest(data);\n logger?.verbose(\n '#Listener ON_CHANGE_TRACK_STATE_REQUEST_LISTENER_CALL',\n encodedRoleChangeRequest\n );\n this.onChangeTrackStateRequestDelegate(encodedRoleChangeRequest);\n }\n };\n\n onRemovedFromRoomListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n this.roomLeaveCleanup();\n\n if (this.onRemovedFromRoomDelegate) {\n let requestedBy = null;\n if (data.requestedBy) {\n requestedBy = HMSEncoder.encodeHmsPeer(data.requestedBy);\n }\n const reason = data.reason;\n const roomEnded = data.roomEnded;\n\n logger?.verbose('#Listener ON_REMOVED_FROM_ROOM_LISTENER_CALL', {\n requestedBy,\n reason,\n roomEnded,\n id: this.id,\n });\n this.onRemovedFromRoomDelegate({ requestedBy, reason, roomEnded });\n }\n };\n\n reconnectingListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onReconnectingDelegate) {\n logger?.verbose('#Listener ON_RECONNECTING_CALL', data);\n this.onReconnectingDelegate(data);\n }\n };\n\n reconnectedListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onReconnectedDelegate) {\n logger?.verbose('#Listener ON_RECONNECTED_CALL', data);\n this.onReconnectedDelegate(data);\n }\n };\n\n RTCStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let rtcStats = HMSEncoder.encodeRTCStats(data);\n\n if (this.onRtcStatsDelegate) {\n logger?.verbose('#Listener RTCStatsListener_CALL', { rtcStats });\n this.onRtcStatsDelegate({ rtcStats });\n }\n };\n\n onLocalAudioStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let localAudioStats = HMSEncoder.encodeHMSLocalAudioStats(\n data.localAudioStats\n );\n let peer = HMSEncoder.encodeHmsPeer(data.peer);\n let track = HMSEncoder.encodeHmsLocalAudioTrack(data.track, this.id);\n\n if (this.onLocalAudioStatsDelegate) {\n logger?.verbose('#Listener onLocalAudioStatsListener_CALL', {\n ...data,\n localAudioStats,\n peer,\n track,\n });\n this.onLocalAudioStatsDelegate({ ...data, localAudioStats, peer, track });\n }\n };\n\n onLocalVideoStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let localVideoStats = HMSEncoder.encodeHMSLocalVideoStats(\n data.localVideoStats\n );\n let peer = HMSEncoder.encodeHmsPeer(data.peer);\n let track = HMSEncoder.encodeHmsLocalVideoTrack(data.track, this.id);\n\n if (this.onLocalVideoStatsDelegate) {\n logger?.verbose('#Listener onLocalVideoStatsListener_CALL', {\n ...data,\n localVideoStats,\n peer,\n track,\n });\n this.onLocalVideoStatsDelegate({ ...data, localVideoStats, peer, track });\n }\n };\n\n onRemoteAudioStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let remoteAudioStats = HMSEncoder.encodeHMSRemoteAudioStats(\n data.remoteAudioStats\n );\n let peer = HMSEncoder.encodeHmsPeer(data.peer);\n let track = HMSEncoder.encodeHmsRemoteAudioTrack(data.track, this.id);\n\n if (this.onRemoteAudioStatsDelegate) {\n logger?.verbose('#Listener onRemoteAudioStatsListener_CALL', {\n ...data,\n remoteAudioStats,\n peer,\n track,\n });\n this.onRemoteAudioStatsDelegate({\n ...data,\n remoteAudioStats,\n peer,\n track,\n });\n }\n };\n\n onRemoteVideoStatsListener = (data: any) => {\n if (data.id !== this.id) {\n return;\n }\n\n let remoteVideoStats = HMSEncoder.encodeHMSRemoteVideoStats(\n data.remoteVideoStats\n );\n let peer = HMSEncoder.encodeHmsPeer(data.peer);\n let track = HMSEncoder.encodeHmsRemoteVideoTrack(data.track, this.id);\n\n if (this.onRemoteVideoStatsDelegate) {\n logger?.verbose('#Listener onRemoteVideoStatsListener_CALL', {\n ...data,\n remoteVideoStats,\n peer,\n track,\n });\n this.onRemoteVideoStatsDelegate({\n ...data,\n remoteVideoStats,\n peer,\n track,\n });\n }\n };\n\n onAudioDeviceChangedListener = (data: {\n id: string;\n device: string;\n audioDevicesList: string[];\n }) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onAudioDeviceChangedDelegate) {\n logger?.verbose('#Listener onAudioDeviceChangedListener_CALL', data);\n this.onAudioDeviceChangedDelegate({\n ...data,\n });\n }\n };\n\n /**\n * Listener for the `SessionStoreAvailable` event.\n *\n * This listener is triggered when the session store becomes available in the SDK. It is an important event\n * for developers who need to access or manipulate the session store after it has been initialized and made available.\n *\n * @param {Object} data - The event data.\n * @param {HMSSessionStore} data.sessionStore - The session store object that has been made available.\n */\n onSessionStoreAvailableListener = (data: { id: string }) => {\n if (data.id !== this.id) {\n return;\n }\n if (this.onSessionStoreAvailableDelegate) {\n logger?.verbose(\n '#Listener ON_SESSION_STORE_AVAILABLE_LISTENER_CALL',\n data\n );\n this.onSessionStoreAvailableDelegate({\n ...data,\n sessionStore: new HMSSessionStore(),\n });\n }\n };\n\n /**\n * Listener for the `PIPRoomLeave` event. Android only.\n *\n * This listener is triggered when a room is left from the Picture in Picture (PIP) mode, which is currently supported only on Android platforms.\n * It is an essential event for handling cleanup or UI updates when the user exits the room while in PIP mode.\n * @param {Object} data - The event data.\n * @memberof HMSSDK\n * @example\n * // Example of handling the `PIPRoomLeave` event\n * hms.onPIPRoomLeave((data) => {\n * // Handle PIP room leave event\n * });\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/pip-mode\n */\n onPIPRoomLeaveListener = (data: { id: string }) => {\n if (data.id !== this.id) {\n return;\n }\n\n this.roomLeaveCleanup();\n\n if (this.onPIPRoomLeaveDelegate) {\n logger?.verbose('#Listener onPIPRoomLeave_CALL', data);\n this.onPIPRoomLeaveDelegate({\n ...data,\n });\n }\n };\n\n /**\n * Listener for the `PIPModeChanged` event.\n * This listener is triggered when the Picture in Picture (PIP) mode is toggled on or off.\n * It is an important event for handling UI updates or other actions when the user enters or exits PIP mode.\n * @param {Object} data - The event data.\n * @param {boolean} data.isInPictureInPictureMode - A boolean value indicating whether the user is currently in PIP mode.\n * @returns {void} - Returns nothing.\n * @memberof HMSSDK\n * @example\n * // Example of handling the `PIPModeChanged` event\n * hms.onPIPModeChanged((data) => {\n * if (data.isInPictureInPictureMode) {\n * // Handle PIP mode enabled\n * } else {\n * // Handle PIP mode disabled\n * }\n * });\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/pip-mode\n */\n onPIPModeChangedListener = (data: {\n isInPictureInPictureMode: boolean;\n }): void => {\n if (this.onPIPModeChangedDelegate) {\n logger?.verbose('#Listener onPIPModeChanged_CALL', data);\n\n this.onPIPModeChangedDelegate(data);\n }\n };\n\n /**\n * - This function is used to check if Picture in Picture mode is supported on the device\n * @returns {Promise<boolean>} - Returns a boolean value indicating whether Picture in Picture mode is supported on the device.\n * @memberof HMSSDK\n * @example\n * // Example of checking if Picture in Picture mode is supported\n * const isPipModeSupported = await hms.isPipModeSupported();\n * if (isPipModeSupported) {\n * // Picture in Picture mode is supported\n * } else {\n * // Picture in Picture mode is not supported\n * }\n * @example\n * // Example of checking if Picture in Picture mode is supported\n * hms.isPipModeSupported().then((isPipModeSupported) => {\n * if (isPipModeSupported) {\n * // Picture in Picture mode is supported\n * } else {\n * // Picture in Picture mode is not supported\n * }\n * });\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/pip-mode\n */\n async isPipModeSupported(): Promise<undefined | boolean> {\n const data = { id: this.id };\n logger?.verbose('#Function isPipModeSupported', data);\n return HMSManager.handlePipActions('isPipModeSupported', data);\n }\n\n /**\n * Asynchronously enters Picture in Picture (PIP) mode with optional configuration.\n *\n * This method attempts to enter PIP mode based on the provided configuration.\n * It returns a promise that resolves to a boolean indicating the success of the operation.\n * If PIP mode is not supported or fails to activate, the promise may resolve to `undefined` or `false`.\n *\n * @param {HMSPIPConfig} [data] - Optional configuration for entering PIP mode. This can include settings such as `autoEnterPipMode` and `aspectRatio`.\n * @returns {Promise<boolean>} - A promise that resolves to `true` if PIP mode was successfully entered, `false` if unsuccessful or PIP mode is not supported.\n * @throws {Error} - Throws an error if the operation fails.\n * @memberof HMSSDK\n * @example\n * // Example of entering Picture in Picture mode\n * hms.enterPipMode().then((success) => {\n * if (success) {\n * // Picture in Picture mode entered successfully\n * } else {\n * // Picture in Picture mode could not be entered\n * }\n * });\n * @example\n * // Example of entering Picture in Picture mode with configuration\n * const success = await hms.enterPipMode({ autoEnterPipMode: true, aspectRatio: [16,9] });\n * if (success) {\n * // Picture in Picture mode entered successfully\n * } else {\n * // Picture in Picture mode could not be entered\n * }\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/pip-mode\n */\n async enterPipMode(data?: HMSPIPConfig): Promise<boolean> {\n logger?.verbose('#Function enterPipMode', data);\n return HMSManager.handlePipActions('enterPipMode', {\n ...data,\n id: this.id,\n });\n }\n\n /**\n * Asynchronously sets the parameters for Picture in Picture (PIP) mode.\n *\n * This method configures the PIP window according to the provided `HMSPIPConfig` settings. It can be used to adjust various aspects of the PIP mode, such as its size, aspect ratio, and more. The method returns a promise that resolves to a boolean indicating the success of the operation. If the PIP mode is not supported or the configuration fails, the promise may resolve to `undefined` or `false`.\n *\n * @param {HMSPIPConfig} [data] - Optional configuration for setting PIP mode parameters. This can include settings such as `aspectRatio`, `autoEnterPipMode`, etc.\n * @returns {Promise<boolean | undefined>} - A promise that resolves to `true` if the PIP parameters were successfully set, `false` if unsuccessful. `undefined` may be returned if PIP mode is not supported.\n * @throws {Error} - Throws an error if the operation fails.\n * @memberof HMSSDK\n * @example\n * // Example of setting Picture in Picture mode parameters\n * hms.setPipParams({ aspectRatio: [16, 9], autoEnterPipMode: true }).then((success) => {\n * if (success) {\n * // Picture in Picture mode parameters set successfully\n * } else {\n * // Picture in Picture mode parameters could not be set\n * }\n * });\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/pip-mode\n */\n async setPipParams(data?: HMSPIPConfig): Promise<boolean | undefined> {\n return HMSManager.handlePipActions('setPictureInPictureParams', {\n ...data,\n id: this.id,\n });\n }\n\n /**\n * Changes the video track used in Picture in Picture (PIP) mode on iOS devices.\n *\n * This function is specifically designed for iOS platforms to switch the video track displayed in PIP mode.\n * It takes a `HMSVideoTrack` object as an argument, which contains the track ID of the video track to be displayed in PIP mode.\n * This allows for dynamic changes to the video source in PIP mode, enhancing the flexibility of video presentation in applications that support PIP.\n *\n * @param {HMSVideoTrack} track - The video track to be used in PIP mode. Must contain a valid `trackId`.\n * @returns {Promise} - A promise that resolves when the video track has been successfully changed for PIP mode, or rejects with an error if the operation fails.\n * @throws {Error} - Throws an error if the operation fails.\n * @async\n * @function changeIOSPIPVideoTrack\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/pip-mode\n * @memberof HMSSDK\n * @example\n * // Example of changing the video track for PIP mode on iOS\n * hms.changeIOSPIPVideoTrack(videoTrack).then(() => {\n * console.log('Video track for PIP mode changed successfully');\n * }).catch(error => {\n * console.error('Failed to change video track for PIP mode', error);\n * });\n *\n */\n async changeIOSPIPVideoTrack(track: HMSVideoTrack) {\n if (Platform.OS === 'ios') {\n const data = {\n id: this.id,\n trackId: track.trackId,\n };\n logger?.verbose('#Function changeIOSPIPVideoTrack', data);\n return await HMSManager.changeIOSPIPVideoTrack(data);\n } else {\n return Promise.resolve(false);\n }\n }\n\n /**\n * - This function is used to automatically switch the video track of the active speaker to the Picture in Picture (PIP) mode window on iOS devices.\n * - When enabled, the video track of the active speaker will be displayed in the PIP mode window, providing a focused view of the current speaker during a meeting or conference.\n * @param {boolean} enable - A boolean value indicating whether to enable or disable the automatic switching of the active speaker video track in PIP mode.\n * @returns {Promise} - A promise that resolves when the operation is successful, or rejects with an error if the operation fails.\n * @throws {Error} - Throws an error if the operation fails.\n * @async\n * @function setActiveSpeakerInIOSPIP\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/pip-mode\n * @memberof HMSSDK\n * @example\n * // Example of enabling the automatic switching of the active speaker video track in PIP mode\n * hms.setActiveSpeakerInIOSPIP(true).then(() => {\n * console.log('Active speaker video track enabled in PIP mode');\n * }).catch(error => {\n * console.error('Failed to enable active speaker video track in PIP mode', error);\n * });\n */\n async setActiveSpeakerInIOSPIP(enable: boolean): Promise<any> {\n if (Platform.OS === 'ios') {\n const data = {\n id: this.id,\n enable,\n };\n logger?.verbose('#Function setActiveSpeakerInIOSPIP', data);\n return await HMSManager.setActiveSpeakerInIOSPIP(data);\n } else {\n return Promise.resolve(false);\n }\n }\n\n /**\n * Initiates real-time transcription services.\n *\n * This asynchronous function triggers the HMSManager to start real-time transcription services,\n * capturing and transcribing audio in real time.\n *\n * @async\n * @function startRealTimeTranscription\n * @memberof HMSSDK\n * @example\n * // Example of starting real-time transcription services\n * await hmsInstance.startRealTimeTranscription();\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/extend-capabilities/live-captions\n */\n async startRealTimeTranscription() {\n const data = {\n id: this.id,\n action: 'start',\n };\n logger?.verbose('#Function startRealTimeTranscription', data);\n return HMSManager.handleRealTimeTranscription(data);\n }\n\n /**\n * Stops the real-time transcription services.\n *\n * This asynchronous function signals the HMSManager to terminate the ongoing real-time transcription services.\n *\n * @async\n * @function stopRealTimeTranscription\n * @memberof HMSSDK\n * @example\n * await hmsInstance.stopRealTimeTranscription();\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/extend-capabilities/live-captions\n */\n async stopRealTimeTranscription() {\n const data = {\n id: this.id,\n action: 'stop',\n };\n logger?.verbose('#Function stopRealTimeTranscription', data);\n return HMSManager.handleRealTimeTranscription(data);\n }\n\n get interactivityCenter() {\n if (!this._interactivityCenter) {\n this._interactivityCenter = new HMSInteractivityCenter();\n }\n return this._interactivityCenter;\n }\n\n /**\n * Retrieves the current logger instance used by the HMSSDK.\n *\n * This static method provides access to the logger instance, allowing for the manipulation of log levels and the retrieval of log information. It is useful for debugging purposes, enabling developers to monitor and adjust the verbosity of logs generated by the HMS SDK.\n *\n * @returns {HMSLogger} The current logger instance.\n * @memberof HMSSDK\n * @example\n * const logger = HMSSDK.getLogger();\n * logger.setLevel('debug'); // Adjusting the log level to debug\n */\n static getLogger() {\n return getLogger();\n }\n\n /**\n * Updates the logger instance for this HMSSDK instance.\n *\n * This method allows for the dynamic updating of the logger instance used by the HMSSDK.\n * It can be used to change the logger settings or replace the logger entirely at runtime.\n * This is particularly useful for adjusting log levels or redirecting log output based on application state or user preferences.\n *\n * @param {HMSLogger} hmsLogger - The new logger instance to be used. If not provided, the logger will be reset to default.\n * @memberof HMSSDK\n * @example\n * // Set a custom logger with a specific configuration\n * const customLogger = new HMSLogger();\n * customLogger.setLevel('verbose');\n * hmsInstance.setLogger(customLogger);\n *\n */\n setLogger = (hmsLogger?: HMSLogger) => {\n setLogger(this.id, hmsLogger);\n };\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,yBAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAEA,IAAAO,iBAAA,GAAAR,sBAAA,CAAAC,OAAA;AAmBA,IAAAQ,sBAAA,GAAAR,OAAA;AACA,IAAAS,uBAAA,GAAAV,sBAAA,CAAAC,OAAA;AAEA,IAAAU,cAAA,GAAAV,OAAA;AAMA,IAAAW,aAAA,GAAAX,OAAA;AAMA,IAAAY,cAAA,GAAAZ,OAAA;AACA,IAAAa,gBAAA,GAAAb,OAAA;AAEA,IAAAc,oBAAA,GAAAd,OAAA;AAEA,IAAAe,uBAAA,GAAAf,OAAA;AAAkE,SAAAD,uBAAAiB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT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;AACA;AACA;AACA;AACA;AACA;AACA;IAdE1V,eAAA,iCAe0B0D,IAAoB,IAAK;MACjD,IAAIA,IAAI,CAACpC,EAAE,KAAK,IAAI,CAACA,EAAE,EAAE;QACvB;MACF;MAEA,IAAI,CAACuC,gBAAgB,CAAC,CAAC;MAEvB,IAAI,IAAI,CAACmO,sBAAsB,EAAE;QAC/BzQ,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,+BAA+B,EAAEkC,IAAI,CAAC;QACtD,IAAI,CAACsO,sBAAsB,CAAC;UAC1B,GAAGtO;QACL,CAAC,CAAC;MACJ;IACF,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IAnBE1D,eAAA,mCAoB4B0D,IAE3B,IAAW;MACV,IAAI,IAAI,CAAC0O,wBAAwB,EAAE;QACjC7Q,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,iCAAiC,EAAEkC,IAAI,CAAC;QAExD,IAAI,CAAC0O,wBAAwB,CAAC1O,IAAI,CAAC;MACrC;IACF,CAAC;IA0OD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IAfE1D,eAAA,oBAgBa2V,SAAqB,IAAK;MACrC,IAAAC,oBAAS,EAAC,IAAI,CAACtU,EAAE,EAAEqU,SAAS,CAAC;IAC/B,CAAC;IA52GC,IAAI,CAACrU,EAAE,GAAGA,EAAE;EACd;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,aAAauU,KAAKA,CAACC,MAOlB,EAAE;IACD,MAAM;MAAEC;IAAQ,CAAC,GAAGlX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;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMoT,YAAYA,CAACpT,IAAmB,EAAoB;IACxDnC,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,wBAAwB,EAAEkC,IAAI,CAAC;IAC/C,OAAO9B,yBAAU,CAACiV,gBAAgB,CAAC,cAAc,EAAE;MACjD,GAAGnT,IAAI;MACPpC,EAAE,EAAE,IAAI,CAACA;IACX,CAAC,CAAC;EACJ;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMyV,YAAYA,CAACrT,IAAmB,EAAgC;IACpE,OAAO9B,yBAAU,CAACiV,gBAAgB,CAAC,2BAA2B,EAAE;MAC9D,GAAGnT,IAAI;MACPpC,EAAE,EAAE,IAAI,CAACA;IACX,CAAC,CAAC;EACJ;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAM0V,sBAAsBA,CAACpR,KAAoB,EAAE;IACjD,IAAI6C,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;MACzB,MAAMhF,IAAI,GAAG;QACXpC,EAAE,EAAE,IAAI,CAACA,EAAE;QACXuB,OAAO,EAAE+C,KAAK,CAAC/C;MACjB,CAAC;MACDtB,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,kCAAkC,EAAEkC,IAAI,CAAC;MACzD,OAAO,MAAM9B,yBAAU,CAACoV,sBAAsB,CAACtT,IAAI,CAAC;IACtD,CAAC,MAAM;MACL,OAAOqF,OAAO,CAACC,OAAO,CAAC,KAAK,CAAC;IAC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