@100mslive/react-native-hms 1.10.1 → 1.10.3
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/build.gradle +1 -0
- package/android/local.properties +1 -8
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +2 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSHelper.kt +15 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +113 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +3 -0
- package/ios/HMSDecoder.swift +11 -0
- package/ios/HMSHelper.swift +64 -9
- package/ios/HMSManager.m +22 -0
- package/ios/HMSManager.swift +54 -4
- package/ios/HMSRNSDK.swift +75 -4
- package/lib/commonjs/classes/HMSAudioMixerSource.js +1 -1
- package/lib/commonjs/classes/HMSAudioNode.js +1 -1
- package/lib/commonjs/classes/HMSAudioNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioSettings.js +1 -1
- package/lib/commonjs/classes/HMSAudioTrackSettings.js +10 -3
- package/lib/commonjs/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSBrowserRecordingState.js +1 -1
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js +1 -1
- package/lib/commonjs/classes/HMSConfig.js +1 -1
- package/lib/commonjs/classes/HMSEncoder.js +1 -1
- package/lib/commonjs/classes/HMSEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSException.js +1 -1
- package/lib/commonjs/classes/HMSHLSConfig.js +1 -1
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingState.js +1 -1
- package/lib/commonjs/classes/HMSHLSStreamingState.js +1 -1
- package/lib/commonjs/classes/HMSHLSVariant.js +1 -1
- package/lib/commonjs/classes/HMSInteractivityCenter.js +1 -1
- package/lib/commonjs/classes/HMSInteractivityCenter.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioStats.js +1 -1
- package/lib/commonjs/classes/HMSLocalAudioTrack.js +1 -1
- package/lib/commonjs/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalPeer.js +1 -1
- package/lib/commonjs/classes/HMSLocalPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoStats.js +1 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js +1 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js +1 -1
- package/lib/commonjs/classes/HMSLogger.js +1 -1
- package/lib/commonjs/classes/HMSLogger.js.map +1 -1
- package/lib/commonjs/classes/HMSMessage.js +1 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js +1 -1
- package/lib/commonjs/classes/HMSNativeEventEmitter.js +1 -1
- package/lib/commonjs/classes/HMSNativeEventEmitter.js.map +1 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js +1 -1
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js +127 -0
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js.map +1 -0
- package/lib/commonjs/classes/HMSPeer.js +17 -1
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerListIterator.js +1 -1
- package/lib/commonjs/classes/HMSPeerListIterator.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerType.js +13 -0
- package/lib/commonjs/classes/HMSPeerType.js.map +1 -0
- package/lib/commonjs/classes/HMSPeersCache.js +1 -1
- package/lib/commonjs/classes/HMSPeersCache.js.map +1 -1
- package/lib/commonjs/classes/HMSPermissions.js +1 -1
- package/lib/commonjs/classes/HMSPublishSettings.js +1 -1
- package/lib/commonjs/classes/HMSQualityLimitationReasons.js +1 -1
- package/lib/commonjs/classes/HMSRTCStats.js +1 -1
- package/lib/commonjs/classes/HMSRTCStatsReport.js +1 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioStats.js +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRemotePeer.js +1 -1
- package/lib/commonjs/classes/HMSRemotePeer.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoStats.js +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +1 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js +1 -1
- package/lib/commonjs/classes/HMSRoom.js +1 -1
- package/lib/commonjs/classes/HMSRoom.js.map +1 -1
- package/lib/commonjs/classes/HMSRoomCache.js +1 -1
- package/lib/commonjs/classes/HMSRoomCache.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js +1 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js +1 -1
- package/lib/commonjs/classes/HMSSDK.js +1 -1
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js +1 -1
- package/lib/commonjs/classes/HMSSessionStore.js +1 -1
- package/lib/commonjs/classes/HMSSessionStore.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerDefinition.js +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettingsPolicy.js +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettings.js +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettingsPolicy.js +1 -1
- package/lib/commonjs/classes/HMSSpeaker.js +1 -1
- package/lib/commonjs/classes/HMSSubscribeDegradationPolicy.js +1 -1
- package/lib/commonjs/classes/HMSSubscribeSettings.js +1 -1
- package/lib/commonjs/classes/HMSTrack.js +1 -1
- package/lib/commonjs/classes/HMSTrackSettings.js +1 -1
- package/lib/commonjs/classes/HMSVideoResolution.js +1 -1
- package/lib/commonjs/classes/HMSVideoSettings.js +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +1 -1
- package/lib/commonjs/classes/HmsView.js +1 -1
- package/lib/commonjs/classes/HmsView.js.map +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/HMSHLSPlayer.js +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/HMSHLSPlayer.js.map +1 -1
- package/lib/commonjs/hooks/useHMSPeerUpdates.js +1 -1
- package/lib/commonjs/hooks/useHMSPeerUpdates.js.map +1 -1
- package/lib/commonjs/index.js +24 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/emitter/EventEmitter.js +1 -1
- package/lib/commonjs/utils/emitter/EventEmitter.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EmitterSubscription.js +1 -1
- package/lib/commonjs/utils/emitter/_EmitterSubscription.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EventSubscription.js +1 -1
- package/lib/commonjs/utils/emitter/_EventSubscriptionVendor.js +1 -1
- package/lib/module/classes/HMSAudioMixerSource.js +1 -1
- package/lib/module/classes/HMSAudioNode.js +1 -1
- package/lib/module/classes/HMSAudioSettings.js +1 -1
- package/lib/module/classes/HMSAudioTrackSettings.js +10 -3
- package/lib/module/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSBrowserRecordingState.js +1 -1
- package/lib/module/classes/HMSChangeTrackStateRequest.js +1 -1
- package/lib/module/classes/HMSConfig.js +1 -1
- package/lib/module/classes/HMSEncoder.js +1 -1
- package/lib/module/classes/HMSException.js +1 -1
- package/lib/module/classes/HMSHLSConfig.js +1 -1
- package/lib/module/classes/HMSHLSMeetingURLVariant.js +1 -1
- package/lib/module/classes/HMSHLSRecordingConfig.js +1 -1
- package/lib/module/classes/HMSHLSRecordingState.js +1 -1
- package/lib/module/classes/HMSHLSStreamingState.js +1 -1
- package/lib/module/classes/HMSHLSVariant.js +1 -1
- package/lib/module/classes/HMSInteractivityCenter.js +1 -1
- package/lib/module/classes/HMSLocalAudioStats.js +1 -1
- package/lib/module/classes/HMSLocalAudioTrack.js +1 -1
- package/lib/module/classes/HMSLocalPeer.js +1 -1
- package/lib/module/classes/HMSLocalVideoStats.js +1 -1
- package/lib/module/classes/HMSLocalVideoTrack.js +1 -1
- package/lib/module/classes/HMSLogSettings.js +1 -1
- package/lib/module/classes/HMSLogger.js +1 -1
- package/lib/module/classes/HMSMessage.js +1 -1
- package/lib/module/classes/HMSMessageRecipient.js +1 -1
- package/lib/module/classes/HMSNativeEventEmitter.js +1 -1
- package/lib/module/classes/HMSNetworkQuality.js +1 -1
- package/lib/module/classes/HMSNoiseCancellationPlugin.js +121 -0
- package/lib/module/classes/HMSNoiseCancellationPlugin.js.map +1 -0
- package/lib/module/classes/HMSPeer.js +17 -1
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPeerListIterator.js +1 -1
- package/lib/module/classes/HMSPeerType.js +7 -0
- package/lib/module/classes/HMSPeerType.js.map +1 -0
- package/lib/module/classes/HMSPeersCache.js +1 -1
- package/lib/module/classes/HMSPeersCache.js.map +1 -1
- package/lib/module/classes/HMSPermissions.js +1 -1
- package/lib/module/classes/HMSPublishSettings.js +1 -1
- package/lib/module/classes/HMSQualityLimitationReasons.js +1 -1
- package/lib/module/classes/HMSRTCStats.js +1 -1
- package/lib/module/classes/HMSRTCStatsReport.js +1 -1
- package/lib/module/classes/HMSRTMPConfig.js +1 -1
- package/lib/module/classes/HMSRemoteAudioStats.js +1 -1
- package/lib/module/classes/HMSRemoteAudioTrack.js +1 -1
- package/lib/module/classes/HMSRemotePeer.js +1 -1
- package/lib/module/classes/HMSRemoteVideoStats.js +1 -1
- package/lib/module/classes/HMSRemoteVideoTrack.js +1 -1
- package/lib/module/classes/HMSRole.js +1 -1
- package/lib/module/classes/HMSRoleChangeRequest.js +1 -1
- package/lib/module/classes/HMSRoom.js +1 -1
- package/lib/module/classes/HMSRoomCache.js +1 -1
- package/lib/module/classes/HMSRtmpStreamingState.js +1 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js +1 -1
- package/lib/module/classes/HMSSDK.js +1 -1
- package/lib/module/classes/HMSServerRecordingState.js +1 -1
- package/lib/module/classes/HMSSessionStore.js +1 -1
- package/lib/module/classes/HMSSimulcastLayerDefinition.js +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettings.js +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettingsPolicy.js +1 -1
- package/lib/module/classes/HMSSimulcastSettings.js +1 -1
- package/lib/module/classes/HMSSimulcastSettingsPolicy.js +1 -1
- package/lib/module/classes/HMSSpeaker.js +1 -1
- package/lib/module/classes/HMSSubscribeDegradationPolicy.js +1 -1
- package/lib/module/classes/HMSSubscribeSettings.js +1 -1
- package/lib/module/classes/HMSTrack.js +1 -1
- package/lib/module/classes/HMSTrackSettings.js +1 -1
- package/lib/module/classes/HMSVideoResolution.js +1 -1
- package/lib/module/classes/HMSVideoSettings.js +1 -1
- package/lib/module/classes/HMSVideoTrack.js +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/emitter/EventEmitter.js +1 -1
- package/lib/module/utils/emitter/_EmitterSubscription.js +1 -1
- package/lib/module/utils/emitter/_EventSubscription.js +1 -1
- package/lib/module/utils/emitter/_EventSubscriptionVendor.js +1 -1
- package/lib/typescript/classes/HMSAudioTrackSettings.d.ts +9 -0
- package/lib/typescript/classes/HMSNoiseCancellationPlugin.d.ts +56 -0
- package/lib/typescript/classes/HMSPeer.d.ts +4 -0
- package/lib/typescript/classes/HMSPeerType.d.ts +5 -0
- package/lib/typescript/classes/HMSPeersCache.d.ts +2 -0
- package/lib/typescript/index.d.ts +2 -0
- package/package.json +6 -2
- package/react-native-hms.podspec +1 -0
- package/sdk-versions.json +3 -2
- package/src/classes/HMSAudioTrackSettings.ts +11 -0
- package/src/classes/HMSNoiseCancellationPlugin.ts +130 -0
- package/src/classes/HMSPeer.ts +26 -0
- package/src/classes/HMSPeerType.ts +9 -0
- package/src/classes/HMSPeersCache.ts +2 -0
- package/src/index.ts +2 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/jatinnagar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Hmssdk.xcodeproj/xcuserdata/jatinnagar.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSSimulcastLayerSettings {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSSimulcastLayerSettingsPolicy {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSSimulcastSettings {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSSimulcastSettingsPolicy {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSSpeaker {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSSubscribeDegradationPolicy {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSSubscribeSettings {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSTrack {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSTrackSettings {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSVideoResolution {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export class HMSVideoSettings {
|
|
5
5
|
constructor(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
import { HMSTrack } from './HMSTrack';
|
|
5
5
|
export class HMSVideoTrack extends HMSTrack {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
/**
|
|
5
5
|
* Customize local peer's Video track settings before Joining the Room.
|
package/lib/module/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export * from './classes/HMSRemoteAudioTrack';
|
|
|
22
22
|
export * from './classes/HMSPublishSettings';
|
|
23
23
|
export * from './classes/HMSPermissions';
|
|
24
24
|
export * from './classes/HMSPeer';
|
|
25
|
+
export * from './classes/HMSPeerType';
|
|
25
26
|
export * from './classes/HMSLocalVideoTrack';
|
|
26
27
|
export * from './classes/HMSLocalPeer';
|
|
27
28
|
export * from './classes/HMSLocalAudioTrack';
|
|
@@ -83,6 +84,7 @@ export * from './classes/HMSIOSAudioMode';
|
|
|
83
84
|
export * from './classes/HMSRecordingState';
|
|
84
85
|
export * from './classes/HMSStreamingState';
|
|
85
86
|
export { HMSRecordingState } from './classes/HMSRecordingState';
|
|
87
|
+
export * from './classes/HMSNoiseCancellationPlugin';
|
|
86
88
|
export { HMSPollQuestionType } from './classes/polls/HMSPollQuestionType';
|
|
87
89
|
export { HMSPollType } from './classes/polls/HMSPollType';
|
|
88
90
|
export { HMSPollUserTrackingMode } from './classes/polls/HMSPollUserTrackingMode';
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSRecordingState","HMSPollQuestionType","HMSPollType","HMSPollUserTrackingMode","HMSPollUpdateType","HMSPollState","HMSPollQuestion","HMSPollQuestionOption","HMSPollQuestionAnswer","HMSPollQuestionResponse","PollLeaderboardResponse","HMSPollLeaderboardEntry","HMSPollLeaderboardSummary","HMSSDK","HmsManager","default","HMSManagerModule","useHmsViewsResolutionsState","checkNotifications"],"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/HMSPIPListenerActions';\nexport * from './classes/HMSLayer';\nexport * from './classes/HMSSimulcastLayerDefinition';\nexport * from './classes/HMSQualityLimitationReasons';\nexport * from './classes/HMSQualityLimitationReason';\nexport * from './classes/HMSCameraControl';\nexport * from './classes/HMSIOSAudioMode';\nexport * from './classes/HMSRecordingState';\nexport * from './classes/HMSStreamingState';\nexport type {\n HMSSessionStore,\n JsonArray,\n JsonMap,\n JsonPrimitive,\n JsonValue,\n} from './classes/HMSSessionStore';\nexport type {\n HmsViewComponent as HMSView,\n HmsComponentProps as HMSViewProps,\n} from './classes/HmsView';\nexport type { HMSPIPConfig } from './classes/HMSPIPConfig';\nexport { HMSRecordingState } from './classes/HMSRecordingState';\nexport type { HMSPoll } from './classes/polls/HMSPoll';\n\nexport { HMSPollQuestionType } from './classes/polls/HMSPollQuestionType';\nexport { HMSPollType } from './classes/polls/HMSPollType';\nexport { HMSPollUserTrackingMode } from './classes/polls/HMSPollUserTrackingMode';\nexport { HMSPollUpdateType } from './classes/polls/HMSPollUpdateType';\nexport { HMSPollState } from './classes/polls/HMSPollState';\nexport { HMSPollQuestion } from './classes/polls/HMSPollQuestion';\nexport { HMSPollQuestionOption } from './classes/polls/HMSPollQuestionOption';\nexport { HMSPollQuestionAnswer } from './classes/polls/HMSPollQuestionAnswer';\nexport { HMSPollQuestionResponse } from './classes/polls/HMSPollQuestionResponse';\nexport { PollLeaderboardResponse } from './classes/polls/PollLeaderboardResponse';\nexport { HMSPollLeaderboardEntry } from './classes/polls/HMSPollLeaderboardEntry';\nexport { HMSPollLeaderboardSummary } from './classes/polls/HMSPollLeaderboardSummary';\n\nimport { HMSSDK as HmsManager } from './classes/HMSSDK';\n\n// 100ms React Native Module\nexport { default as HMSManagerModule } from './modules/HMSManagerModule';\n\n// 100ms Components\nexport * from './components/HMSHLSPlayer';\n\n// 100ms Hooks\nexport * from './hooks/useHMSPeerUpdates';\nexport { useHmsViewsResolutionsState } from './hooks/hmsviews';\n\n// 100ms Utilities\nexport type { NotificationResult } from './utils/notification';\nexport { checkNotifications } from './utils/notification';\n\nexport * from './utils/windowController';\nexport * from './utils/keyboard';\n\n// 100ms types\nexport * from './types';\nexport * from './stores/types';\n\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,iCAAiC;AAC/C,cAAc,oBAAoB;AAClC,cAAc,uCAAuC;AACrD,cAAc,uCAAuC;AACrD,cAAc,sCAAsC;AACpD,cAAc,4BAA4B;AAC1C,cAAc,2BAA2B;AACzC,cAAc,6BAA6B;AAC3C,cAAc,6BAA6B;AAa3C,SAASA,iBAAiB,QAAQ,6BAA6B;
|
|
1
|
+
{"version":3,"names":["HMSRecordingState","HMSPollQuestionType","HMSPollType","HMSPollUserTrackingMode","HMSPollUpdateType","HMSPollState","HMSPollQuestion","HMSPollQuestionOption","HMSPollQuestionAnswer","HMSPollQuestionResponse","PollLeaderboardResponse","HMSPollLeaderboardEntry","HMSPollLeaderboardSummary","HMSSDK","HmsManager","default","HMSManagerModule","useHmsViewsResolutionsState","checkNotifications"],"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/HMSPeerType';\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/HMSPIPListenerActions';\nexport * from './classes/HMSLayer';\nexport * from './classes/HMSSimulcastLayerDefinition';\nexport * from './classes/HMSQualityLimitationReasons';\nexport * from './classes/HMSQualityLimitationReason';\nexport * from './classes/HMSCameraControl';\nexport * from './classes/HMSIOSAudioMode';\nexport * from './classes/HMSRecordingState';\nexport * from './classes/HMSStreamingState';\nexport type {\n HMSSessionStore,\n JsonArray,\n JsonMap,\n JsonPrimitive,\n JsonValue,\n} from './classes/HMSSessionStore';\nexport type {\n HmsViewComponent as HMSView,\n HmsComponentProps as HMSViewProps,\n} from './classes/HmsView';\nexport type { HMSPIPConfig } from './classes/HMSPIPConfig';\nexport { HMSRecordingState } from './classes/HMSRecordingState';\nexport type { HMSPoll } from './classes/polls/HMSPoll';\nexport * from './classes/HMSNoiseCancellationPlugin';\n\nexport { HMSPollQuestionType } from './classes/polls/HMSPollQuestionType';\nexport { HMSPollType } from './classes/polls/HMSPollType';\nexport { HMSPollUserTrackingMode } from './classes/polls/HMSPollUserTrackingMode';\nexport { HMSPollUpdateType } from './classes/polls/HMSPollUpdateType';\nexport { HMSPollState } from './classes/polls/HMSPollState';\nexport { HMSPollQuestion } from './classes/polls/HMSPollQuestion';\nexport { HMSPollQuestionOption } from './classes/polls/HMSPollQuestionOption';\nexport { HMSPollQuestionAnswer } from './classes/polls/HMSPollQuestionAnswer';\nexport { HMSPollQuestionResponse } from './classes/polls/HMSPollQuestionResponse';\nexport { PollLeaderboardResponse } from './classes/polls/PollLeaderboardResponse';\nexport { HMSPollLeaderboardEntry } from './classes/polls/HMSPollLeaderboardEntry';\nexport { HMSPollLeaderboardSummary } from './classes/polls/HMSPollLeaderboardSummary';\n\nimport { HMSSDK as HmsManager } from './classes/HMSSDK';\n\n// 100ms React Native Module\nexport { default as HMSManagerModule } from './modules/HMSManagerModule';\n\n// 100ms Components\nexport * from './components/HMSHLSPlayer';\n\n// 100ms Hooks\nexport * from './hooks/useHMSPeerUpdates';\nexport { useHmsViewsResolutionsState } from './hooks/hmsviews';\n\n// 100ms Utilities\nexport type { NotificationResult } from './utils/notification';\nexport { checkNotifications } from './utils/notification';\n\nexport * from './utils/windowController';\nexport * from './utils/keyboard';\n\n// 100ms types\nexport * from './types';\nexport * from './stores/types';\n\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,uBAAuB;AACrC,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,iCAAiC;AAC/C,cAAc,oBAAoB;AAClC,cAAc,uCAAuC;AACrD,cAAc,uCAAuC;AACrD,cAAc,sCAAsC;AACpD,cAAc,4BAA4B;AAC1C,cAAc,2BAA2B;AACzC,cAAc,6BAA6B;AAC3C,cAAc,6BAA6B;AAa3C,SAASA,iBAAiB,QAAQ,6BAA6B;AAE/D,cAAc,sCAAsC;AAEpD,SAASC,mBAAmB,QAAQ,qCAAqC;AACzE,SAASC,WAAW,QAAQ,6BAA6B;AACzD,SAASC,uBAAuB,QAAQ,yCAAyC;AACjF,SAASC,iBAAiB,QAAQ,mCAAmC;AACrE,SAASC,YAAY,QAAQ,8BAA8B;AAC3D,SAASC,eAAe,QAAQ,iCAAiC;AACjE,SAASC,qBAAqB,QAAQ,uCAAuC;AAC7E,SAASC,qBAAqB,QAAQ,uCAAuC;AAC7E,SAASC,uBAAuB,QAAQ,yCAAyC;AACjF,SAASC,uBAAuB,QAAQ,yCAAyC;AACjF,SAASC,uBAAuB,QAAQ,yCAAyC;AACjF,SAASC,yBAAyB,QAAQ,2CAA2C;AAErF,SAASC,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;;AAEvD;AACA,SAASC,OAAO,IAAIC,gBAAgB,QAAQ,4BAA4B;;AAExE;AACA,cAAc,2BAA2B;;AAEzC;AACA,cAAc,2BAA2B;AACzC,SAASC,2BAA2B,QAAQ,kBAAkB;;AAE9D;;AAEA,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,cAAc,0BAA0B;AACxC,cAAc,kBAAkB;;AAEhC;AACA,cAAc,SAAS;AACvB,cAAc,gBAAgB;AAE9B,eAAeJ,UAAU","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
import { EmitterSubscription } from './_EmitterSubscription';
|
|
5
5
|
import { EventSubscriptionVendor } from './_EventSubscriptionVendor';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
import { EventSubscription } from './_EventSubscription';
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
/**
|
|
5
5
|
* EventSubscription represents a subscription to a particular event. It can
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
/**
|
|
5
5
|
* EventSubscriptionVendor stores a set of EventSubscriptions that are
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HMSIOSAudioMode } from './HMSIOSAudioMode';
|
|
2
|
+
import type { HMSNoiseCancellationPlugin } from './HMSNoiseCancellationPlugin';
|
|
2
3
|
import type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';
|
|
3
4
|
/**
|
|
4
5
|
* Customize local peer's Audio track settings before Joining the Room.
|
|
@@ -16,10 +17,18 @@ export declare class HMSAudioTrackSettings {
|
|
|
16
17
|
* Checkout Music Mode docs for more details {@link https://www.100ms.live/docs/react-native/v2/how-to-guides/configure-your-device/microphone/music-mode}
|
|
17
18
|
*/
|
|
18
19
|
audioMode?: HMSIOSAudioMode;
|
|
20
|
+
/**
|
|
21
|
+
* The noise cancellation plugin to use for the audio track.
|
|
22
|
+
* @type {HMSNoiseCancellationPlugin}
|
|
23
|
+
*
|
|
24
|
+
* Checkout Noise Cancellation docs for more details {@link https://www.100ms.live/docs/ios/v2/how-to-guides/extend-capabilities/plugins/noise-cancellation}
|
|
25
|
+
*/
|
|
26
|
+
noiseCancellationPlugin?: HMSNoiseCancellationPlugin;
|
|
19
27
|
constructor(params: {
|
|
20
28
|
initialState?: HMSTrackSettingsInitState;
|
|
21
29
|
useHardwareEchoCancellation?: boolean;
|
|
22
30
|
audioSource?: string[];
|
|
23
31
|
audioMode?: HMSIOSAudioMode;
|
|
32
|
+
noiseCancellationPlugin?: HMSNoiseCancellationPlugin;
|
|
24
33
|
});
|
|
25
34
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class representing an HMS Noise Cancellation Plugin.
|
|
3
|
+
*/
|
|
4
|
+
export declare class HMSNoiseCancellationPlugin {
|
|
5
|
+
modelName: HMSNoiseCancellationModels;
|
|
6
|
+
initialState: HMSNoiseCancellationInitialState;
|
|
7
|
+
/**
|
|
8
|
+
* Creates an instance of HMSNoiseCancellationPlugin.
|
|
9
|
+
* @param {Object} [config] - The configuration options.
|
|
10
|
+
* @param {HMSNoiseCancellationModels} [config.modelName] - The model name for noise cancellation.
|
|
11
|
+
* @param {HMSNoiseCancellationInitialState} [config.initialState] - The initial state for noise cancellation.
|
|
12
|
+
*/
|
|
13
|
+
constructor(config?: {
|
|
14
|
+
modelName: HMSNoiseCancellationModels;
|
|
15
|
+
initialState: HMSNoiseCancellationInitialState;
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* To make noise cancellation work your room needs to have noise cancellation feature enabled.
|
|
19
|
+
*
|
|
20
|
+
* Gets whether noise cancellation is available for your room.
|
|
21
|
+
* @returns {boolean} True if noise cancellation is available, false otherwise.
|
|
22
|
+
*
|
|
23
|
+
* Note: You can call this API to check the state of noise cancellation only after successfully joining the room.
|
|
24
|
+
*/
|
|
25
|
+
isNoiseCancellationAvailable(): Promise<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* Enables noise cancellation.
|
|
28
|
+
* @returns {Promise<boolean>} A promise that resolves to true if noise cancellation is enabled, otherwise, rejected promise is returned
|
|
29
|
+
*/
|
|
30
|
+
enable(): Promise<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* Disables noise cancellation.
|
|
33
|
+
* @returns {Promise<boolean>} A promise that resolves to true if noise cancellation is disabled, otherwise, rejected promise is returned
|
|
34
|
+
*/
|
|
35
|
+
disable(): Promise<boolean>;
|
|
36
|
+
/**
|
|
37
|
+
* Checks if noise cancellation is enabled.
|
|
38
|
+
* @returns {boolean} true if noise cancellation is enabled, false otherwise.
|
|
39
|
+
*/
|
|
40
|
+
isEnabled(): Promise<boolean>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Enum for HMS Noise Cancellation Models.
|
|
44
|
+
* @enum {String}
|
|
45
|
+
*/
|
|
46
|
+
export declare enum HMSNoiseCancellationModels {
|
|
47
|
+
SmallFullBand = "SMALL_FULL_BAND"
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Enum for HMS Noise Cancellation Initial State.
|
|
51
|
+
* @enum {String}
|
|
52
|
+
*/
|
|
53
|
+
export declare enum HMSNoiseCancellationInitialState {
|
|
54
|
+
Enabled = "ENABLED",
|
|
55
|
+
Disabled = "DISABLED"
|
|
56
|
+
}
|
|
@@ -3,6 +3,7 @@ import type { HMSNetworkQuality } from './HMSNetworkQuality';
|
|
|
3
3
|
import type { HMSRole } from './HMSRole';
|
|
4
4
|
import type { HMSTrack } from './HMSTrack';
|
|
5
5
|
import type { HMSVideoTrack } from './HMSVideoTrack';
|
|
6
|
+
import { HMSPeerType } from './HMSPeerType';
|
|
6
7
|
export declare class HMSPeer {
|
|
7
8
|
peerID: string;
|
|
8
9
|
name: string;
|
|
@@ -11,11 +12,13 @@ export declare class HMSPeer {
|
|
|
11
12
|
private _metadata;
|
|
12
13
|
private _role;
|
|
13
14
|
private _isHandRaised;
|
|
15
|
+
private _type;
|
|
14
16
|
private _updateIsLocal;
|
|
15
17
|
private _updateIsHandRaised;
|
|
16
18
|
private _updateCustomerUserID;
|
|
17
19
|
private _updateMetadata;
|
|
18
20
|
private _updateRole;
|
|
21
|
+
private _updateType;
|
|
19
22
|
constructor(params: {
|
|
20
23
|
peerID: string;
|
|
21
24
|
name: string;
|
|
@@ -29,4 +32,5 @@ export declare class HMSPeer {
|
|
|
29
32
|
get audioTrack(): HMSAudioTrack | undefined;
|
|
30
33
|
get videoTrack(): HMSVideoTrack | undefined;
|
|
31
34
|
get auxiliaryTracks(): HMSTrack[] | undefined;
|
|
35
|
+
get type(): HMSPeerType;
|
|
32
36
|
}
|
|
@@ -5,6 +5,7 @@ import type { HMSNetworkQuality } from './HMSNetworkQuality';
|
|
|
5
5
|
import type { HMSRole } from './HMSRole';
|
|
6
6
|
import type { HMSAudioTrack } from './HMSAudioTrack';
|
|
7
7
|
import type { HMSVideoTrack } from './HMSVideoTrack';
|
|
8
|
+
import type { HMSPeerType } from './HMSPeerType';
|
|
8
9
|
export declare let hmsPeersCache: HMSPeersCache | undefined;
|
|
9
10
|
export declare const getHmsPeersCache: () => HMSPeersCache | undefined;
|
|
10
11
|
export declare const setHmsPeersCache: (_hmsPeersCache: HMSPeersCache) => void;
|
|
@@ -21,6 +22,7 @@ export type HMSPeerCacheProps = {
|
|
|
21
22
|
videoTrack?: HMSVideoTrack | undefined;
|
|
22
23
|
auxiliaryTracks?: HMSTrack[] | undefined;
|
|
23
24
|
isHandRaised?: boolean | undefined;
|
|
25
|
+
type?: HMSPeerType | undefined;
|
|
24
26
|
};
|
|
25
27
|
export declare class HMSPeersCache {
|
|
26
28
|
private _data;
|
|
@@ -22,6 +22,7 @@ export * from './classes/HMSRemoteAudioTrack';
|
|
|
22
22
|
export * from './classes/HMSPublishSettings';
|
|
23
23
|
export * from './classes/HMSPermissions';
|
|
24
24
|
export * from './classes/HMSPeer';
|
|
25
|
+
export * from './classes/HMSPeerType';
|
|
25
26
|
export * from './classes/HMSLocalVideoTrack';
|
|
26
27
|
export * from './classes/HMSLocalPeer';
|
|
27
28
|
export * from './classes/HMSLocalAudioTrack';
|
|
@@ -87,6 +88,7 @@ export type { HmsViewComponent as HMSView, HmsComponentProps as HMSViewProps, }
|
|
|
87
88
|
export type { HMSPIPConfig } from './classes/HMSPIPConfig';
|
|
88
89
|
export { HMSRecordingState } from './classes/HMSRecordingState';
|
|
89
90
|
export type { HMSPoll } from './classes/polls/HMSPoll';
|
|
91
|
+
export * from './classes/HMSNoiseCancellationPlugin';
|
|
90
92
|
export { HMSPollQuestionType } from './classes/polls/HMSPollQuestionType';
|
|
91
93
|
export { HMSPollType } from './classes/polls/HMSPollType';
|
|
92
94
|
export { HMSPollUserTrackingMode } from './classes/polls/HMSPollUserTrackingMode';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/react-native-hms",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"description": "Integrate Real Time Audio and Video conferencing, Interactive Live Streaming, and Chat in your apps with 100ms React Native SDK. With support for HLS and RTMP Live Streaming and Recording, Picture-in-Picture (PiP), one-to-one Video Call Modes, Audio Rooms, Video Player and much more, add immersive real-time communications to your apps.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -90,7 +90,11 @@
|
|
|
90
90
|
"connection",
|
|
91
91
|
"service",
|
|
92
92
|
"telecom",
|
|
93
|
-
"reaction"
|
|
93
|
+
"reaction",
|
|
94
|
+
"cpaas",
|
|
95
|
+
"polls",
|
|
96
|
+
"quiz",
|
|
97
|
+
"leaderboard"
|
|
94
98
|
],
|
|
95
99
|
"repository": "https://github.com/100mslive/100ms-react-native",
|
|
96
100
|
"author": "Yogesh <yogesh@100ms.live> (https://www.100ms.live/)",
|
package/react-native-hms.podspec
CHANGED
|
@@ -20,4 +20,5 @@ Pod::Spec.new do |s|
|
|
|
20
20
|
s.dependency "HMSSDK", sdkVersions["ios"]
|
|
21
21
|
s.dependency 'HMSBroadcastExtensionSDK', sdkVersions["iOSBroadcastExtension"]
|
|
22
22
|
s.dependency 'HMSHLSPlayerSDK', sdkVersions["iOSHMSHLSPlayer"]
|
|
23
|
+
s.dependency 'HMSNoiseCancellationModels', sdkVersions["iOSNoiseCancellationModels"]
|
|
23
24
|
end
|
package/sdk-versions.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HMSIOSAudioMode } from './HMSIOSAudioMode';
|
|
2
|
+
import type { HMSNoiseCancellationPlugin } from './HMSNoiseCancellationPlugin';
|
|
2
3
|
import type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -19,15 +20,25 @@ export class HMSAudioTrackSettings {
|
|
|
19
20
|
*/
|
|
20
21
|
audioMode?: HMSIOSAudioMode; // ios only
|
|
21
22
|
|
|
23
|
+
/**
|
|
24
|
+
* The noise cancellation plugin to use for the audio track.
|
|
25
|
+
* @type {HMSNoiseCancellationPlugin}
|
|
26
|
+
*
|
|
27
|
+
* Checkout Noise Cancellation docs for more details {@link https://www.100ms.live/docs/ios/v2/how-to-guides/extend-capabilities/plugins/noise-cancellation}
|
|
28
|
+
*/
|
|
29
|
+
noiseCancellationPlugin?: HMSNoiseCancellationPlugin;
|
|
30
|
+
|
|
22
31
|
constructor(params: {
|
|
23
32
|
initialState?: HMSTrackSettingsInitState;
|
|
24
33
|
useHardwareEchoCancellation?: boolean;
|
|
25
34
|
audioSource?: string[];
|
|
26
35
|
audioMode?: HMSIOSAudioMode;
|
|
36
|
+
noiseCancellationPlugin?: HMSNoiseCancellationPlugin;
|
|
27
37
|
}) {
|
|
28
38
|
this.useHardwareEchoCancellation = params.useHardwareEchoCancellation;
|
|
29
39
|
this.initialState = params.initialState;
|
|
30
40
|
this.audioSource = params.audioSource;
|
|
31
41
|
this.audioMode = params.audioMode;
|
|
42
|
+
this.noiseCancellationPlugin = params.noiseCancellationPlugin;
|
|
32
43
|
}
|
|
33
44
|
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import HMSManagerModule from '../modules/HMSManagerModule';
|
|
2
|
+
import { HMSConstants } from './HMSConstants';
|
|
3
|
+
import { logger } from './HMSLogger';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Class representing an HMS Noise Cancellation Plugin.
|
|
7
|
+
*/
|
|
8
|
+
export class HMSNoiseCancellationPlugin {
|
|
9
|
+
modelName: HMSNoiseCancellationModels;
|
|
10
|
+
initialState: HMSNoiseCancellationInitialState;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Creates an instance of HMSNoiseCancellationPlugin.
|
|
14
|
+
* @param {Object} [config] - The configuration options.
|
|
15
|
+
* @param {HMSNoiseCancellationModels} [config.modelName] - The model name for noise cancellation.
|
|
16
|
+
* @param {HMSNoiseCancellationInitialState} [config.initialState] - The initial state for noise cancellation.
|
|
17
|
+
*/
|
|
18
|
+
constructor(config?: {
|
|
19
|
+
modelName: HMSNoiseCancellationModels;
|
|
20
|
+
initialState: HMSNoiseCancellationInitialState;
|
|
21
|
+
}) {
|
|
22
|
+
const data = {
|
|
23
|
+
modelName: HMSNoiseCancellationModels.SmallFullBand,
|
|
24
|
+
initialState: HMSNoiseCancellationInitialState.Disabled,
|
|
25
|
+
...config,
|
|
26
|
+
};
|
|
27
|
+
this.modelName = data.modelName;
|
|
28
|
+
this.initialState = data.initialState;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* To make noise cancellation work your room needs to have noise cancellation feature enabled.
|
|
33
|
+
*
|
|
34
|
+
* Gets whether noise cancellation is available for your room.
|
|
35
|
+
* @returns {boolean} True if noise cancellation is available, false otherwise.
|
|
36
|
+
*
|
|
37
|
+
* Note: You can call this API to check the state of noise cancellation only after successfully joining the room.
|
|
38
|
+
*/
|
|
39
|
+
async isNoiseCancellationAvailable(): Promise<boolean> {
|
|
40
|
+
const data = { id: HMSConstants.DEFAULT_SDK_ID };
|
|
41
|
+
logger?.verbose(
|
|
42
|
+
'#Function HMSNoiseCancellationPlugin#isNoiseCancellationAvailable',
|
|
43
|
+
data
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
try {
|
|
47
|
+
return HMSManagerModule.isNoiseCancellationPluginAvailable(data);
|
|
48
|
+
} catch (e) {
|
|
49
|
+
logger?.error(
|
|
50
|
+
'#Error in #Function HMSNoiseCancellationPlugin#isNoiseCancellationAvailable ',
|
|
51
|
+
e
|
|
52
|
+
);
|
|
53
|
+
return Promise.reject(e);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Enables noise cancellation.
|
|
59
|
+
* @returns {Promise<boolean>} A promise that resolves to true if noise cancellation is enabled, otherwise, rejected promise is returned
|
|
60
|
+
*/
|
|
61
|
+
async enable(): Promise<boolean> {
|
|
62
|
+
const data = { id: HMSConstants.DEFAULT_SDK_ID };
|
|
63
|
+
logger?.verbose('#Function HMSNoiseCancellationPlugin#enable', data);
|
|
64
|
+
|
|
65
|
+
try {
|
|
66
|
+
return HMSManagerModule.enableNoiseCancellationPlugin(data);
|
|
67
|
+
} catch (e) {
|
|
68
|
+
logger?.error(
|
|
69
|
+
'#Error in #Function HMSNoiseCancellationPlugin#enable ',
|
|
70
|
+
e
|
|
71
|
+
);
|
|
72
|
+
return Promise.reject(e);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Disables noise cancellation.
|
|
78
|
+
* @returns {Promise<boolean>} A promise that resolves to true if noise cancellation is disabled, otherwise, rejected promise is returned
|
|
79
|
+
*/
|
|
80
|
+
async disable(): Promise<boolean> {
|
|
81
|
+
const data = { id: HMSConstants.DEFAULT_SDK_ID };
|
|
82
|
+
logger?.verbose('#Function HMSNoiseCancellationPlugin#disable', data);
|
|
83
|
+
|
|
84
|
+
try {
|
|
85
|
+
return HMSManagerModule.disableNoiseCancellationPlugin(data);
|
|
86
|
+
} catch (e) {
|
|
87
|
+
logger?.error(
|
|
88
|
+
'#Error in #Function HMSNoiseCancellationPlugin#disable ',
|
|
89
|
+
e
|
|
90
|
+
);
|
|
91
|
+
return Promise.reject(e);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Checks if noise cancellation is enabled.
|
|
97
|
+
* @returns {boolean} true if noise cancellation is enabled, false otherwise.
|
|
98
|
+
*/
|
|
99
|
+
async isEnabled(): Promise<boolean> {
|
|
100
|
+
const data = { id: HMSConstants.DEFAULT_SDK_ID };
|
|
101
|
+
logger?.verbose('#Function HMSNoiseCancellationPlugin#isEnabled', data);
|
|
102
|
+
|
|
103
|
+
try {
|
|
104
|
+
return HMSManagerModule.isNoiseCancellationPluginEnabled(data);
|
|
105
|
+
} catch (e) {
|
|
106
|
+
logger?.error(
|
|
107
|
+
'#Error in #Function HMSNoiseCancellationPlugin#isEnabled ',
|
|
108
|
+
e
|
|
109
|
+
);
|
|
110
|
+
return Promise.reject(e);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Enum for HMS Noise Cancellation Models.
|
|
117
|
+
* @enum {String}
|
|
118
|
+
*/
|
|
119
|
+
export enum HMSNoiseCancellationModels {
|
|
120
|
+
SmallFullBand = 'SMALL_FULL_BAND',
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Enum for HMS Noise Cancellation Initial State.
|
|
125
|
+
* @enum {String}
|
|
126
|
+
*/
|
|
127
|
+
export enum HMSNoiseCancellationInitialState {
|
|
128
|
+
Enabled = 'ENABLED',
|
|
129
|
+
Disabled = 'DISABLED',
|
|
130
|
+
}
|
package/src/classes/HMSPeer.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { HMSTrack } from './HMSTrack';
|
|
|
5
5
|
import type { HMSVideoTrack } from './HMSVideoTrack';
|
|
6
6
|
import { getHmsPeersCache, getPeerPropertyFromNative } from './HMSPeersCache';
|
|
7
7
|
import { HMSConstants } from './HMSConstants';
|
|
8
|
+
import { HMSPeerType } from './HMSPeerType';
|
|
8
9
|
|
|
9
10
|
export class HMSPeer {
|
|
10
11
|
peerID: string;
|
|
@@ -14,6 +15,7 @@ export class HMSPeer {
|
|
|
14
15
|
private _metadata: string | undefined;
|
|
15
16
|
private _role: HMSRole | undefined;
|
|
16
17
|
private _isHandRaised: boolean = false;
|
|
18
|
+
private _type: HMSPeerType = HMSPeerType.REGULAR;
|
|
17
19
|
|
|
18
20
|
private _updateIsLocal(value: boolean) {
|
|
19
21
|
// If `_isLocal` is outdated, update it
|
|
@@ -50,6 +52,13 @@ export class HMSPeer {
|
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
|
|
55
|
+
private _updateType(value: HMSPeerType) {
|
|
56
|
+
// If `_type` is outdated, update it
|
|
57
|
+
if (this._type !== value) {
|
|
58
|
+
this._type = value;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
53
62
|
constructor(params: { peerID: string; name: string }) {
|
|
54
63
|
this.peerID = params.peerID;
|
|
55
64
|
this.name = params.name;
|
|
@@ -195,4 +204,21 @@ export class HMSPeer {
|
|
|
195
204
|
'auxiliaryTracks'
|
|
196
205
|
);
|
|
197
206
|
}
|
|
207
|
+
|
|
208
|
+
get type(): HMSPeerType {
|
|
209
|
+
const hmsPeersCache = getHmsPeersCache();
|
|
210
|
+
|
|
211
|
+
const value = hmsPeersCache
|
|
212
|
+
? hmsPeersCache.getProperty(this.peerID, 'type')
|
|
213
|
+
: getPeerPropertyFromNative(
|
|
214
|
+
HMSConstants.DEFAULT_SDK_ID,
|
|
215
|
+
this.peerID,
|
|
216
|
+
'type'
|
|
217
|
+
);
|
|
218
|
+
|
|
219
|
+
if (value) {
|
|
220
|
+
this._updateType(value);
|
|
221
|
+
}
|
|
222
|
+
return value ?? this._type;
|
|
223
|
+
}
|
|
198
224
|
}
|