@100mslive/react-native-hms 0.9.94 → 1.0.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/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 +1 -1
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +161 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +38 -0
- package/ios/HMSDecoder.swift +7 -2
- package/ios/HMSHelper.swift +4 -4
- package/ios/HMSManager.m +2 -0
- package/ios/HMSManager.swift +14 -0
- package/ios/HMSRNSDK.swift +24 -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/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 +39 -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 +12 -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/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 +39 -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 +1 -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/HMSRoom.d.ts +3 -0
- package/lib/typescript/classes/HMSSDK.d.ts +12 -3
- package/lib/typescript/index.d.ts +1 -0
- package/package.json +1 -1
- package/react-native-hms.podspec +2 -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/HMSRoom.ts +4 -0
- package/src/classes/HMSSDK.tsx +43 -3
- package/src/classes/HmsView.tsx +15 -1
- package/src/index.ts +1 -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 +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":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAC/E,SACEC,cAAc,EACdC,sBAAsB,EACtBC,UAAU,EACVC,SAAS,QAEJ,cAAc;AACrB,SAASC,gBAAgB,QAAQ,oBAAoB;AAerD,MAAMC,OAAO,GAAGJ,sBAAsB,CAAe,SAAS,CAAC;AAC/D,IAAIK,cAAc,GAAG,CAAC;AACtB,IAAIC,WAAW,GAAG,IAAIC,GAAG,EAAE;AAW3B,OAAO,MAAMC,gBAAgB,gBAAGd,KAAK,CAACe,UAAU,CAC9C,CAACC,KAAK,EAAEC,GAAG,KAAK;EACd,MAAM;IACJC,OAAO;IACPC,KAAK,GAAGC,eAAe,CAACC,WAAW;IACnCC,EAAE,GAAG,OAAO;IACZC,MAAM,GAAG,KAAK;IACdC,qBAAqB,GAAG,KAAK;IAC7BC,SAAS,GAAGhB,gBAAgB,CAACiB;EAC/B,CAAC,GAAGV,KAAK;EAET,MAAMW,UAAe,GAAGvB,MAAM,EAAE;EAChC,MAAMwB,QAAQ,GAAGxB,MAAM,CAAwB,IAAI,CAAC;EACpD,MAAM,CAACyB,OAAO,EAAEC,UAAU,CAAC,GAAG7B,QAAQ,CAAC,CAAC,CAAC;EACzC,MAAM8B,IAAI,GAAG;IACXb,OAAO;IACPI,EAAE;IACFC;EACF,CAAC;EAEDrB,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACX,IAAI0B,QAAQ,CAACI,OAAO,EAAE;QACpBC,YAAY,CAACL,QAAQ,CAACI,OAAO,CAAC;MAChC;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,MAAME,QAAQ,GAAIC,MAAW,IAAK;IAChCC,OAAO,CAACC,GAAG,CAACF,MAAM,EAAE,QAAQ,CAAC;IAC7B,IAAIP,QAAQ,CAACI,OAAO,EAAE;MACpBC,YAAY,CAACL,QAAQ,CAACI,OAAO,CAAC;IAChC;IAEAJ,QAAQ,CAACI,OAAO,GAAGM,UAAU,CAAC,MAAM;MAClCR,UAAU,CAAC,CAAC,CAAC;MACbF,QAAQ,CAACI,OAAO,GAAG,IAAI;IACzB,CAAC,EAAE,IAAI,CAAC;EACV,CAAC;EAED,MAAMO,eAAe,GAAIC,KAExB,IAAK;IACJ;IACA,IAAI;MAAEC,SAAS;MAAEC,MAAM;MAAEC;IAAM,CAAC,GAAGH,KAAK,CAACI,WAAW;IACpD;IACA,IAAIC,OAAO,GAAGjC,WAAW,CAACkC,GAAG,CAACL,SAAS,CAAC;IACxC,IAAIC,MAAM,EAAE;MACV;MACAG,OAAO,CAACE,OAAO,CAACL,MAAM,CAAC;IACzB,CAAC,MAAM;MACL;MACAG,OAAO,CAACG,MAAM,CAACL,KAAK,CAAC;IACvB;IACA;IACA/B,WAAW,CAACqC,MAAM,CAACR,SAAS,CAAC;EAC/B,CAAC;EAED,MAAMS,OAAO,GAAG,YAAY;IAC1B,IAAIT,SAAS,GAAG9B,cAAc,EAAE;IAChC,IAAIwC,UAAU,GAAGvC,WAAW;;IAE5B;IACA;IACA,IAAIiC,OAAO,GAAG,IAAIO,OAAO,CAAC,UAAUL,OAAO,EAAEC,MAAM,EAAE;MACnDG,UAAU,CAACE,GAAG,CAACZ,SAAS,EAAE;QAAEM,OAAO;QAAEC;MAAO,CAAC,CAAC;IAChD,CAAC,CAAC;IACF,MAAMM,iBAAiB,GAAG9C,SAAS,CAAC+C,oBAAoB,CAAC,SAAS,CAAC;IACnE/C,SAAS,CAACgD,0BAA0B,CAClCnD,cAAc,CAACsB,UAAU,CAACK,OAAO,CAAC,EAClCsB,iBAAiB,CAACG,QAAQ,CAACP,OAAO,EAClC,CAACT,SAAS,CAAC,CACZ;IACD,OAAOI,OAAO;EAChB,CAAC;EAED1C,mBAAmB,CAACc,GAAG,EAAE,MAAM;IAC7B,OAAO;MACLiC;IACF,CAAC;EACH,CAAC,CAAC;EAEFhD,SAAS,CAAC,MAAM;IACd4B,UAAU,CAAC,CAAC,CAAC;EACf,CAAC,EAAE,CAACD,OAAO,CAAC,CAAC;EAEb,oBACE,oBAAC,OAAO;IACN,GAAG,EAAEF,UAAW;IAChB,QAAQ,EAAEO,QAAS;IACnB,IAAI,EAAEH,IAAK;IACX,KAAK,EAAEF,OAAO,KAAK,CAAC,GAAGV,KAAK,GAAGC,eAAe,CAACC,WAAY;IAC3D,SAAS,EAAEI,SAAU;IACrB,qBAAqB,EAAED,qBAAsB;IAC7C,cAAc,EAAEe;EAAgB,EAChC;AAEN,CAAC,CACF;AAED,MAAMnB,eAAe,GAAGb,UAAU,CAACmD,MAAM,CAAC;EACxCrC,WAAW,EAAE;IACXsC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC"}
|
package/lib/module/index.js
CHANGED
|
@@ -73,6 +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';
|
|
76
77
|
import { HMSSDK as HmsManager } from './classes/HMSSDK';
|
|
77
78
|
export default HmsManager;
|
|
78
79
|
//# 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';\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;AAExC,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,7 @@ 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';
|
|
21
22
|
interface HmsViewProps {
|
|
22
23
|
trackId: string;
|
|
23
24
|
style?: ViewStyle;
|
|
@@ -25,6 +26,9 @@ interface HmsViewProps {
|
|
|
25
26
|
scaleType?: HMSVideoViewMode;
|
|
26
27
|
setZOrderMediaOverlay?: boolean;
|
|
27
28
|
}
|
|
29
|
+
interface PIPConfig {
|
|
30
|
+
aspectRatio?: [number, number];
|
|
31
|
+
}
|
|
28
32
|
export declare class HMSSDK {
|
|
29
33
|
id: string;
|
|
30
34
|
private muteStatus;
|
|
@@ -162,7 +166,7 @@ export declare class HMSSDK {
|
|
|
162
166
|
* @param {message: string} and @param {type: string}
|
|
163
167
|
* @memberof HMSSDK
|
|
164
168
|
*/
|
|
165
|
-
sendBroadcastMessage: (message: string, type?:
|
|
169
|
+
sendBroadcastMessage: (message: string, type?: HMSMessageType) => Promise<any>;
|
|
166
170
|
/**
|
|
167
171
|
* - sendGroupMessage sends a message to specific set of roles, whoever has any of those role in room
|
|
168
172
|
* will get the message in onMessage listener.
|
|
@@ -171,7 +175,7 @@ export declare class HMSSDK {
|
|
|
171
175
|
*
|
|
172
176
|
* @memberof HMSSDK
|
|
173
177
|
*/
|
|
174
|
-
sendGroupMessage: (message: string, roles: HMSRole[], type?:
|
|
178
|
+
sendGroupMessage: (message: string, roles: HMSRole[], type?: HMSMessageType) => Promise<any>;
|
|
175
179
|
/**
|
|
176
180
|
* - sendDirectMessage sends a private message to a single peer, only that peer will get the message
|
|
177
181
|
* in onMessage Listener.
|
|
@@ -180,7 +184,7 @@ export declare class HMSSDK {
|
|
|
180
184
|
*
|
|
181
185
|
* @memberof HMSSDK
|
|
182
186
|
*/
|
|
183
|
-
sendDirectMessage: (message: string, peer: HMSPeer, type?:
|
|
187
|
+
sendDirectMessage: (message: string, peer: HMSPeer, type?: HMSMessageType) => Promise<any>;
|
|
184
188
|
/**
|
|
185
189
|
* - changeMetadata changes a specific field in localPeer which is [metadata] it is a string that can
|
|
186
190
|
* be used for various functionalities like raiseHand, beRightBack and many more that explains the
|
|
@@ -503,6 +507,8 @@ export declare class HMSSDK {
|
|
|
503
507
|
* @memberof HMSSDK
|
|
504
508
|
*/
|
|
505
509
|
setAudioDeviceChangeListener: (callback: Function) => any;
|
|
510
|
+
setSessionMetaData: (sessionMetaData: string | null) => Promise<any>;
|
|
511
|
+
getSessionMetaData: () => Promise<any>;
|
|
506
512
|
/**
|
|
507
513
|
* - This is a prototype event listener that takes action and listens for updates related to that particular action
|
|
508
514
|
*
|
|
@@ -562,5 +568,8 @@ export declare class HMSSDK {
|
|
|
562
568
|
device: string;
|
|
563
569
|
audioDevicesList: string[];
|
|
564
570
|
}) => void;
|
|
571
|
+
isPipModeSupported(): Promise<undefined | boolean>;
|
|
572
|
+
enablePipMode(data?: PIPConfig): Promise<undefined | boolean>;
|
|
573
|
+
setPipParams(data?: PIPConfig): Promise<undefined | boolean>;
|
|
565
574
|
}
|
|
566
575
|
export {};
|
|
@@ -73,5 +73,6 @@ 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';
|
|
76
77
|
import { HMSSDK as HmsManager } from './classes/HMSSDK';
|
|
77
78
|
export default HmsManager;
|
package/package.json
CHANGED
package/react-native-hms.podspec
CHANGED
|
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
17
|
|
|
18
18
|
s.dependency "React-Core"
|
|
19
|
-
s.dependency "HMSSDK", "0.4.
|
|
20
|
-
s.dependency 'HMSBroadcastExtensionSDK', '0.0.
|
|
19
|
+
s.dependency "HMSSDK", "0.4.7"
|
|
20
|
+
s.dependency 'HMSBroadcastExtensionSDK', '0.0.5'
|
|
21
21
|
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
|
}
|
package/src/classes/HMSSDK.tsx
CHANGED
|
@@ -34,6 +34,7 @@ import type { HMSAudioDevice } from './HMSAudioDevice';
|
|
|
34
34
|
import type { HMSAudioMode } from './HMSAudioMode';
|
|
35
35
|
import type { HMSAudioMixingMode } from './HMSAudioMixingMode';
|
|
36
36
|
import type { HMSLogSettings } from './HMSLogSettings';
|
|
37
|
+
import { HMSMessageType } from './HMSMessageType';
|
|
37
38
|
|
|
38
39
|
interface HmsViewProps {
|
|
39
40
|
trackId: string;
|
|
@@ -43,6 +44,10 @@ interface HmsViewProps {
|
|
|
43
44
|
setZOrderMediaOverlay?: boolean;
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
interface PIPConfig {
|
|
48
|
+
aspectRatio?: [number, number];
|
|
49
|
+
}
|
|
50
|
+
|
|
46
51
|
const {
|
|
47
52
|
/**
|
|
48
53
|
* @ignore
|
|
@@ -464,7 +469,10 @@ export class HMSSDK {
|
|
|
464
469
|
* @param {message: string} and @param {type: string}
|
|
465
470
|
* @memberof HMSSDK
|
|
466
471
|
*/
|
|
467
|
-
sendBroadcastMessage = async (
|
|
472
|
+
sendBroadcastMessage = async (
|
|
473
|
+
message: string,
|
|
474
|
+
type: HMSMessageType = HMSMessageType.CHAT
|
|
475
|
+
) => {
|
|
468
476
|
logger?.verbose('#Function sendBroadcastMessage', {
|
|
469
477
|
message,
|
|
470
478
|
type: type || null,
|
|
@@ -488,7 +496,7 @@ export class HMSSDK {
|
|
|
488
496
|
sendGroupMessage = async (
|
|
489
497
|
message: string,
|
|
490
498
|
roles: HMSRole[],
|
|
491
|
-
type:
|
|
499
|
+
type: HMSMessageType = HMSMessageType.CHAT
|
|
492
500
|
) => {
|
|
493
501
|
logger?.verbose('#Function sendGroupMessage', {
|
|
494
502
|
message,
|
|
@@ -515,7 +523,7 @@ export class HMSSDK {
|
|
|
515
523
|
sendDirectMessage = async (
|
|
516
524
|
message: string,
|
|
517
525
|
peer: HMSPeer,
|
|
518
|
-
type:
|
|
526
|
+
type: HMSMessageType = HMSMessageType.CHAT
|
|
519
527
|
) => {
|
|
520
528
|
logger?.verbose('#Function sendDirectMessage', {
|
|
521
529
|
message,
|
|
@@ -1188,6 +1196,24 @@ export class HMSSDK {
|
|
|
1188
1196
|
}
|
|
1189
1197
|
};
|
|
1190
1198
|
|
|
1199
|
+
setSessionMetaData = async (sessionMetaData: string | null) => {
|
|
1200
|
+
logger?.verbose('#Function setSessionMetaData', {
|
|
1201
|
+
id: this.id,
|
|
1202
|
+
sessionMetaData,
|
|
1203
|
+
});
|
|
1204
|
+
return await HMSManager.setSessionMetaData({
|
|
1205
|
+
id: this.id,
|
|
1206
|
+
sessionMetaData,
|
|
1207
|
+
});
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
getSessionMetaData = async () => {
|
|
1211
|
+
logger?.verbose('#Function getSessionMetaData', {
|
|
1212
|
+
id: this.id,
|
|
1213
|
+
});
|
|
1214
|
+
return await HMSManager.getSessionMetaData({ id: this.id });
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1191
1217
|
/**
|
|
1192
1218
|
* - This is a prototype event listener that takes action and listens for updates related to that particular action
|
|
1193
1219
|
*
|
|
@@ -1693,4 +1719,18 @@ export class HMSSDK {
|
|
|
1693
1719
|
});
|
|
1694
1720
|
}
|
|
1695
1721
|
};
|
|
1722
|
+
|
|
1723
|
+
async isPipModeSupported(): Promise<undefined | boolean> {
|
|
1724
|
+
return HMSManager.handlePipActions('isPipModeSupported', null);
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
async enablePipMode(data?: PIPConfig): Promise<undefined | boolean> {
|
|
1728
|
+
const config = { aspectRatio: [16, 9], ...(data || {}) };
|
|
1729
|
+
|
|
1730
|
+
return HMSManager.handlePipActions('enablePipMode', config);
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
async setPipParams(data?: PIPConfig): Promise<undefined | boolean> {
|
|
1734
|
+
return HMSManager.handlePipActions('setPictureInPictureParams', data || null);
|
|
1735
|
+
}
|
|
1696
1736
|
}
|
package/src/classes/HmsView.tsx
CHANGED
|
@@ -46,6 +46,7 @@ export const HmsViewComponent = React.forwardRef<any, HmsComponentProps>(
|
|
|
46
46
|
} = props;
|
|
47
47
|
|
|
48
48
|
const hmsViewRef: any = useRef();
|
|
49
|
+
const timerRef = useRef<null | NodeJS.Timeout>(null);
|
|
49
50
|
const [tempVal, setTempVal] = useState(0);
|
|
50
51
|
const data = {
|
|
51
52
|
trackId,
|
|
@@ -53,10 +54,23 @@ export const HmsViewComponent = React.forwardRef<any, HmsComponentProps>(
|
|
|
53
54
|
mirror,
|
|
54
55
|
};
|
|
55
56
|
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
return () => {
|
|
59
|
+
if (timerRef.current) {
|
|
60
|
+
clearTimeout(timerRef.current);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}, []);
|
|
64
|
+
|
|
56
65
|
const onChange = (values: any) => {
|
|
57
66
|
console.log(values, 'values');
|
|
58
|
-
|
|
67
|
+
if (timerRef.current) {
|
|
68
|
+
clearTimeout(timerRef.current);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
timerRef.current = setTimeout(() => {
|
|
59
72
|
setTempVal(1);
|
|
73
|
+
timerRef.current = null;
|
|
60
74
|
}, 2000);
|
|
61
75
|
};
|
|
62
76
|
|
package/src/index.ts
CHANGED
|
@@ -73,6 +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';
|
|
76
77
|
|
|
77
78
|
import { HMSSDK as HmsManager } from './classes/HMSSDK';
|
|
78
79
|
export default HmsManager;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: com.facebook.fbjni:fbjni-java-only:0.2.2">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.facebook.fbjni/fbjni-java-only/0.2.2/de5152e6b7ce18dd242be23994e702309e66e7da/fbjni-java-only-0.2.2.jar!/" />
|
|
5
|
-
</CLASSES>
|
|
6
|
-
<JAVADOC>
|
|
7
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.facebook.fbjni/fbjni-java-only/0.2.2/3ae63793d5de5510511fc9b06e9b0a962b0c0f1b/fbjni-java-only-0.2.2-javadoc.jar!/" />
|
|
8
|
-
</JAVADOC>
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.facebook.fbjni/fbjni-java-only/0.2.2/151550a3db34fafa434c02050086e78fa9c0b44f/fbjni-java-only-0.2.2-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_70_3_debug_aar.xml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: com.facebook.react:react-native:0.70.3:debug@aar">
|
|
3
|
-
<ANNOTATIONS>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-3/573f2f2b52609e6becf85013f675e3c1/transformed/react-native-0.70.3-debug/annotations.zip!/" />
|
|
5
|
-
</ANNOTATIONS>
|
|
6
|
-
<CLASSES>
|
|
7
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-3/573f2f2b52609e6becf85013f675e3c1/transformed/react-native-0.70.3-debug/jars/classes.jar!/" />
|
|
8
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-3/573f2f2b52609e6becf85013f675e3c1/transformed/react-native-0.70.3-debug/res" />
|
|
9
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-3/573f2f2b52609e6becf85013f675e3c1/transformed/react-native-0.70.3-debug/AndroidManifest.xml" />
|
|
10
|
-
</CLASSES>
|
|
11
|
-
<JAVADOC />
|
|
12
|
-
<SOURCES />
|
|
13
|
-
</library>
|
|
14
|
-
</component>
|