@100mslive/react-native-hms 0.9.94 → 1.1.0
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 +44 -29
- package/android/.gradle/6.9/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.idea/jarRepositories.xml +10 -0
- package/android/.idea/libraries/Gradle__androidx_tracing_tracing_1_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_fbjni_fbjni_0_3_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_71_0_rc_0_debug_aar.xml +14 -0
- package/android/.idea/libraries/{Gradle__com_github_100mslive_android_sdk_lib_2_5_0_aar.xml → Gradle__com_github_100mslive_android_sdk_lib_2_5_1_aar.xml} +3 -3
- package/android/.idea/libraries/{Gradle__com_github_100mslive_webrtc_m104_hms_1_2_aar.xml → Gradle__com_github_100mslive_webrtc_m104_hms_1_3_aar.xml} +3 -3
- package/android/.idea/modules/android.androidTest.iml +10 -8
- package/android/.idea/modules/android.main.iml +10 -8
- package/android/.idea/modules/android.unitTest.iml +10 -8
- package/android/.idea/sonarlint/issuestore/3/c/3c46088b6add3088181589d8ed726652742b6221 +4 -4
- package/android/.idea/sonarlint/issuestore/a/8/a8c9f5ddd88723818e51ae3cf8693d02355a8691 +0 -0
- package/android/.idea/sonarlint/issuestore/index.pb +2 -0
- package/android/build.gradle +5 -1
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +23 -23
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +421 -3
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +670 -531
- package/android/src/main/java/com/reactnativehmssdk/PipActionReceiver.kt +66 -0
- package/android/src/main/res/drawable/ic_call_end_24.xml +10 -0
- package/android/src/main/res/drawable/ic_camera_toggle_off.xml +11 -0
- package/android/src/main/res/drawable/ic_camera_toggle_on.xml +10 -0
- package/android/src/main/res/drawable/ic_mic_24.xml +10 -0
- package/android/src/main/res/drawable/ic_mic_off_24.xml +10 -0
- package/ios/HMSDecoder.swift +10 -7
- package/ios/HMSHelper.swift +22 -16
- package/ios/HMSManager.m +4 -0
- package/ios/HMSManager.swift +29 -0
- package/ios/HMSRNSDK.swift +60 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/yogesh.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Hmssdk.xcodeproj/xcuserdata/yogesh.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/lib/commonjs/classes/HMSAudioMixerSource.js +3 -1
- package/lib/commonjs/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioNode.js +3 -1
- package/lib/commonjs/classes/HMSAudioNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioSettings.js +3 -1
- package/lib/commonjs/classes/HMSAudioSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrackSettings.js +3 -1
- package/lib/commonjs/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSBrowserRecordingState.js +3 -1
- package/lib/commonjs/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js +3 -1
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSConfig.js +3 -1
- package/lib/commonjs/classes/HMSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSEncoder.js +2 -1
- package/lib/commonjs/classes/HMSEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSException.js +3 -1
- package/lib/commonjs/classes/HMSException.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSConfig.js +3 -1
- package/lib/commonjs/classes/HMSHLSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js +3 -1
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js +3 -1
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingState.js +3 -1
- package/lib/commonjs/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSStreamingState.js +3 -1
- package/lib/commonjs/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSVariant.js +3 -1
- package/lib/commonjs/classes/HMSHLSVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioStats.js +3 -1
- package/lib/commonjs/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioTrack.js +3 -1
- package/lib/commonjs/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalPeer.js +3 -1
- package/lib/commonjs/classes/HMSLocalPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoStats.js +3 -1
- package/lib/commonjs/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js +3 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js +3 -1
- package/lib/commonjs/classes/HMSLogSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSLogger.js +3 -1
- package/lib/commonjs/classes/HMSLogger.js.map +1 -1
- package/lib/commonjs/classes/HMSMessage.js +3 -1
- package/lib/commonjs/classes/HMSMessage.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js +3 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageType.js +13 -0
- package/lib/commonjs/classes/HMSMessageType.js.map +1 -0
- package/lib/commonjs/classes/HMSNetworkQuality.js +3 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/commonjs/classes/HMSPIPListenerActions.js +12 -0
- package/lib/commonjs/classes/HMSPIPListenerActions.js.map +1 -0
- package/lib/commonjs/classes/HMSPeer.js +3 -1
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPermissions.js +3 -1
- package/lib/commonjs/classes/HMSPermissions.js.map +1 -1
- package/lib/commonjs/classes/HMSPublishSettings.js +3 -1
- package/lib/commonjs/classes/HMSPublishSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStats.js +3 -1
- package/lib/commonjs/classes/HMSRTCStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStatsReport.js +3 -1
- package/lib/commonjs/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js +3 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioStats.js +3 -1
- package/lib/commonjs/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js +3 -1
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRemotePeer.js +3 -1
- package/lib/commonjs/classes/HMSRemotePeer.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoStats.js +3 -1
- package/lib/commonjs/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js +3 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +3 -1
- package/lib/commonjs/classes/HMSRole.js.map +1 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js +3 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSRoom.js +5 -1
- package/lib/commonjs/classes/HMSRoom.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js +3 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js +3 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSSDK.js +92 -4
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js +3 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js +3 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettings.js +3 -1
- package/lib/commonjs/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSpeaker.js +3 -1
- package/lib/commonjs/classes/HMSSpeaker.js.map +1 -1
- package/lib/commonjs/classes/HMSSubscribeSettings.js +3 -1
- package/lib/commonjs/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrack.js +3 -1
- package/lib/commonjs/classes/HMSTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettings.js +3 -1
- package/lib/commonjs/classes/HMSTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoResolution.js +3 -1
- package/lib/commonjs/classes/HMSVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoSettings.js +3 -1
- package/lib/commonjs/classes/HMSVideoSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js +3 -1
- package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +3 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HmsView.js +13 -1
- package/lib/commonjs/classes/HmsView.js.map +1 -1
- package/lib/commonjs/index.js +24 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/classes/HMSAudioMixerSource.js +3 -1
- package/lib/module/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/module/classes/HMSAudioNode.js +3 -1
- package/lib/module/classes/HMSAudioNode.js.map +1 -1
- package/lib/module/classes/HMSAudioSettings.js +3 -1
- package/lib/module/classes/HMSAudioSettings.js.map +1 -1
- package/lib/module/classes/HMSAudioTrackSettings.js +3 -1
- package/lib/module/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSBrowserRecordingState.js +3 -1
- package/lib/module/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/module/classes/HMSChangeTrackStateRequest.js +3 -1
- package/lib/module/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/module/classes/HMSConfig.js +3 -1
- package/lib/module/classes/HMSConfig.js.map +1 -1
- package/lib/module/classes/HMSEncoder.js +2 -1
- package/lib/module/classes/HMSEncoder.js.map +1 -1
- package/lib/module/classes/HMSException.js +3 -1
- package/lib/module/classes/HMSException.js.map +1 -1
- package/lib/module/classes/HMSHLSConfig.js +3 -1
- package/lib/module/classes/HMSHLSConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSMeetingURLVariant.js +3 -1
- package/lib/module/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/module/classes/HMSHLSRecordingConfig.js +3 -1
- package/lib/module/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSRecordingState.js +3 -1
- package/lib/module/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/module/classes/HMSHLSStreamingState.js +3 -1
- package/lib/module/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/module/classes/HMSHLSVariant.js +3 -1
- package/lib/module/classes/HMSHLSVariant.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioStats.js +3 -1
- package/lib/module/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioTrack.js +3 -1
- package/lib/module/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSLocalPeer.js +3 -1
- package/lib/module/classes/HMSLocalPeer.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoStats.js +3 -1
- package/lib/module/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoTrack.js +3 -1
- package/lib/module/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSLogSettings.js +3 -1
- package/lib/module/classes/HMSLogSettings.js.map +1 -1
- package/lib/module/classes/HMSLogger.js +3 -1
- package/lib/module/classes/HMSLogger.js.map +1 -1
- package/lib/module/classes/HMSMessage.js +3 -1
- package/lib/module/classes/HMSMessage.js.map +1 -1
- package/lib/module/classes/HMSMessageRecipient.js +3 -1
- package/lib/module/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/module/classes/HMSMessageType.js +6 -0
- package/lib/module/classes/HMSMessageType.js.map +1 -0
- package/lib/module/classes/HMSNetworkQuality.js +3 -1
- package/lib/module/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/module/classes/HMSPIPListenerActions.js +5 -0
- package/lib/module/classes/HMSPIPListenerActions.js.map +1 -0
- package/lib/module/classes/HMSPeer.js +3 -1
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPermissions.js +3 -1
- package/lib/module/classes/HMSPermissions.js.map +1 -1
- package/lib/module/classes/HMSPublishSettings.js +3 -1
- package/lib/module/classes/HMSPublishSettings.js.map +1 -1
- package/lib/module/classes/HMSRTCStats.js +3 -1
- package/lib/module/classes/HMSRTCStats.js.map +1 -1
- package/lib/module/classes/HMSRTCStatsReport.js +3 -1
- package/lib/module/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/module/classes/HMSRTMPConfig.js +3 -1
- package/lib/module/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/module/classes/HMSRemoteAudioStats.js +3 -1
- package/lib/module/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteAudioTrack.js +3 -1
- package/lib/module/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSRemotePeer.js +3 -1
- package/lib/module/classes/HMSRemotePeer.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoStats.js +3 -1
- package/lib/module/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoTrack.js +3 -1
- package/lib/module/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSRole.js +3 -1
- package/lib/module/classes/HMSRole.js.map +1 -1
- package/lib/module/classes/HMSRoleChangeRequest.js +3 -1
- package/lib/module/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/module/classes/HMSRoom.js +5 -1
- package/lib/module/classes/HMSRoom.js.map +1 -1
- package/lib/module/classes/HMSRtmpStreamingState.js +3 -1
- package/lib/module/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js +3 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSSDK.js +92 -4
- package/lib/module/classes/HMSSDK.js.map +1 -1
- package/lib/module/classes/HMSServerRecordingState.js +3 -1
- package/lib/module/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettings.js +3 -1
- package/lib/module/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/module/classes/HMSSimulcastSettings.js +3 -1
- package/lib/module/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/module/classes/HMSSpeaker.js +3 -1
- package/lib/module/classes/HMSSpeaker.js.map +1 -1
- package/lib/module/classes/HMSSubscribeSettings.js +3 -1
- package/lib/module/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/module/classes/HMSTrack.js +3 -1
- package/lib/module/classes/HMSTrack.js.map +1 -1
- package/lib/module/classes/HMSTrackSettings.js +3 -1
- package/lib/module/classes/HMSTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoResolution.js +3 -1
- package/lib/module/classes/HMSVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSVideoSettings.js +3 -1
- package/lib/module/classes/HMSVideoSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoTrack.js +3 -1
- package/lib/module/classes/HMSVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js +3 -1
- package/lib/module/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/module/classes/HmsView.js +13 -1
- package/lib/module/classes/HmsView.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/classes/HMSMessage.d.ts +3 -2
- package/lib/typescript/classes/HMSMessageType.d.ts +4 -0
- package/lib/typescript/classes/HMSPIPListenerActions.d.ts +3 -0
- package/lib/typescript/classes/HMSRoom.d.ts +3 -0
- package/lib/typescript/classes/HMSSDK.d.ts +53 -5
- package/lib/typescript/index.d.ts +2 -0
- package/package.json +1 -1
- package/react-native-hms.podspec +3 -2
- package/src/classes/HMSEncoder.ts +1 -0
- package/src/classes/HMSMessage.ts +3 -2
- package/src/classes/HMSMessageType.ts +4 -0
- package/src/classes/HMSPIPListenerActions.ts +3 -0
- package/src/classes/HMSRoom.ts +4 -0
- package/src/classes/HMSSDK.tsx +149 -5
- package/src/classes/HmsView.tsx +15 -1
- package/src/index.ts +2 -0
- package/android/.idea/libraries/Gradle__com_facebook_fbjni_fbjni_java_only_0_2_2.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_70_3_debug_aar.xml +0 -14
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2
4
|
export class HMSVideoResolution {
|
|
3
5
|
constructor(params) {
|
|
4
6
|
_defineProperty(this, "height", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoResolution","constructor","params","height","width"],"sources":["HMSVideoResolution.ts"],"sourcesContent":["export class HMSVideoResolution {\n height?: number;\n width?: number;\n\n constructor(params: { height: number; width: number }) {\n this.height = params.height;\n this.width = params.width;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSVideoResolution","constructor","params","height","width"],"sources":["HMSVideoResolution.ts"],"sourcesContent":["export class HMSVideoResolution {\n height?: number;\n width?: number;\n\n constructor(params: { height: number; width: number }) {\n this.height = params.height;\n this.width = params.width;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,kBAAkB,CAAC;EAI9BC,WAAW,CAACC,MAAyC,EAAE;IAAA;IAAA;IACrD,IAAI,CAACC,MAAM,GAAGD,MAAM,CAACC,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;EAC3B;AACF"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2
4
|
export class HMSVideoSettings {
|
|
3
5
|
constructor(params) {
|
|
4
6
|
_defineProperty(this, "bitrate", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoSettings","constructor","params","bitrate","frameRate","width","height","codec"],"sources":["HMSVideoSettings.ts"],"sourcesContent":["import type { HMSVideoCodec } from '..';\n\nexport class HMSVideoSettings {\n bitrate?: number;\n frameRate: number;\n width: number;\n height: number;\n codec: HMSVideoCodec;\n\n constructor(params: {\n bitrate?: number;\n frameRate: number;\n width: number;\n height: number;\n codec: HMSVideoCodec;\n }) {\n this.bitrate = params.bitrate;\n this.frameRate = params.frameRate;\n this.width = params.width;\n this.height = params.height;\n this.codec = params.codec;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSVideoSettings","constructor","params","bitrate","frameRate","width","height","codec"],"sources":["HMSVideoSettings.ts"],"sourcesContent":["import type { HMSVideoCodec } from '..';\n\nexport class HMSVideoSettings {\n bitrate?: number;\n frameRate: number;\n width: number;\n height: number;\n codec: HMSVideoCodec;\n\n constructor(params: {\n bitrate?: number;\n frameRate: number;\n width: number;\n height: number;\n codec: HMSVideoCodec;\n }) {\n this.bitrate = params.bitrate;\n this.frameRate = params.frameRate;\n this.width = params.width;\n this.height = params.height;\n this.codec = params.codec;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,gBAAgB,CAAC;EAO5BC,WAAW,CAACC,MAMX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGF,MAAM,CAACE,SAAS;IACjC,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;IACzB,IAAI,CAACC,MAAM,GAAGJ,MAAM,CAACI,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGL,MAAM,CAACK,KAAK;EAC3B;AACF"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2
4
|
import { HMSTrack } from './HMSTrack';
|
|
3
5
|
export class HMSVideoTrack extends HMSTrack {
|
|
4
6
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSTrack","HMSVideoTrack","constructor","params","isDegraded"],"sources":["HMSVideoTrack.ts"],"sourcesContent":["import { HMSTrack } from './HMSTrack';\nimport type { HMSTrackType } from './HMSTrackType';\n\nexport class HMSVideoTrack extends HMSTrack {\n isDegraded?: boolean;\n\n constructor(params: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n id: string;\n isDegraded?: boolean;\n type?: HMSTrackType;\n }) {\n super(params);\n this.isDegraded = params.isDegraded;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSTrack","HMSVideoTrack","constructor","params","isDegraded"],"sources":["HMSVideoTrack.ts"],"sourcesContent":["import { HMSTrack } from './HMSTrack';\nimport type { HMSTrackType } from './HMSTrackType';\n\nexport class HMSVideoTrack extends HMSTrack {\n isDegraded?: boolean;\n\n constructor(params: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n id: string;\n isDegraded?: boolean;\n type?: HMSTrackType;\n }) {\n super(params);\n this.isDegraded = params.isDegraded;\n }\n}\n"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,YAAY;AAGrC,OAAO,MAAMC,aAAa,SAASD,QAAQ,CAAC;EAG1CE,WAAW,CAACC,MAQX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAAC;IACd,IAAI,CAACC,UAAU,GAAGD,MAAM,CAACC,UAAU;EACrC;AACF"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
2
4
|
export class HMSVideoTrackSettings {
|
|
3
5
|
// android only
|
|
4
6
|
// android only
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoTrackSettings","constructor","params","simulcastSettings","initialState","cameraFacing","forceSoftwareDecoder","disableAutoResize"],"sources":["HMSVideoTrackSettings.ts"],"sourcesContent":["import type { HMSSimulcastLayerSettings } from './HMSSimulcastLayerSettings';\nimport type { HMSCameraFacing } from './HMSCameraFacing';\nimport type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';\n\nexport class HMSVideoTrackSettings {\n readonly simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean; // android only\n disableAutoResize?: boolean; // android only\n\n constructor(params: {\n simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean;\n disableAutoResize?: boolean;\n }) {\n this.simulcastSettings = params.simulcastSettings;\n this.initialState = params.initialState;\n this.cameraFacing = params.cameraFacing;\n this.forceSoftwareDecoder = params.forceSoftwareDecoder;\n this.disableAutoResize = params.disableAutoResize;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSVideoTrackSettings","constructor","params","simulcastSettings","initialState","cameraFacing","forceSoftwareDecoder","disableAutoResize"],"sources":["HMSVideoTrackSettings.ts"],"sourcesContent":["import type { HMSSimulcastLayerSettings } from './HMSSimulcastLayerSettings';\nimport type { HMSCameraFacing } from './HMSCameraFacing';\nimport type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';\n\nexport class HMSVideoTrackSettings {\n readonly simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean; // android only\n disableAutoResize?: boolean; // android only\n\n constructor(params: {\n simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean;\n disableAutoResize?: boolean;\n }) {\n this.simulcastSettings = params.simulcastSettings;\n this.initialState = params.initialState;\n this.cameraFacing = params.cameraFacing;\n this.forceSoftwareDecoder = params.forceSoftwareDecoder;\n this.disableAutoResize = params.disableAutoResize;\n }\n}\n"],"mappings":";;;AAIA,OAAO,MAAMA,qBAAqB,CAAC;EAID;EACH;;EAE7BC,WAAW,CAACC,MAMX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,iBAAiB,GAAGD,MAAM,CAACC,iBAAiB;IACjD,IAAI,CAACC,YAAY,GAAGF,MAAM,CAACE,YAAY;IACvC,IAAI,CAACC,YAAY,GAAGH,MAAM,CAACG,YAAY;IACvC,IAAI,CAACC,oBAAoB,GAAGJ,MAAM,CAACI,oBAAoB;IACvD,IAAI,CAACC,iBAAiB,GAAGL,MAAM,CAACK,iBAAiB;EACnD;AACF"}
|
|
@@ -14,16 +14,28 @@ export const HmsViewComponent = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
14
14
|
scaleType = HMSVideoViewMode.ASPECT_FILL
|
|
15
15
|
} = props;
|
|
16
16
|
const hmsViewRef = useRef();
|
|
17
|
+
const timerRef = useRef(null);
|
|
17
18
|
const [tempVal, setTempVal] = useState(0);
|
|
18
19
|
const data = {
|
|
19
20
|
trackId,
|
|
20
21
|
id,
|
|
21
22
|
mirror
|
|
22
23
|
};
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
return () => {
|
|
26
|
+
if (timerRef.current) {
|
|
27
|
+
clearTimeout(timerRef.current);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}, []);
|
|
23
31
|
const onChange = values => {
|
|
24
32
|
console.log(values, 'values');
|
|
25
|
-
|
|
33
|
+
if (timerRef.current) {
|
|
34
|
+
clearTimeout(timerRef.current);
|
|
35
|
+
}
|
|
36
|
+
timerRef.current = setTimeout(() => {
|
|
26
37
|
setTempVal(1);
|
|
38
|
+
timerRef.current = null;
|
|
27
39
|
}, 2000);
|
|
28
40
|
};
|
|
29
41
|
const _onDataReturned = event => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","useImperativeHandle","useRef","findNodeHandle","requireNativeComponent","StyleSheet","UIManager","HMSVideoViewMode","HmsView","_nextRequestId","_requestMap","Map","HmsViewComponent","forwardRef","props","ref","trackId","style","temporaryStyles","customStyle","id","mirror","setZOrderMediaOverlay","scaleType","ASPECT_FILL","hmsViewRef","tempVal","setTempVal","data","onChange","values","console","log","setTimeout","_onDataReturned","event","requestId","result","error","nativeEvent","promise","get","resolve","reject","delete","capture","requestMap","Promise","set","viewManagerConfig","getViewManagerConfig","dispatchViewManagerCommand","
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","useImperativeHandle","useRef","findNodeHandle","requireNativeComponent","StyleSheet","UIManager","HMSVideoViewMode","HmsView","_nextRequestId","_requestMap","Map","HmsViewComponent","forwardRef","props","ref","trackId","style","temporaryStyles","customStyle","id","mirror","setZOrderMediaOverlay","scaleType","ASPECT_FILL","hmsViewRef","timerRef","tempVal","setTempVal","data","current","clearTimeout","onChange","values","console","log","setTimeout","_onDataReturned","event","requestId","result","error","nativeEvent","promise","get","resolve","reject","delete","capture","requestMap","Promise","set","viewManagerConfig","getViewManagerConfig","dispatchViewManagerCommand","Commands","create","width","height"],"sources":["HmsView.tsx"],"sourcesContent":["import React, { useState, useEffect, useImperativeHandle, useRef } from 'react';\nimport {\n findNodeHandle,\n requireNativeComponent,\n StyleSheet,\n UIManager,\n ViewStyle,\n} from 'react-native';\nimport { HMSVideoViewMode } from './HMSVideoViewMode';\n\ninterface HmsViewProps {\n data: {\n trackId: string;\n id: string;\n mirror: boolean;\n };\n setZOrderMediaOverlay: boolean;\n scaleType: HMSVideoViewMode;\n style: ViewStyle;\n onChange: Function;\n onDataReturned: Function;\n}\n\nconst HmsView = requireNativeComponent<HmsViewProps>('HMSView');\nlet _nextRequestId = 1;\nlet _requestMap = new Map();\n\ninterface HmsComponentProps {\n trackId: string;\n style?: ViewStyle;\n mirror?: boolean;\n scaleType?: HMSVideoViewMode;\n setZOrderMediaOverlay?: boolean;\n id: string;\n}\n\nexport const HmsViewComponent = React.forwardRef<any, HmsComponentProps>(\n (props, ref) => {\n const {\n trackId,\n style = temporaryStyles.customStyle,\n id = '12345',\n mirror = false,\n setZOrderMediaOverlay = false,\n scaleType = HMSVideoViewMode.ASPECT_FILL,\n } = props;\n\n const hmsViewRef: any = useRef();\n const timerRef = useRef<null | NodeJS.Timeout>(null);\n const [tempVal, setTempVal] = useState(0);\n const data = {\n trackId,\n id,\n mirror,\n };\n\n useEffect(() => {\n return () => {\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n }\n };\n }, []);\n\n const onChange = (values: any) => {\n console.log(values, 'values');\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n }\n\n timerRef.current = setTimeout(() => {\n setTempVal(1);\n timerRef.current = null;\n }, 2000);\n };\n\n const _onDataReturned = (event: {\n nativeEvent: { requestId: any; result: any; error: any };\n }) => {\n // We grab the relevant data out of our event.\n let { requestId, result, error } = event.nativeEvent;\n // Then we get the promise we saved earlier for the given request ID.\n let promise = _requestMap.get(requestId);\n if (result) {\n // If it was successful, we resolve the promise.\n promise.resolve(result);\n } else {\n // Otherwise, we reject it.\n promise.reject(error);\n }\n // Finally, we clean up our request map.\n _requestMap.delete(requestId);\n };\n\n const capture = async () => {\n let requestId = _nextRequestId++;\n let requestMap = _requestMap;\n\n // We create a promise here that will be resolved once `_onRequestDone` is\n // called.\n let promise = new Promise(function (resolve, reject) {\n requestMap.set(requestId, { resolve, reject });\n });\n const viewManagerConfig = UIManager.getViewManagerConfig('HMSView');\n UIManager.dispatchViewManagerCommand(\n findNodeHandle(hmsViewRef.current),\n viewManagerConfig.Commands.capture,\n [requestId]\n );\n return promise;\n };\n\n useImperativeHandle(ref, () => {\n return {\n capture,\n };\n });\n\n useEffect(() => {\n setTempVal(0);\n }, [tempVal]);\n\n return (\n <HmsView\n ref={hmsViewRef}\n onChange={onChange}\n data={data}\n style={tempVal === 0 ? style : temporaryStyles.customStyle}\n scaleType={scaleType}\n setZOrderMediaOverlay={setZOrderMediaOverlay}\n onDataReturned={_onDataReturned}\n />\n );\n }\n);\n\nconst temporaryStyles = StyleSheet.create({\n customStyle: {\n width: '100%',\n height: '50%',\n },\n});\n"],"mappings":"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"}
|
package/lib/module/index.js
CHANGED
|
@@ -73,6 +73,8 @@ export * from './classes/HMSAudioMixerSource';
|
|
|
73
73
|
export * from './classes/HMSTrackSettingsInitState';
|
|
74
74
|
export * from './classes/HMSLogSettings';
|
|
75
75
|
export * from './classes/HMSLogAlarmManager';
|
|
76
|
+
export * from './classes/HMSMessageType';
|
|
77
|
+
export * from './classes/HMSPIPListenerActions';
|
|
76
78
|
import { HMSSDK as HmsManager } from './classes/HMSSDK';
|
|
77
79
|
export default HmsManager;
|
|
78
80
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSSDK","HmsManager"],"sources":["index.ts"],"sourcesContent":["export * from './classes/HMSConfig';\nexport * from './classes/HMSUpdateListenerActions';\nexport * from './classes/HMSMessage';\nexport * from './classes/HMSVideoTrackSettings';\nexport * from './classes/HMSVideoTrack';\nexport * from './classes/HMSVideoSettings';\nexport * from './classes/HMSVideoCodec';\nexport * from './classes/HMSTrackSettings';\nexport * from './classes/HMSTrack';\nexport * from './classes/HMSTrackType';\nexport * from './classes/HMSTrackSource';\nexport * from './classes/HMSSubscribeSettings';\nexport * from './classes/HMSSimulcastSettings';\nexport * from './classes/HMSSimulcastLayerSettings';\nexport * from './classes/HMSSDK';\nexport * from './classes/HMSRoom';\nexport * from './classes/HMSRoleChangeRequest';\nexport * from './classes/HMSRole';\nexport * from './classes/HMSRemoteVideoTrack';\nexport * from './classes/HMSRemotePeer';\nexport * from './classes/HMSRemoteAudioTrack';\nexport * from './classes/HMSPublishSettings';\nexport * from './classes/HMSPermissions';\nexport * from './classes/HMSPeer';\nexport * from './classes/HMSLocalVideoTrack';\nexport * from './classes/HMSLocalPeer';\nexport * from './classes/HMSLocalAudioTrack';\nexport * from './classes/HMSHelper';\nexport * from './classes/HMSEncoder';\nexport * from './classes/HMSAudioTrackSettings';\nexport * from './classes/HMSAudioTrack';\nexport * from './classes/HMSAudioSettings';\nexport * from './classes/HMSAudioCodec';\nexport * from './classes/HMSPeerUpdate';\nexport * from './classes/HMSRoomUpdate';\nexport * from './classes/HMSTrackUpdate';\nexport * from './classes/HMSLogger';\nexport * from './classes/HMSLogLevel';\nexport * from './classes/HMSVideoViewMode';\nexport * from './classes/HMSChangeTrackStateRequest';\nexport * from './classes/HMSSpeaker';\nexport * from './classes/HMSCameraFacing';\nexport * from './classes/HMSException';\nexport * from './classes/HMSRtmpStreamingState';\nexport * from './classes/HMSServerRecordingState';\nexport * from './classes/HMSBrowserRecordingState';\nexport * from './classes/HMSRTMPConfig';\nexport * from './classes/HMSHLSConfig';\nexport * from './classes/HMSHLSMeetingURLVariant';\nexport * from './classes/HMSHLSVariant';\nexport * from './classes/HMSHLSStreamingState';\nexport * from './classes/HMSVideoResolution';\nexport * from './classes/HMSLocalAudioStats';\nexport * from './classes/HMSLocalVideoStats';\nexport * from './classes/HMSRTCStats';\nexport * from './classes/HMSRTCStatsReport';\nexport * from './classes/HMSRemoteAudioStats';\nexport * from './classes/HMSRemoteVideoStats';\nexport * from './classes/HMSHLSRecordingConfig';\nexport * from './classes/HMSHLSRecordingState';\nexport * from './classes/HMSMessageRecipient';\nexport * from './classes/HMSMessageRecipientType';\nexport * from './classes/HMSNetworkQuality';\nexport * from './classes/HMSRtmpVideoResolution';\nexport * from './classes/HMSAudioDevice';\nexport * from './classes/HMSAudioMode';\nexport * from './classes/HMSAudioMixingMode';\nexport * from './classes/HMSAudioNode';\nexport * from './classes/HMSMicNode';\nexport * from './classes/HMSScreenBroadcastAudioReceiverNode';\nexport * from './classes/HMSAudioFilePlayerNode';\nexport * from './classes/HMSAudioMixerSource';\nexport * from './classes/HMSTrackSettingsInitState';\nexport * from './classes/HMSLogSettings';\nexport * from './classes/HMSLogAlarmManager';\n\nimport { HMSSDK as HmsManager } from './classes/HMSSDK';\nexport default HmsManager;\n"],"mappings":"AAAA,cAAc,qBAAqB;AACnC,cAAc,oCAAoC;AAClD,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,kBAAkB;AAChC,cAAc,mBAAmB;AACjC,cAAc,gCAAgC;AAC9C,cAAc,mBAAmB;AACjC,cAAc,+BAA+B;AAC7C,cAAc,yBAAyB;AACvC,cAAc,+BAA+B;AAC7C,cAAc,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,mBAAmB;AACjC,cAAc,8BAA8B;AAC5C,cAAc,wBAAwB;AACtC,cAAc,8BAA8B;AAC5C,cAAc,qBAAqB;AACnC,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,0BAA0B;AACxC,cAAc,qBAAqB;AACnC,cAAc,uBAAuB;AACrC,cAAc,4BAA4B;AAC1C,cAAc,sCAAsC;AACpD,cAAc,sBAAsB;AACpC,cAAc,2BAA2B;AACzC,cAAc,wBAAwB;AACtC,cAAc,iCAAiC;AAC/C,cAAc,mCAAmC;AACjD,cAAc,oCAAoC;AAClD,cAAc,yBAAyB;AACvC,cAAc,wBAAwB;AACtC,cAAc,mCAAmC;AACjD,cAAc,yBAAyB;AACvC,cAAc,gCAAgC;AAC9C,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,uBAAuB;AACrC,cAAc,6BAA6B;AAC3C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,gCAAgC;AAC9C,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,cAAc,0BAA0B;AACxC,cAAc,wBAAwB;AACtC,cAAc,8BAA8B;AAC5C,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,+CAA+C;AAC7D,cAAc,kCAAkC;AAChD,cAAc,+BAA+B;AAC7C,cAAc,qCAAqC;AACnD,cAAc,0BAA0B;AACxC,cAAc,8BAA8B;
|
|
1
|
+
{"version":3,"names":["HMSSDK","HmsManager"],"sources":["index.ts"],"sourcesContent":["export * from './classes/HMSConfig';\nexport * from './classes/HMSUpdateListenerActions';\nexport * from './classes/HMSMessage';\nexport * from './classes/HMSVideoTrackSettings';\nexport * from './classes/HMSVideoTrack';\nexport * from './classes/HMSVideoSettings';\nexport * from './classes/HMSVideoCodec';\nexport * from './classes/HMSTrackSettings';\nexport * from './classes/HMSTrack';\nexport * from './classes/HMSTrackType';\nexport * from './classes/HMSTrackSource';\nexport * from './classes/HMSSubscribeSettings';\nexport * from './classes/HMSSimulcastSettings';\nexport * from './classes/HMSSimulcastLayerSettings';\nexport * from './classes/HMSSDK';\nexport * from './classes/HMSRoom';\nexport * from './classes/HMSRoleChangeRequest';\nexport * from './classes/HMSRole';\nexport * from './classes/HMSRemoteVideoTrack';\nexport * from './classes/HMSRemotePeer';\nexport * from './classes/HMSRemoteAudioTrack';\nexport * from './classes/HMSPublishSettings';\nexport * from './classes/HMSPermissions';\nexport * from './classes/HMSPeer';\nexport * from './classes/HMSLocalVideoTrack';\nexport * from './classes/HMSLocalPeer';\nexport * from './classes/HMSLocalAudioTrack';\nexport * from './classes/HMSHelper';\nexport * from './classes/HMSEncoder';\nexport * from './classes/HMSAudioTrackSettings';\nexport * from './classes/HMSAudioTrack';\nexport * from './classes/HMSAudioSettings';\nexport * from './classes/HMSAudioCodec';\nexport * from './classes/HMSPeerUpdate';\nexport * from './classes/HMSRoomUpdate';\nexport * from './classes/HMSTrackUpdate';\nexport * from './classes/HMSLogger';\nexport * from './classes/HMSLogLevel';\nexport * from './classes/HMSVideoViewMode';\nexport * from './classes/HMSChangeTrackStateRequest';\nexport * from './classes/HMSSpeaker';\nexport * from './classes/HMSCameraFacing';\nexport * from './classes/HMSException';\nexport * from './classes/HMSRtmpStreamingState';\nexport * from './classes/HMSServerRecordingState';\nexport * from './classes/HMSBrowserRecordingState';\nexport * from './classes/HMSRTMPConfig';\nexport * from './classes/HMSHLSConfig';\nexport * from './classes/HMSHLSMeetingURLVariant';\nexport * from './classes/HMSHLSVariant';\nexport * from './classes/HMSHLSStreamingState';\nexport * from './classes/HMSVideoResolution';\nexport * from './classes/HMSLocalAudioStats';\nexport * from './classes/HMSLocalVideoStats';\nexport * from './classes/HMSRTCStats';\nexport * from './classes/HMSRTCStatsReport';\nexport * from './classes/HMSRemoteAudioStats';\nexport * from './classes/HMSRemoteVideoStats';\nexport * from './classes/HMSHLSRecordingConfig';\nexport * from './classes/HMSHLSRecordingState';\nexport * from './classes/HMSMessageRecipient';\nexport * from './classes/HMSMessageRecipientType';\nexport * from './classes/HMSNetworkQuality';\nexport * from './classes/HMSRtmpVideoResolution';\nexport * from './classes/HMSAudioDevice';\nexport * from './classes/HMSAudioMode';\nexport * from './classes/HMSAudioMixingMode';\nexport * from './classes/HMSAudioNode';\nexport * from './classes/HMSMicNode';\nexport * from './classes/HMSScreenBroadcastAudioReceiverNode';\nexport * from './classes/HMSAudioFilePlayerNode';\nexport * from './classes/HMSAudioMixerSource';\nexport * from './classes/HMSTrackSettingsInitState';\nexport * from './classes/HMSLogSettings';\nexport * from './classes/HMSLogAlarmManager';\nexport * from './classes/HMSMessageType';\nexport * from './classes/HMSPIPListenerActions';\n\nimport { HMSSDK as HmsManager } from './classes/HMSSDK';\nexport default HmsManager;\n"],"mappings":"AAAA,cAAc,qBAAqB;AACnC,cAAc,oCAAoC;AAClD,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,kBAAkB;AAChC,cAAc,mBAAmB;AACjC,cAAc,gCAAgC;AAC9C,cAAc,mBAAmB;AACjC,cAAc,+BAA+B;AAC7C,cAAc,yBAAyB;AACvC,cAAc,+BAA+B;AAC7C,cAAc,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,mBAAmB;AACjC,cAAc,8BAA8B;AAC5C,cAAc,wBAAwB;AACtC,cAAc,8BAA8B;AAC5C,cAAc,qBAAqB;AACnC,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,0BAA0B;AACxC,cAAc,qBAAqB;AACnC,cAAc,uBAAuB;AACrC,cAAc,4BAA4B;AAC1C,cAAc,sCAAsC;AACpD,cAAc,sBAAsB;AACpC,cAAc,2BAA2B;AACzC,cAAc,wBAAwB;AACtC,cAAc,iCAAiC;AAC/C,cAAc,mCAAmC;AACjD,cAAc,oCAAoC;AAClD,cAAc,yBAAyB;AACvC,cAAc,wBAAwB;AACtC,cAAc,mCAAmC;AACjD,cAAc,yBAAyB;AACvC,cAAc,gCAAgC;AAC9C,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,uBAAuB;AACrC,cAAc,6BAA6B;AAC3C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,gCAAgC;AAC9C,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,cAAc,0BAA0B;AACxC,cAAc,wBAAwB;AACtC,cAAc,8BAA8B;AAC5C,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,+CAA+C;AAC7D,cAAc,kCAAkC;AAChD,cAAc,+BAA+B;AAC7C,cAAc,qCAAqC;AACnD,cAAc,0BAA0B;AACxC,cAAc,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,iCAAiC;AAE/C,SAASA,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;AACvD,eAAeA,UAAU"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { HMSMessageRecipient } from './HMSMessageRecipient';
|
|
2
|
+
import type { HMSMessageType } from './HMSMessageType';
|
|
2
3
|
import type { HMSPeer } from './HMSPeer';
|
|
3
4
|
export declare class HMSMessage {
|
|
4
5
|
message: string;
|
|
5
|
-
type:
|
|
6
|
+
type: HMSMessageType;
|
|
6
7
|
time: Date;
|
|
7
8
|
sender?: HMSPeer;
|
|
8
9
|
recipient: HMSMessageRecipient;
|
|
9
10
|
constructor(params: {
|
|
10
11
|
message: string;
|
|
11
|
-
type:
|
|
12
|
+
type: HMSMessageType;
|
|
12
13
|
time: Date;
|
|
13
14
|
sender?: HMSPeer;
|
|
14
15
|
recipient: HMSMessageRecipient;
|
|
@@ -4,6 +4,7 @@ import type { HMSServerRecordingState } from './HMSServerRecordingState';
|
|
|
4
4
|
import type { HMSBrowserRecordingState } from './HMSBrowserRecordingState';
|
|
5
5
|
import type { HMSHLSStreamingState } from './HMSHLSStreamingState';
|
|
6
6
|
import type { HMSHLSRecordingState } from './HMSHLSRecordingState';
|
|
7
|
+
import type { HMSLocalPeer } from './HMSLocalPeer';
|
|
7
8
|
export declare class HMSRoom {
|
|
8
9
|
id: string;
|
|
9
10
|
sessionId: string;
|
|
@@ -16,6 +17,7 @@ export declare class HMSRoom {
|
|
|
16
17
|
hlsStreamingState: HMSHLSStreamingState;
|
|
17
18
|
hlsRecordingState?: HMSHLSRecordingState;
|
|
18
19
|
peerCount: number;
|
|
20
|
+
localPeer: HMSLocalPeer;
|
|
19
21
|
constructor(params: {
|
|
20
22
|
id: string;
|
|
21
23
|
sessionId: string;
|
|
@@ -28,5 +30,6 @@ export declare class HMSRoom {
|
|
|
28
30
|
hlsStreamingState: HMSHLSStreamingState;
|
|
29
31
|
hlsRecordingState?: HMSHLSRecordingState;
|
|
30
32
|
peerCount: number;
|
|
33
|
+
localPeer: HMSLocalPeer;
|
|
31
34
|
});
|
|
32
35
|
}
|
|
@@ -18,6 +18,8 @@ import type { HMSAudioDevice } from './HMSAudioDevice';
|
|
|
18
18
|
import type { HMSAudioMode } from './HMSAudioMode';
|
|
19
19
|
import type { HMSAudioMixingMode } from './HMSAudioMixingMode';
|
|
20
20
|
import type { HMSLogSettings } from './HMSLogSettings';
|
|
21
|
+
import { HMSMessageType } from './HMSMessageType';
|
|
22
|
+
import { HMSPIPListenerActions } from './HMSPIPListenerActions';
|
|
21
23
|
interface HmsViewProps {
|
|
22
24
|
trackId: string;
|
|
23
25
|
style?: ViewStyle;
|
|
@@ -25,6 +27,12 @@ interface HmsViewProps {
|
|
|
25
27
|
scaleType?: HMSVideoViewMode;
|
|
26
28
|
setZOrderMediaOverlay?: boolean;
|
|
27
29
|
}
|
|
30
|
+
interface PIPConfig {
|
|
31
|
+
aspectRatio?: [number, number];
|
|
32
|
+
endButton?: boolean;
|
|
33
|
+
audioButton?: boolean;
|
|
34
|
+
videoButton?: boolean;
|
|
35
|
+
}
|
|
28
36
|
export declare class HMSSDK {
|
|
29
37
|
id: string;
|
|
30
38
|
private muteStatus;
|
|
@@ -48,6 +56,7 @@ export declare class HMSSDK {
|
|
|
48
56
|
private onRemoteAudioStatsDelegate?;
|
|
49
57
|
private onRemoteVideoStatsDelegate?;
|
|
50
58
|
private onAudioDeviceChangedDelegate?;
|
|
59
|
+
private onPIPRoomLeaveDelegate?;
|
|
51
60
|
private constructor();
|
|
52
61
|
/**
|
|
53
62
|
* - Returns an instance of [HMSSDK] {@link HMSSDK}
|
|
@@ -162,7 +171,7 @@ export declare class HMSSDK {
|
|
|
162
171
|
* @param {message: string} and @param {type: string}
|
|
163
172
|
* @memberof HMSSDK
|
|
164
173
|
*/
|
|
165
|
-
sendBroadcastMessage: (message: string, type?:
|
|
174
|
+
sendBroadcastMessage: (message: string, type?: HMSMessageType) => Promise<any>;
|
|
166
175
|
/**
|
|
167
176
|
* - sendGroupMessage sends a message to specific set of roles, whoever has any of those role in room
|
|
168
177
|
* will get the message in onMessage listener.
|
|
@@ -171,7 +180,7 @@ export declare class HMSSDK {
|
|
|
171
180
|
*
|
|
172
181
|
* @memberof HMSSDK
|
|
173
182
|
*/
|
|
174
|
-
sendGroupMessage: (message: string, roles: HMSRole[], type?:
|
|
183
|
+
sendGroupMessage: (message: string, roles: HMSRole[], type?: HMSMessageType) => Promise<any>;
|
|
175
184
|
/**
|
|
176
185
|
* - sendDirectMessage sends a private message to a single peer, only that peer will get the message
|
|
177
186
|
* in onMessage Listener.
|
|
@@ -180,7 +189,7 @@ export declare class HMSSDK {
|
|
|
180
189
|
*
|
|
181
190
|
* @memberof HMSSDK
|
|
182
191
|
*/
|
|
183
|
-
sendDirectMessage: (message: string, peer: HMSPeer, type?:
|
|
192
|
+
sendDirectMessage: (message: string, peer: HMSPeer, type?: HMSMessageType) => Promise<any>;
|
|
184
193
|
/**
|
|
185
194
|
* - changeMetadata changes a specific field in localPeer which is [metadata] it is a string that can
|
|
186
195
|
* be used for various functionalities like raiseHand, beRightBack and many more that explains the
|
|
@@ -233,6 +242,8 @@ export declare class HMSSDK {
|
|
|
233
242
|
*/
|
|
234
243
|
stopHLSStreaming: () => Promise<any>;
|
|
235
244
|
/**
|
|
245
|
+
* @deprecated This function has been deprecated in favor of #Function changeRoleOfPeer
|
|
246
|
+
*
|
|
236
247
|
* - This function can be used in a situation when we want to change role hence manipulate their
|
|
237
248
|
* access and rights in the current room, it takes the peer {@link HMSPeer} whom role we want to change,
|
|
238
249
|
* role {@link HMSRole} which will be the new role for that peer and weather to forcefully change
|
|
@@ -247,6 +258,35 @@ export declare class HMSSDK {
|
|
|
247
258
|
* @memberof HMSSDK
|
|
248
259
|
*/
|
|
249
260
|
changeRole: (peer: HMSPeer, role: HMSRole, force?: boolean) => Promise<any>;
|
|
261
|
+
/**
|
|
262
|
+
* - This function can be used in a situation when we want to change role hence manipulate their
|
|
263
|
+
* access and rights in the current room, it takes the peer {@link HMSPeer} whom role we want to change,
|
|
264
|
+
* role {@link HMSRole} which will be the new role for that peer and weather to forcefully change
|
|
265
|
+
* the role or ask the to accept the role change request using a boolean force.
|
|
266
|
+
*
|
|
267
|
+
* - if we change the role forcefully the peer's role will be updated without asking the peer
|
|
268
|
+
* otherwise the user will get the roleChangeRequest in roleChangeRequest listener.
|
|
269
|
+
* for more information on this checkout {@link onRoleChangeRequestListener}
|
|
270
|
+
*
|
|
271
|
+
* checkout {@link https://www.100ms.live/docs/react-native/v2/features/change-role} for more info
|
|
272
|
+
*
|
|
273
|
+
* @memberof HMSSDK
|
|
274
|
+
*/
|
|
275
|
+
changeRoleOfPeer: (peer: HMSPeer, role: HMSRole, force?: boolean) => Promise<any>;
|
|
276
|
+
/**
|
|
277
|
+
* - This function can be used in a situation when we want to change role of multiple peers by specifying their roles.
|
|
278
|
+
* Hence manipulate their access and rights in the current room.
|
|
279
|
+
* It takes the list of roles {@link HMSRole} whom role we want to change
|
|
280
|
+
* and role {@link HMSRole} which will be the new role for peers.
|
|
281
|
+
*
|
|
282
|
+
* - Note that role will be updated without asking the peers.
|
|
283
|
+
* Meaning, Peers will not get the roleChangeRequest in roleChangeRequest listener.
|
|
284
|
+
*
|
|
285
|
+
* checkout {@link https://www.100ms.live/docs/react-native/v2/features/change-role} for more info
|
|
286
|
+
*
|
|
287
|
+
* @memberof HMSSDK
|
|
288
|
+
*/
|
|
289
|
+
changeRoleOfPeersWithRoles: (ofRoles: HMSRole[], toRole: HMSRole) => Promise<any>;
|
|
250
290
|
/**
|
|
251
291
|
* - This function can be used to manipulate mute status of any track.
|
|
252
292
|
* - Targeted peer affected by this action will get a callback in onChangeTrackStateRequestListener.
|
|
@@ -503,6 +543,8 @@ export declare class HMSSDK {
|
|
|
503
543
|
* @memberof HMSSDK
|
|
504
544
|
*/
|
|
505
545
|
setAudioDeviceChangeListener: (callback: Function) => any;
|
|
546
|
+
setSessionMetaData: (sessionMetaData: string | null) => Promise<any>;
|
|
547
|
+
getSessionMetaData: () => Promise<any>;
|
|
506
548
|
/**
|
|
507
549
|
* - This is a prototype event listener that takes action and listens for updates related to that particular action
|
|
508
550
|
*
|
|
@@ -510,7 +552,7 @@ export declare class HMSSDK {
|
|
|
510
552
|
* @param {*} callback
|
|
511
553
|
* @memberof HMSSDK
|
|
512
554
|
*/
|
|
513
|
-
addEventListener: (action: HMSUpdateListenerActions, callback: any) => void;
|
|
555
|
+
addEventListener: (action: HMSUpdateListenerActions | HMSPIPListenerActions, callback: any) => void;
|
|
514
556
|
/**
|
|
515
557
|
* - This is a prototype event listener that takes action and listens for updates related to that particular action
|
|
516
558
|
*
|
|
@@ -518,7 +560,7 @@ export declare class HMSSDK {
|
|
|
518
560
|
* @param {*} callback
|
|
519
561
|
* @memberof HMSSDK
|
|
520
562
|
*/
|
|
521
|
-
removeEventListener: (action: HMSUpdateListenerActions) => void;
|
|
563
|
+
removeEventListener: (action: HMSUpdateListenerActions | HMSPIPListenerActions) => void;
|
|
522
564
|
/**
|
|
523
565
|
* removes all the listeners
|
|
524
566
|
*
|
|
@@ -562,5 +604,11 @@ export declare class HMSSDK {
|
|
|
562
604
|
device: string;
|
|
563
605
|
audioDevicesList: string[];
|
|
564
606
|
}) => void;
|
|
607
|
+
onPIPRoomLeaveListener: (data: {
|
|
608
|
+
id: string;
|
|
609
|
+
}) => void;
|
|
610
|
+
isPipModeSupported(): Promise<undefined | boolean>;
|
|
611
|
+
enablePipMode(data?: PIPConfig): Promise<undefined | boolean>;
|
|
612
|
+
setPipParams(data?: PIPConfig): Promise<undefined | boolean>;
|
|
565
613
|
}
|
|
566
614
|
export {};
|
|
@@ -73,5 +73,7 @@ export * from './classes/HMSAudioMixerSource';
|
|
|
73
73
|
export * from './classes/HMSTrackSettingsInitState';
|
|
74
74
|
export * from './classes/HMSLogSettings';
|
|
75
75
|
export * from './classes/HMSLogAlarmManager';
|
|
76
|
+
export * from './classes/HMSMessageType';
|
|
77
|
+
export * from './classes/HMSPIPListenerActions';
|
|
76
78
|
import { HMSSDK as HmsManager } from './classes/HMSSDK';
|
|
77
79
|
export default HmsManager;
|
package/package.json
CHANGED
package/react-native-hms.podspec
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require "json"
|
|
2
2
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
sdkVersions = JSON.parse(File.read(File.join(__dir__, "sdk-versions.json")))
|
|
4
5
|
|
|
5
6
|
Pod::Spec.new do |s|
|
|
6
7
|
s.name = "react-native-hms"
|
|
@@ -16,6 +17,6 @@ Pod::Spec.new do |s|
|
|
|
16
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
18
|
|
|
18
19
|
s.dependency "React-Core"
|
|
19
|
-
s.dependency "HMSSDK", "
|
|
20
|
-
s.dependency 'HMSBroadcastExtensionSDK', '0.0.
|
|
20
|
+
s.dependency "HMSSDK", sdkVersions["ios"]
|
|
21
|
+
s.dependency 'HMSBroadcastExtensionSDK', '0.0.5'
|
|
21
22
|
end
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { HMSMessageRecipient } from './HMSMessageRecipient';
|
|
2
|
+
import type { HMSMessageType } from './HMSMessageType';
|
|
2
3
|
import type { HMSPeer } from './HMSPeer';
|
|
3
4
|
|
|
4
5
|
export class HMSMessage {
|
|
5
6
|
// endpoint: string;
|
|
6
7
|
public message: string;
|
|
7
|
-
public type:
|
|
8
|
+
public type: HMSMessageType;
|
|
8
9
|
public time: Date;
|
|
9
10
|
public sender?: HMSPeer;
|
|
10
11
|
public recipient: HMSMessageRecipient;
|
|
11
12
|
|
|
12
13
|
constructor(params: {
|
|
13
14
|
message: string;
|
|
14
|
-
type:
|
|
15
|
+
type: HMSMessageType;
|
|
15
16
|
time: Date;
|
|
16
17
|
sender?: HMSPeer;
|
|
17
18
|
recipient: HMSMessageRecipient;
|
package/src/classes/HMSRoom.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { HMSServerRecordingState } from './HMSServerRecordingState';
|
|
|
4
4
|
import type { HMSBrowserRecordingState } from './HMSBrowserRecordingState';
|
|
5
5
|
import type { HMSHLSStreamingState } from './HMSHLSStreamingState';
|
|
6
6
|
import type { HMSHLSRecordingState } from './HMSHLSRecordingState';
|
|
7
|
+
import type { HMSLocalPeer } from './HMSLocalPeer';
|
|
7
8
|
|
|
8
9
|
export class HMSRoom {
|
|
9
10
|
id: string;
|
|
@@ -17,6 +18,7 @@ export class HMSRoom {
|
|
|
17
18
|
hlsStreamingState: HMSHLSStreamingState;
|
|
18
19
|
hlsRecordingState?: HMSHLSRecordingState;
|
|
19
20
|
peerCount: number;
|
|
21
|
+
localPeer: HMSLocalPeer;
|
|
20
22
|
|
|
21
23
|
constructor(params: {
|
|
22
24
|
id: string;
|
|
@@ -30,6 +32,7 @@ export class HMSRoom {
|
|
|
30
32
|
hlsStreamingState: HMSHLSStreamingState;
|
|
31
33
|
hlsRecordingState?: HMSHLSRecordingState;
|
|
32
34
|
peerCount: number;
|
|
35
|
+
localPeer: HMSLocalPeer;
|
|
33
36
|
}) {
|
|
34
37
|
this.id = params.id;
|
|
35
38
|
this.sessionId = params.sessionId;
|
|
@@ -42,5 +45,6 @@ export class HMSRoom {
|
|
|
42
45
|
this.hlsStreamingState = params.hlsStreamingState;
|
|
43
46
|
this.hlsRecordingState = params.hlsRecordingState;
|
|
44
47
|
this.peerCount = params.peerCount;
|
|
48
|
+
this.localPeer = params.localPeer;
|
|
45
49
|
}
|
|
46
50
|
}
|