@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
|
import { HMSPeer } from './HMSPeer';
|
|
3
5
|
import { HMSRemoteAudioTrack } from './HMSRemoteAudioTrack';
|
|
4
6
|
import { HMSRemoteVideoTrack } from './HMSRemoteVideoTrack';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSPeer","HMSRemoteAudioTrack","HMSRemoteVideoTrack","HMSRemotePeer","constructor","params","remoteAudio","remoteVideo","isLocal","remoteAudioTrackData","remoteVideoTrackData"],"sources":["HMSRemotePeer.ts"],"sourcesContent":["import type { HMSAudioTrack } from './HMSAudioTrack';\nimport type { HMSNetworkQuality } from './HMSNetworkQuality';\nimport { HMSPeer } from './HMSPeer';\nimport { HMSRemoteAudioTrack } from './HMSRemoteAudioTrack';\nimport { HMSRemoteVideoTrack } from './HMSRemoteVideoTrack';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\n\nexport class HMSRemotePeer extends HMSPeer {\n private remoteAudio?: HMSRemoteAudioTrack;\n private remoteVideo?: HMSRemoteVideoTrack;\n\n remoteAudioTrack = () => {\n return this.remoteAudio;\n };\n\n remoteVideoTrack = () => {\n return this.remoteVideo;\n };\n\n constructor(params: {\n peerID: string;\n name: string;\n isLocal?: boolean;\n customerUserID?: string;\n customerDescription?: string;\n metadata?: string;\n audioTrack?: HMSAudioTrack;\n videoTrack?: HMSVideoTrack;\n role?: HMSRole;\n networkQuality?: HMSNetworkQuality;\n auxiliaryTracks?: HMSTrack[];\n remoteAudioTrackData?: {\n trackId: string;\n source?: number | string;\n isMute?: boolean;\n trackDescription?: string;\n playbackAllowed?: boolean;\n id: string;\n };\n remoteVideoTrackData?: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n layer?: any;\n playbackAllowed?: boolean;\n id: string;\n };\n }) {\n super(params);\n this.isLocal = false;\n\n if (params.remoteAudioTrackData) {\n this.remoteAudio = new HMSRemoteAudioTrack(params.remoteAudioTrackData);\n }\n\n if (params.remoteVideoTrackData) {\n this.remoteVideo = new HMSRemoteVideoTrack(params.remoteVideoTrackData);\n }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSPeer","HMSRemoteAudioTrack","HMSRemoteVideoTrack","HMSRemotePeer","constructor","params","remoteAudio","remoteVideo","isLocal","remoteAudioTrackData","remoteVideoTrackData"],"sources":["HMSRemotePeer.ts"],"sourcesContent":["import type { HMSAudioTrack } from './HMSAudioTrack';\nimport type { HMSNetworkQuality } from './HMSNetworkQuality';\nimport { HMSPeer } from './HMSPeer';\nimport { HMSRemoteAudioTrack } from './HMSRemoteAudioTrack';\nimport { HMSRemoteVideoTrack } from './HMSRemoteVideoTrack';\nimport type { HMSRole } from './HMSRole';\nimport type { HMSTrack } from './HMSTrack';\nimport type { HMSVideoTrack } from './HMSVideoTrack';\n\nexport class HMSRemotePeer extends HMSPeer {\n private remoteAudio?: HMSRemoteAudioTrack;\n private remoteVideo?: HMSRemoteVideoTrack;\n\n remoteAudioTrack = () => {\n return this.remoteAudio;\n };\n\n remoteVideoTrack = () => {\n return this.remoteVideo;\n };\n\n constructor(params: {\n peerID: string;\n name: string;\n isLocal?: boolean;\n customerUserID?: string;\n customerDescription?: string;\n metadata?: string;\n audioTrack?: HMSAudioTrack;\n videoTrack?: HMSVideoTrack;\n role?: HMSRole;\n networkQuality?: HMSNetworkQuality;\n auxiliaryTracks?: HMSTrack[];\n remoteAudioTrackData?: {\n trackId: string;\n source?: number | string;\n isMute?: boolean;\n trackDescription?: string;\n playbackAllowed?: boolean;\n id: string;\n };\n remoteVideoTrackData?: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n layer?: any;\n playbackAllowed?: boolean;\n id: string;\n };\n }) {\n super(params);\n this.isLocal = false;\n\n if (params.remoteAudioTrackData) {\n this.remoteAudio = new HMSRemoteAudioTrack(params.remoteAudioTrackData);\n }\n\n if (params.remoteVideoTrackData) {\n this.remoteVideo = new HMSRemoteVideoTrack(params.remoteVideoTrackData);\n }\n }\n}\n"],"mappings":";;;AAEA,SAASA,OAAO,QAAQ,WAAW;AACnC,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,mBAAmB,QAAQ,uBAAuB;AAK3D,OAAO,MAAMC,aAAa,SAASH,OAAO,CAAC;EAYzCI,WAAW,CAACC,MA6BX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAAC;IAAA;IAAA,0CAtCG,MAAM;MACvB,OAAO,IAAI,CAACC,WAAW;IACzB,CAAC;IAAA,0CAEkB,MAAM;MACvB,OAAO,IAAI,CAACC,WAAW;IACzB,CAAC;IAiCC,IAAI,CAACC,OAAO,GAAG,KAAK;IAEpB,IAAIH,MAAM,CAACI,oBAAoB,EAAE;MAC/B,IAAI,CAACH,WAAW,GAAG,IAAIL,mBAAmB,CAACI,MAAM,CAACI,oBAAoB,CAAC;IACzE;IAEA,IAAIJ,MAAM,CAACK,oBAAoB,EAAE;MAC/B,IAAI,CAACH,WAAW,GAAG,IAAIL,mBAAmB,CAACG,MAAM,CAACK,oBAAoB,CAAC;IACzE;EACF;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 HMSRemoteVideoStats {
|
|
3
5
|
constructor(params) {
|
|
4
6
|
_defineProperty(this, "bitrate", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRemoteVideoStats","constructor","params","bitrate","packetsReceived","packetsLost","bytesReceived","jitter","resolution","frameRate"],"sources":["HMSRemoteVideoStats.ts"],"sourcesContent":["import type { HMSVideoResolution } from './HMSVideoResolution';\n\nexport class HMSRemoteVideoStats {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n resolution?: HMSVideoResolution;\n frameRate?: number;\n\n constructor(params: {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n resolution?: HMSVideoResolution;\n frameRate?: number;\n }) {\n this.bitrate = params.bitrate;\n this.packetsReceived = params.packetsReceived;\n this.packetsLost = params.packetsLost;\n this.bytesReceived = params.bytesReceived;\n this.jitter = params.jitter;\n this.resolution = params.resolution;\n this.frameRate = params.frameRate;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRemoteVideoStats","constructor","params","bitrate","packetsReceived","packetsLost","bytesReceived","jitter","resolution","frameRate"],"sources":["HMSRemoteVideoStats.ts"],"sourcesContent":["import type { HMSVideoResolution } from './HMSVideoResolution';\n\nexport class HMSRemoteVideoStats {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n resolution?: HMSVideoResolution;\n frameRate?: number;\n\n constructor(params: {\n bitrate?: number;\n packetsReceived?: number;\n packetsLost?: number;\n bytesReceived?: number;\n jitter?: number;\n resolution?: HMSVideoResolution;\n frameRate?: number;\n }) {\n this.bitrate = params.bitrate;\n this.packetsReceived = params.packetsReceived;\n this.packetsLost = params.packetsLost;\n this.bytesReceived = params.bytesReceived;\n this.jitter = params.jitter;\n this.resolution = params.resolution;\n this.frameRate = params.frameRate;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,mBAAmB,CAAC;EAS/BC,WAAW,CAACC,MAQX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,eAAe,GAAGF,MAAM,CAACE,eAAe;IAC7C,IAAI,CAACC,WAAW,GAAGH,MAAM,CAACG,WAAW;IACrC,IAAI,CAACC,aAAa,GAAGJ,MAAM,CAACI,aAAa;IACzC,IAAI,CAACC,MAAM,GAAGL,MAAM,CAACK,MAAM;IAC3B,IAAI,CAACC,UAAU,GAAGN,MAAM,CAACM,UAAU;IACnC,IAAI,CAACC,SAAS,GAAGP,MAAM,CAACO,SAAS;EACnC;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 { NativeModules } from 'react-native';
|
|
3
5
|
import { getLogger } from './HMSLogger';
|
|
4
6
|
import { HMSVideoTrack } from './HMSVideoTrack';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","getLogger","HMSVideoTrack","HMSManager","HMSRemoteVideoTrack","setPlaybackAllowed","playbackAllowed","logger","verbose","trackId","id","source","type","constructor","params","val","isPlaybackAllowed","e","layer"],"sources":["HMSRemoteVideoTrack.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { getLogger } from './HMSLogger';\nimport { HMSVideoTrack } from './HMSVideoTrack';\nimport type { HMSTrackType } from './HMSTrackType';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSRemoteVideoTrack extends HMSVideoTrack {\n layer?: any; //TODO: layer to be made HMSSimulcastLayer type\n\n /**\n * Switches Video of remote user on/off depending upon the value of playbackAllowed\n *\n * @param {boolean} playbackAllowed\n * @memberof HMSRemoteVideoTrack\n */\n setPlaybackAllowed(playbackAllowed: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setPlaybackAllowed', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n playbackAllowed,\n });\n HMSManager.setPlaybackAllowed({\n id: this.id,\n trackId: this.trackId,\n playbackAllowed,\n });\n }\n\n isPlaybackAllowed = async () => {\n try {\n const logger = getLogger();\n logger?.verbose('#Function isPlaybackAllowed', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n });\n const val = await HMSManager.isPlaybackAllowed({\n id: this.id,\n trackId: this.trackId,\n });\n return val;\n } catch (e) {\n return true;\n }\n };\n\n constructor(params: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n layer?: any;\n playbackAllowed?: boolean;\n id: string;\n type?: HMSTrackType;\n }) {\n super(params);\n this.layer = params.layer;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["NativeModules","getLogger","HMSVideoTrack","HMSManager","HMSRemoteVideoTrack","setPlaybackAllowed","playbackAllowed","logger","verbose","trackId","id","source","type","constructor","params","val","isPlaybackAllowed","e","layer"],"sources":["HMSRemoteVideoTrack.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { getLogger } from './HMSLogger';\nimport { HMSVideoTrack } from './HMSVideoTrack';\nimport type { HMSTrackType } from './HMSTrackType';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSRemoteVideoTrack extends HMSVideoTrack {\n layer?: any; //TODO: layer to be made HMSSimulcastLayer type\n\n /**\n * Switches Video of remote user on/off depending upon the value of playbackAllowed\n *\n * @param {boolean} playbackAllowed\n * @memberof HMSRemoteVideoTrack\n */\n setPlaybackAllowed(playbackAllowed: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setPlaybackAllowed', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n playbackAllowed,\n });\n HMSManager.setPlaybackAllowed({\n id: this.id,\n trackId: this.trackId,\n playbackAllowed,\n });\n }\n\n isPlaybackAllowed = async () => {\n try {\n const logger = getLogger();\n logger?.verbose('#Function isPlaybackAllowed', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n });\n const val = await HMSManager.isPlaybackAllowed({\n id: this.id,\n trackId: this.trackId,\n });\n return val;\n } catch (e) {\n return true;\n }\n };\n\n constructor(params: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n layer?: any;\n playbackAllowed?: boolean;\n id: string;\n type?: HMSTrackType;\n }) {\n super(params);\n this.layer = params.layer;\n }\n}\n"],"mappings":";;;AAAA,SAASA,aAAa,QAAQ,cAAc;AAC5C,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,aAAa,QAAQ,iBAAiB;AAG/C,MAAM;EACJ;AACF;AACA;EACEC;AACF,CAAC,GAAGH,aAAa;AAEjB,OAAO,MAAMI,mBAAmB,SAASF,aAAa,CAAC;EACxC;;EAEb;AACF;AACA;AACA;AACA;AACA;EACEG,kBAAkB,CAACC,eAAwB,EAAE;IAC3C,MAAMC,MAAM,GAAGN,SAAS,EAAE;IAC1BM,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEC,OAAO,CAAC,8BAA8B,EAAE;MAC9CC,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBC,EAAE,EAAE,IAAI,CAACA,EAAE;MACXC,MAAM,EAAE,IAAI,CAACA,MAAM;MACnBC,IAAI,EAAE,IAAI,CAACA,IAAI;MACfN;IACF,CAAC,CAAC;IACFH,UAAU,CAACE,kBAAkB,CAAC;MAC5BK,EAAE,EAAE,IAAI,CAACA,EAAE;MACXD,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBH;IACF,CAAC,CAAC;EACJ;EAqBAO,WAAW,CAACC,MASX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAAC;IAAA,2CA7BI,YAAY;MAC9B,IAAI;QACF,MAAMP,MAAM,GAAGN,SAAS,EAAE;QAC1BM,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEC,OAAO,CAAC,6BAA6B,EAAE;UAC7CC,OAAO,EAAE,IAAI,CAACA,OAAO;UACrBC,EAAE,EAAE,IAAI,CAACA,EAAE;UACXC,MAAM,EAAE,IAAI,CAACA,MAAM;UACnBC,IAAI,EAAE,IAAI,CAACA;QACb,CAAC,CAAC;QACF,MAAMG,GAAG,GAAG,MAAMZ,UAAU,CAACa,iBAAiB,CAAC;UAC7CN,EAAE,EAAE,IAAI,CAACA,EAAE;UACXD,OAAO,EAAE,IAAI,CAACA;QAChB,CAAC,CAAC;QACF,OAAOM,GAAG;MACZ,CAAC,CAAC,OAAOE,CAAC,EAAE;QACV,OAAO,IAAI;MACb;IACF,CAAC;IAaC,IAAI,CAACC,KAAK,GAAGJ,MAAM,CAACI,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 HMSRole {
|
|
3
5
|
constructor(params) {
|
|
4
6
|
_defineProperty(this, "name", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRole","constructor","params","name","priority","permissions","publishSettings","subscribeSettings","generalPermissions","internalPlugins","externalPlugins"],"sources":["HMSRole.ts"],"sourcesContent":["import type { HMSPermissions } from './HMSPermissions';\nimport type { HMSPublishSettings } from './HMSPublishSettings';\nimport type { HMSSubscribeSettings } from './HMSSubscribeSettings';\n\nexport class HMSRole {\n name?: string;\n publishSettings?: HMSPublishSettings;\n subscribeSettings?: HMSSubscribeSettings;\n permissions?: HMSPermissions;\n priority?: number;\n generalPermissions?: any;\n internalPlugins?: any;\n externalPlugins?: any;\n\n constructor(params?: {\n name?: string;\n priority?: number;\n permissions?: HMSPermissions;\n publishSettings?: HMSPublishSettings;\n subscribeSettings?: HMSSubscribeSettings;\n generalPermissions?: any;\n internalPlugins?: any;\n externalPlugins?: any;\n }) {\n if (params) {\n this.name = params.name;\n this.priority = params.priority;\n this.permissions = params.permissions;\n this.publishSettings = params.publishSettings;\n this.subscribeSettings = params.subscribeSettings;\n this.generalPermissions = params.generalPermissions;\n this.internalPlugins = params.internalPlugins;\n this.externalPlugins = params.externalPlugins;\n }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRole","constructor","params","name","priority","permissions","publishSettings","subscribeSettings","generalPermissions","internalPlugins","externalPlugins"],"sources":["HMSRole.ts"],"sourcesContent":["import type { HMSPermissions } from './HMSPermissions';\nimport type { HMSPublishSettings } from './HMSPublishSettings';\nimport type { HMSSubscribeSettings } from './HMSSubscribeSettings';\n\nexport class HMSRole {\n name?: string;\n publishSettings?: HMSPublishSettings;\n subscribeSettings?: HMSSubscribeSettings;\n permissions?: HMSPermissions;\n priority?: number;\n generalPermissions?: any;\n internalPlugins?: any;\n externalPlugins?: any;\n\n constructor(params?: {\n name?: string;\n priority?: number;\n permissions?: HMSPermissions;\n publishSettings?: HMSPublishSettings;\n subscribeSettings?: HMSSubscribeSettings;\n generalPermissions?: any;\n internalPlugins?: any;\n externalPlugins?: any;\n }) {\n if (params) {\n this.name = params.name;\n this.priority = params.priority;\n this.permissions = params.permissions;\n this.publishSettings = params.publishSettings;\n this.subscribeSettings = params.subscribeSettings;\n this.generalPermissions = params.generalPermissions;\n this.internalPlugins = params.internalPlugins;\n this.externalPlugins = params.externalPlugins;\n }\n }\n}\n"],"mappings":";;;AAIA,OAAO,MAAMA,OAAO,CAAC;EAUnBC,WAAW,CAACC,MASX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAIA,MAAM,EAAE;MACV,IAAI,CAACC,IAAI,GAAGD,MAAM,CAACC,IAAI;MACvB,IAAI,CAACC,QAAQ,GAAGF,MAAM,CAACE,QAAQ;MAC/B,IAAI,CAACC,WAAW,GAAGH,MAAM,CAACG,WAAW;MACrC,IAAI,CAACC,eAAe,GAAGJ,MAAM,CAACI,eAAe;MAC7C,IAAI,CAACC,iBAAiB,GAAGL,MAAM,CAACK,iBAAiB;MACjD,IAAI,CAACC,kBAAkB,GAAGN,MAAM,CAACM,kBAAkB;MACnD,IAAI,CAACC,eAAe,GAAGP,MAAM,CAACO,eAAe;MAC7C,IAAI,CAACC,eAAe,GAAGR,MAAM,CAACQ,eAAe;IAC/C;EACF;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 HMSRoleChangeRequest {
|
|
3
5
|
constructor(params) {
|
|
4
6
|
_defineProperty(this, "requestedBy", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRoleChangeRequest","constructor","params","requestedBy","suggestedRole"],"sources":["HMSRoleChangeRequest.ts"],"sourcesContent":["import type { HMSRole } from './HMSRole';\nimport type { HMSPeer } from './HMSPeer';\n\nexport class HMSRoleChangeRequest {\n requestedBy: HMSPeer;\n suggestedRole: HMSRole;\n\n constructor(params: { requestedBy: HMSPeer; suggestedRole: HMSRole }) {\n this.requestedBy = params.requestedBy;\n this.suggestedRole = params.suggestedRole;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRoleChangeRequest","constructor","params","requestedBy","suggestedRole"],"sources":["HMSRoleChangeRequest.ts"],"sourcesContent":["import type { HMSRole } from './HMSRole';\nimport type { HMSPeer } from './HMSPeer';\n\nexport class HMSRoleChangeRequest {\n requestedBy: HMSPeer;\n suggestedRole: HMSRole;\n\n constructor(params: { requestedBy: HMSPeer; suggestedRole: HMSRole }) {\n this.requestedBy = params.requestedBy;\n this.suggestedRole = params.suggestedRole;\n }\n}\n"],"mappings":";;;AAGA,OAAO,MAAMA,oBAAoB,CAAC;EAIhCC,WAAW,CAACC,MAAwD,EAAE;IAAA;IAAA;IACpE,IAAI,CAACC,WAAW,GAAGD,MAAM,CAACC,WAAW;IACrC,IAAI,CAACC,aAAa,GAAGF,MAAM,CAACE,aAAa;EAC3C;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 HMSRoom {
|
|
3
5
|
constructor(params) {
|
|
4
6
|
_defineProperty(this, "id", void 0);
|
|
@@ -12,6 +14,7 @@ export class HMSRoom {
|
|
|
12
14
|
_defineProperty(this, "hlsStreamingState", void 0);
|
|
13
15
|
_defineProperty(this, "hlsRecordingState", void 0);
|
|
14
16
|
_defineProperty(this, "peerCount", void 0);
|
|
17
|
+
_defineProperty(this, "localPeer", void 0);
|
|
15
18
|
this.id = params.id;
|
|
16
19
|
this.sessionId = params.sessionId;
|
|
17
20
|
this.name = params.name;
|
|
@@ -23,6 +26,7 @@ export class HMSRoom {
|
|
|
23
26
|
this.hlsStreamingState = params.hlsStreamingState;
|
|
24
27
|
this.hlsRecordingState = params.hlsRecordingState;
|
|
25
28
|
this.peerCount = params.peerCount;
|
|
29
|
+
this.localPeer = params.localPeer;
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
//# sourceMappingURL=HMSRoom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRoom","constructor","params","id","sessionId","name","metaData","peers","browserRecordingState","rtmpHMSRtmpStreamingState","serverRecordingState","hlsStreamingState","hlsRecordingState","peerCount"],"sources":["HMSRoom.ts"],"sourcesContent":["import type { HMSPeer } from './HMSPeer';\nimport type { HMSRtmpStreamingState } from './HMSRtmpStreamingState';\nimport type { HMSServerRecordingState } from './HMSServerRecordingState';\nimport type { HMSBrowserRecordingState } from './HMSBrowserRecordingState';\nimport type { HMSHLSStreamingState } from './HMSHLSStreamingState';\nimport type { HMSHLSRecordingState } from './HMSHLSRecordingState';\n\nexport class HMSRoom {\n id: string;\n sessionId: string;\n name: string;\n metaData?: string;\n peers: HMSPeer[];\n browserRecordingState: HMSBrowserRecordingState;\n rtmpHMSRtmpStreamingState: HMSRtmpStreamingState;\n serverRecordingState: HMSServerRecordingState;\n hlsStreamingState: HMSHLSStreamingState;\n hlsRecordingState?: HMSHLSRecordingState;\n peerCount: number;\n\n constructor(params: {\n id: string;\n sessionId: string;\n name: string;\n metaData?: string;\n peers: HMSPeer[];\n browserRecordingState: HMSBrowserRecordingState;\n rtmpHMSRtmpStreamingState: HMSRtmpStreamingState;\n serverRecordingState: HMSServerRecordingState;\n hlsStreamingState: HMSHLSStreamingState;\n hlsRecordingState?: HMSHLSRecordingState;\n peerCount: number;\n }) {\n this.id = params.id;\n this.sessionId = params.sessionId;\n this.name = params.name;\n this.metaData = params.metaData;\n this.peers = params.peers;\n this.browserRecordingState = params.browserRecordingState;\n this.rtmpHMSRtmpStreamingState = params.rtmpHMSRtmpStreamingState;\n this.serverRecordingState = params.serverRecordingState;\n this.hlsStreamingState = params.hlsStreamingState;\n this.hlsRecordingState = params.hlsRecordingState;\n this.peerCount = params.peerCount;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRoom","constructor","params","id","sessionId","name","metaData","peers","browserRecordingState","rtmpHMSRtmpStreamingState","serverRecordingState","hlsStreamingState","hlsRecordingState","peerCount","localPeer"],"sources":["HMSRoom.ts"],"sourcesContent":["import type { HMSPeer } from './HMSPeer';\nimport type { HMSRtmpStreamingState } from './HMSRtmpStreamingState';\nimport type { HMSServerRecordingState } from './HMSServerRecordingState';\nimport type { HMSBrowserRecordingState } from './HMSBrowserRecordingState';\nimport type { HMSHLSStreamingState } from './HMSHLSStreamingState';\nimport type { HMSHLSRecordingState } from './HMSHLSRecordingState';\nimport type { HMSLocalPeer } from './HMSLocalPeer';\n\nexport class HMSRoom {\n id: string;\n sessionId: string;\n name: string;\n metaData?: string;\n peers: HMSPeer[];\n browserRecordingState: HMSBrowserRecordingState;\n rtmpHMSRtmpStreamingState: HMSRtmpStreamingState;\n serverRecordingState: HMSServerRecordingState;\n hlsStreamingState: HMSHLSStreamingState;\n hlsRecordingState?: HMSHLSRecordingState;\n peerCount: number;\n localPeer: HMSLocalPeer;\n\n constructor(params: {\n id: string;\n sessionId: string;\n name: string;\n metaData?: string;\n peers: HMSPeer[];\n browserRecordingState: HMSBrowserRecordingState;\n rtmpHMSRtmpStreamingState: HMSRtmpStreamingState;\n serverRecordingState: HMSServerRecordingState;\n hlsStreamingState: HMSHLSStreamingState;\n hlsRecordingState?: HMSHLSRecordingState;\n peerCount: number;\n localPeer: HMSLocalPeer;\n }) {\n this.id = params.id;\n this.sessionId = params.sessionId;\n this.name = params.name;\n this.metaData = params.metaData;\n this.peers = params.peers;\n this.browserRecordingState = params.browserRecordingState;\n this.rtmpHMSRtmpStreamingState = params.rtmpHMSRtmpStreamingState;\n this.serverRecordingState = params.serverRecordingState;\n this.hlsStreamingState = params.hlsStreamingState;\n this.hlsRecordingState = params.hlsRecordingState;\n this.peerCount = params.peerCount;\n this.localPeer = params.localPeer;\n }\n}\n"],"mappings":";;;AAQA,OAAO,MAAMA,OAAO,CAAC;EAcnBC,WAAW,CAACC,MAaX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,EAAE,GAAGD,MAAM,CAACC,EAAE;IACnB,IAAI,CAACC,SAAS,GAAGF,MAAM,CAACE,SAAS;IACjC,IAAI,CAACC,IAAI,GAAGH,MAAM,CAACG,IAAI;IACvB,IAAI,CAACC,QAAQ,GAAGJ,MAAM,CAACI,QAAQ;IAC/B,IAAI,CAACC,KAAK,GAAGL,MAAM,CAACK,KAAK;IACzB,IAAI,CAACC,qBAAqB,GAAGN,MAAM,CAACM,qBAAqB;IACzD,IAAI,CAACC,yBAAyB,GAAGP,MAAM,CAACO,yBAAyB;IACjE,IAAI,CAACC,oBAAoB,GAAGR,MAAM,CAACQ,oBAAoB;IACvD,IAAI,CAACC,iBAAiB,GAAGT,MAAM,CAACS,iBAAiB;IACjD,IAAI,CAACC,iBAAiB,GAAGV,MAAM,CAACU,iBAAiB;IACjD,IAAI,CAACC,SAAS,GAAGX,MAAM,CAACW,SAAS;IACjC,IAAI,CAACC,SAAS,GAAGZ,MAAM,CAACY,SAAS;EACnC;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 HMSRtmpStreamingState {
|
|
3
5
|
constructor(params) {
|
|
4
6
|
_defineProperty(this, "running", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRtmpStreamingState","constructor","params","running","error","startedAt","stoppedAt"],"sources":["HMSRtmpStreamingState.ts"],"sourcesContent":["import type { HMSException } from './HMSException';\n\nexport class HMSRtmpStreamingState {\n running: boolean;\n error?: HMSException;\n startedAt: Date;\n stoppedAt: Date;\n\n constructor(params: {\n running: boolean;\n error?: HMSException;\n startedAt: Date;\n stoppedAt: Date;\n }) {\n this.running = params.running;\n this.error = params.error;\n this.startedAt = params.startedAt;\n this.stoppedAt = params.stoppedAt;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["HMSRtmpStreamingState","constructor","params","running","error","startedAt","stoppedAt"],"sources":["HMSRtmpStreamingState.ts"],"sourcesContent":["import type { HMSException } from './HMSException';\n\nexport class HMSRtmpStreamingState {\n running: boolean;\n error?: HMSException;\n startedAt: Date;\n stoppedAt: Date;\n\n constructor(params: {\n running: boolean;\n error?: HMSException;\n startedAt: Date;\n stoppedAt: Date;\n }) {\n this.running = params.running;\n this.error = params.error;\n this.startedAt = params.startedAt;\n this.stoppedAt = params.stoppedAt;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,qBAAqB,CAAC;EAMjCC,WAAW,CAACC,MAKX,EAAE;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IACzB,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,SAAS,GAAGJ,MAAM,CAACI,SAAS;EACnC;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 HMSRtmpVideoResolution {
|
|
3
5
|
constructor(params) {
|
|
4
6
|
_defineProperty(this, "height", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRtmpVideoResolution","constructor","params","height","width"],"sources":["HMSRtmpVideoResolution.ts"],"sourcesContent":["export class HMSRtmpVideoResolution {\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":["HMSRtmpVideoResolution","constructor","params","height","width"],"sources":["HMSRtmpVideoResolution.ts"],"sourcesContent":["export class HMSRtmpVideoResolution {\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,sBAAsB,CAAC;EAIlCC,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
|
import React from 'react';
|
|
3
5
|
import { AppState, NativeEventEmitter, NativeModules, Platform } from 'react-native';
|
|
4
6
|
import { HMSEncoder } from './HMSEncoder';
|
|
@@ -11,6 +13,8 @@ import { HMSRemoteVideoStats } from './HMSRemoteVideoStats';
|
|
|
11
13
|
import { HMSTrackType } from './HMSTrackType';
|
|
12
14
|
import { HMSUpdateListenerActions } from './HMSUpdateListenerActions';
|
|
13
15
|
import { HmsViewComponent } from './HmsView';
|
|
16
|
+
import { HMSMessageType } from './HMSMessageType';
|
|
17
|
+
import { HMSPIPListenerActions } from './HMSPIPListenerActions';
|
|
14
18
|
const {
|
|
15
19
|
/**
|
|
16
20
|
* @ignore
|
|
@@ -45,6 +49,7 @@ export class HMSSDK {
|
|
|
45
49
|
_defineProperty(this, "onRemoteAudioStatsDelegate", void 0);
|
|
46
50
|
_defineProperty(this, "onRemoteVideoStatsDelegate", void 0);
|
|
47
51
|
_defineProperty(this, "onAudioDeviceChangedDelegate", void 0);
|
|
52
|
+
_defineProperty(this, "onPIPRoomLeaveDelegate", void 0);
|
|
48
53
|
_defineProperty(this, "setLogger", hmsLogger => {
|
|
49
54
|
setLogger(this.id, hmsLogger);
|
|
50
55
|
});
|
|
@@ -77,6 +82,9 @@ export class HMSSDK {
|
|
|
77
82
|
HmsEventEmitter.addListener(HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS, this.onRemoteAudioStatsListener);
|
|
78
83
|
HmsEventEmitter.addListener(HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS, this.onRemoteVideoStatsListener);
|
|
79
84
|
HmsEventEmitter.addListener(HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED, this.onAudioDeviceChangedListener);
|
|
85
|
+
if (Platform.OS === 'android') {
|
|
86
|
+
HmsEventEmitter.addListener(HMSPIPListenerActions.ON_PIP_ROOM_LEAVE, this.onPIPRoomLeaveListener);
|
|
87
|
+
}
|
|
80
88
|
});
|
|
81
89
|
_defineProperty(this, "removeListeners", () => {
|
|
82
90
|
HmsEventEmitter.removeListener(HMSUpdateListenerActions.ON_JOIN, this.onJoinListener);
|
|
@@ -98,6 +106,9 @@ export class HMSSDK {
|
|
|
98
106
|
HmsEventEmitter.removeListener(HMSUpdateListenerActions.ON_REMOTE_AUDIO_STATS, this.onRemoteAudioStatsListener);
|
|
99
107
|
HmsEventEmitter.removeListener(HMSUpdateListenerActions.ON_REMOTE_VIDEO_STATS, this.onRemoteVideoStatsListener);
|
|
100
108
|
HmsEventEmitter.removeListener(HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED, this.onAudioDeviceChangedListener);
|
|
109
|
+
if (Platform.OS === 'android') {
|
|
110
|
+
HmsEventEmitter.removeListener(HMSPIPListenerActions.ON_PIP_ROOM_LEAVE, this.onPIPRoomLeaveListener);
|
|
111
|
+
}
|
|
101
112
|
});
|
|
102
113
|
_defineProperty(this, "join", async config => {
|
|
103
114
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function join', {
|
|
@@ -167,7 +178,7 @@ export class HMSSDK {
|
|
|
167
178
|
return op;
|
|
168
179
|
});
|
|
169
180
|
_defineProperty(this, "sendBroadcastMessage", async function (message) {
|
|
170
|
-
let type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
181
|
+
let type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : HMSMessageType.CHAT;
|
|
171
182
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function sendBroadcastMessage', {
|
|
172
183
|
message,
|
|
173
184
|
type: type || null,
|
|
@@ -180,7 +191,7 @@ export class HMSSDK {
|
|
|
180
191
|
});
|
|
181
192
|
});
|
|
182
193
|
_defineProperty(this, "sendGroupMessage", async function (message, roles) {
|
|
183
|
-
let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
194
|
+
let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : HMSMessageType.CHAT;
|
|
184
195
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function sendGroupMessage', {
|
|
185
196
|
message,
|
|
186
197
|
roles,
|
|
@@ -195,7 +206,7 @@ export class HMSSDK {
|
|
|
195
206
|
});
|
|
196
207
|
});
|
|
197
208
|
_defineProperty(this, "sendDirectMessage", async function (message, peer) {
|
|
198
|
-
let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
209
|
+
let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : HMSMessageType.CHAT;
|
|
199
210
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function sendDirectMessage', {
|
|
200
211
|
message,
|
|
201
212
|
peerId: peer.peerID,
|
|
@@ -264,6 +275,26 @@ export class HMSSDK {
|
|
|
264
275
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function changeRole', data);
|
|
265
276
|
return await HMSManager.changeRole(data);
|
|
266
277
|
});
|
|
278
|
+
_defineProperty(this, "changeRoleOfPeer", async function (peer, role) {
|
|
279
|
+
let force = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
280
|
+
const data = {
|
|
281
|
+
peerId: peer.peerID,
|
|
282
|
+
role: role.name,
|
|
283
|
+
force: force,
|
|
284
|
+
id: _this.id
|
|
285
|
+
};
|
|
286
|
+
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function changeRoleOfPeer', data);
|
|
287
|
+
return HMSManager.changeRoleOfPeer(data);
|
|
288
|
+
});
|
|
289
|
+
_defineProperty(this, "changeRoleOfPeersWithRoles", async (ofRoles, toRole) => {
|
|
290
|
+
const data = {
|
|
291
|
+
ofRoles: ofRoles.map(ofRole => ofRole.name).filter(Boolean),
|
|
292
|
+
toRole: toRole.name,
|
|
293
|
+
id: this.id
|
|
294
|
+
};
|
|
295
|
+
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function changeRoleOfPeersWithRoles', data);
|
|
296
|
+
return HMSManager.changeRoleOfPeersWithRoles(data);
|
|
297
|
+
});
|
|
267
298
|
_defineProperty(this, "changeTrackState", async (track, mute) => {
|
|
268
299
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function changeTrackState', {
|
|
269
300
|
track,
|
|
@@ -628,6 +659,24 @@ export class HMSSDK {
|
|
|
628
659
|
return 'API currently not available for iOS';
|
|
629
660
|
}
|
|
630
661
|
});
|
|
662
|
+
_defineProperty(this, "setSessionMetaData", async sessionMetaData => {
|
|
663
|
+
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function setSessionMetaData', {
|
|
664
|
+
id: this.id,
|
|
665
|
+
sessionMetaData
|
|
666
|
+
});
|
|
667
|
+
return await HMSManager.setSessionMetaData({
|
|
668
|
+
id: this.id,
|
|
669
|
+
sessionMetaData
|
|
670
|
+
});
|
|
671
|
+
});
|
|
672
|
+
_defineProperty(this, "getSessionMetaData", async () => {
|
|
673
|
+
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function getSessionMetaData', {
|
|
674
|
+
id: this.id
|
|
675
|
+
});
|
|
676
|
+
return await HMSManager.getSessionMetaData({
|
|
677
|
+
id: this.id
|
|
678
|
+
});
|
|
679
|
+
});
|
|
631
680
|
_defineProperty(this, "addEventListener", (action, callback) => {
|
|
632
681
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function addEventListener', {
|
|
633
682
|
action,
|
|
@@ -691,6 +740,9 @@ export class HMSSDK {
|
|
|
691
740
|
case HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED:
|
|
692
741
|
this.onAudioDeviceChangedDelegate = callback;
|
|
693
742
|
break;
|
|
743
|
+
case HMSPIPListenerActions.ON_PIP_ROOM_LEAVE:
|
|
744
|
+
this.onPIPRoomLeaveDelegate = callback;
|
|
745
|
+
break;
|
|
694
746
|
default:
|
|
695
747
|
}
|
|
696
748
|
});
|
|
@@ -757,6 +809,9 @@ export class HMSSDK {
|
|
|
757
809
|
case HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED:
|
|
758
810
|
this.onAudioDeviceChangedDelegate = null;
|
|
759
811
|
break;
|
|
812
|
+
case HMSPIPListenerActions.ON_PIP_ROOM_LEAVE:
|
|
813
|
+
this.onPIPRoomLeaveDelegate = null;
|
|
814
|
+
break;
|
|
760
815
|
default:
|
|
761
816
|
}
|
|
762
817
|
});
|
|
@@ -774,6 +829,7 @@ export class HMSSDK {
|
|
|
774
829
|
this.onRoleChangeRequestDelegate = null;
|
|
775
830
|
this.onChangeTrackStateRequestDelegate = null;
|
|
776
831
|
this.onRemovedFromRoomDelegate = null;
|
|
832
|
+
this.onPIPRoomLeaveDelegate = null;
|
|
777
833
|
logger === null || logger === void 0 ? void 0 : logger.verbose('#Function REMOVE_ALL_LISTENER', {
|
|
778
834
|
id: this.id
|
|
779
835
|
});
|
|
@@ -1070,6 +1126,20 @@ export class HMSSDK {
|
|
|
1070
1126
|
});
|
|
1071
1127
|
}
|
|
1072
1128
|
});
|
|
1129
|
+
_defineProperty(this, "onPIPRoomLeaveListener", data => {
|
|
1130
|
+
var _this$appStateSubscri2;
|
|
1131
|
+
if (data.id !== this.id) {
|
|
1132
|
+
return;
|
|
1133
|
+
}
|
|
1134
|
+
this.muteStatus = undefined;
|
|
1135
|
+
this === null || this === void 0 ? void 0 : (_this$appStateSubscri2 = this.appStateSubscription) === null || _this$appStateSubscri2 === void 0 ? void 0 : _this$appStateSubscri2.remove();
|
|
1136
|
+
if (this.onPIPRoomLeaveDelegate) {
|
|
1137
|
+
logger === null || logger === void 0 ? void 0 : logger.verbose('#Listener onPIPRoomLeave_CALL', data);
|
|
1138
|
+
this.onPIPRoomLeaveDelegate({
|
|
1139
|
+
...data
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
});
|
|
1073
1143
|
this.id = id;
|
|
1074
1144
|
}
|
|
1075
1145
|
|
|
@@ -1130,5 +1200,23 @@ export class HMSSDK {
|
|
|
1130
1200
|
* @param {HMSLogger} hmsLogger
|
|
1131
1201
|
* @memberof HMSSDK
|
|
1132
1202
|
*/
|
|
1203
|
+
|
|
1204
|
+
async isPipModeSupported() {
|
|
1205
|
+
return HMSManager.handlePipActions('isPipModeSupported', {
|
|
1206
|
+
id: this.id
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
async enablePipMode(data) {
|
|
1210
|
+
return HMSManager.handlePipActions('enablePipMode', {
|
|
1211
|
+
...data,
|
|
1212
|
+
id: this.id
|
|
1213
|
+
});
|
|
1214
|
+
}
|
|
1215
|
+
async setPipParams(data) {
|
|
1216
|
+
return HMSManager.handlePipActions('setPictureInPictureParams', {
|
|
1217
|
+
...data,
|
|
1218
|
+
id: this.id
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1133
1221
|
}
|
|
1134
1222
|
//# sourceMappingURL=HMSSDK.js.map
|