@100mslive/react-native-hms 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +3 -2
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +189 -55
- package/android/src/main/java/com/reactnativehmssdk/HMSHelper.kt +1 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +42 -14
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +202 -46
- package/android/src/main/java/com/reactnativehmssdk/HMSSDKViewManager.kt +5 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSView.kt +29 -21
- package/android/src/main/res/layout/hms_view.xml +2 -2
- package/ios/HMSConstants.swift +31 -0
- package/ios/HMSDecoder.swift +371 -156
- package/ios/HMSManager.m +9 -2
- package/ios/HMSManager.swift +142 -74
- package/ios/HMSRNSDK.swift +393 -181
- package/ios/HMSView.m +1 -0
- package/ios/HMSView.swift +21 -19
- package/lib/commonjs/classes/HMSCameraControl.js +28 -0
- package/lib/commonjs/classes/HMSCameraControl.js.map +1 -0
- package/lib/commonjs/classes/HMSEncoder.js +95 -13
- package/lib/commonjs/classes/HMSEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSLayer.js +14 -0
- package/lib/commonjs/classes/HMSLayer.js.map +1 -0
- package/lib/commonjs/classes/HMSLocalVideoStats.js +11 -0
- package/lib/commonjs/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSPeer.js +1 -1
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPublishSettings.js +2 -0
- package/lib/commonjs/classes/HMSPublishSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSQualityLimitationReason.js +16 -0
- package/lib/commonjs/classes/HMSQualityLimitationReason.js.map +1 -0
- package/lib/commonjs/classes/HMSQualityLimitationReasons.js +27 -0
- package/lib/commonjs/classes/HMSQualityLimitationReasons.js.map +1 -0
- package/lib/commonjs/classes/HMSRemotePeer.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js +39 -3
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRoom.js +4 -0
- package/lib/commonjs/classes/HMSRoom.js.map +1 -1
- package/lib/commonjs/classes/HMSRoomUpdate.js +1 -0
- package/lib/commonjs/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSSDK.js +32 -45
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerDefinition.js +19 -0
- package/lib/commonjs/classes/HMSSimulcastLayerDefinition.js.map +1 -0
- package/lib/commonjs/classes/HMSSimulcastLayerSettingsPolicy.js +23 -0
- package/lib/commonjs/classes/HMSSimulcastLayerSettingsPolicy.js.map +1 -0
- package/lib/commonjs/classes/HMSSimulcastSettings.js +5 -4
- package/lib/commonjs/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettingsPolicy.js +17 -0
- package/lib/commonjs/classes/HMSSimulcastSettingsPolicy.js.map +1 -0
- package/lib/commonjs/classes/HMSSubscribeDegradationPolicy.js +21 -0
- package/lib/commonjs/classes/HMSSubscribeDegradationPolicy.js.map +1 -0
- package/lib/commonjs/classes/HMSSubscribeSettings.js +2 -0
- package/lib/commonjs/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HmsView.js +2 -0
- package/lib/commonjs/classes/HmsView.js.map +1 -1
- package/lib/commonjs/index.js +60 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/classes/HMSCameraControl.js +21 -0
- package/lib/module/classes/HMSCameraControl.js.map +1 -0
- package/lib/module/classes/HMSEncoder.js +95 -13
- package/lib/module/classes/HMSEncoder.js.map +1 -1
- package/lib/module/classes/HMSLayer.js +7 -0
- package/lib/module/classes/HMSLayer.js.map +1 -0
- package/lib/module/classes/HMSLocalVideoStats.js +11 -0
- package/lib/module/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/module/classes/HMSPeer.js +1 -1
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPublishSettings.js +2 -0
- package/lib/module/classes/HMSPublishSettings.js.map +1 -1
- package/lib/module/classes/HMSQualityLimitationReason.js +9 -0
- package/lib/module/classes/HMSQualityLimitationReason.js.map +1 -0
- package/lib/module/classes/HMSQualityLimitationReasons.js +20 -0
- package/lib/module/classes/HMSQualityLimitationReasons.js.map +1 -0
- package/lib/module/classes/HMSRemotePeer.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoTrack.js +39 -3
- package/lib/module/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSRoom.js +4 -0
- package/lib/module/classes/HMSRoom.js.map +1 -1
- package/lib/module/classes/HMSRoomUpdate.js +1 -0
- package/lib/module/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/module/classes/HMSSDK.js +33 -45
- package/lib/module/classes/HMSSDK.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerDefinition.js +12 -0
- package/lib/module/classes/HMSSimulcastLayerDefinition.js.map +1 -0
- package/lib/module/classes/HMSSimulcastLayerSettingsPolicy.js +16 -0
- package/lib/module/classes/HMSSimulcastLayerSettingsPolicy.js.map +1 -0
- package/lib/module/classes/HMSSimulcastSettings.js +5 -4
- package/lib/module/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/module/classes/HMSSimulcastSettingsPolicy.js +10 -0
- package/lib/module/classes/HMSSimulcastSettingsPolicy.js.map +1 -0
- package/lib/module/classes/HMSSubscribeDegradationPolicy.js +14 -0
- package/lib/module/classes/HMSSubscribeDegradationPolicy.js.map +1 -0
- package/lib/module/classes/HMSSubscribeSettings.js +2 -0
- package/lib/module/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoResolution.js.map +1 -1
- package/lib/module/classes/HmsView.js +2 -0
- package/lib/module/classes/HmsView.js.map +1 -1
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/classes/HMSCameraControl.d.ts +9 -0
- package/lib/typescript/classes/HMSEncoder.d.ts +13 -1
- package/lib/typescript/classes/HMSLayer.d.ts +5 -0
- package/lib/typescript/classes/HMSLocalVideoStats.d.ts +6 -0
- package/lib/typescript/classes/HMSPeer.d.ts +1 -1
- package/lib/typescript/classes/HMSPublishSettings.d.ts +3 -0
- package/lib/typescript/classes/HMSQualityLimitationReason.d.ts +7 -0
- package/lib/typescript/classes/HMSQualityLimitationReasons.d.ts +17 -0
- package/lib/typescript/classes/HMSRemotePeer.d.ts +0 -1
- package/lib/typescript/classes/HMSRemoteVideoTrack.d.ts +6 -2
- package/lib/typescript/classes/HMSRoomUpdate.d.ts +2 -1
- package/lib/typescript/classes/HMSSDK.d.ts +5 -31
- package/lib/typescript/classes/HMSSimulcastLayerDefinition.d.ts +10 -0
- package/lib/typescript/classes/HMSSimulcastLayerSettingsPolicy.d.ts +12 -0
- package/lib/typescript/classes/HMSSimulcastSettings.d.ts +7 -3
- package/lib/typescript/classes/HMSSimulcastSettingsPolicy.d.ts +7 -0
- package/lib/typescript/classes/HMSSubscribeDegradationPolicy.d.ts +10 -0
- package/lib/typescript/classes/HMSSubscribeSettings.d.ts +5 -2
- package/lib/typescript/classes/HMSVideoResolution.d.ts +2 -2
- package/lib/typescript/classes/HmsView.d.ts +2 -2
- package/lib/typescript/index.d.ts +5 -0
- package/package.json +1 -1
- package/sdk-versions.json +3 -3
- package/src/classes/HMSCameraControl.ts +21 -0
- package/src/classes/HMSEncoder.ts +125 -11
- package/src/classes/HMSLayer.ts +5 -0
- package/src/classes/HMSLocalVideoStats.ts +21 -0
- package/src/classes/HMSPeer.ts +1 -1
- package/src/classes/HMSPublishSettings.ts +4 -0
- package/src/classes/HMSQualityLimitationReason.ts +7 -0
- package/src/classes/HMSQualityLimitationReasons.ts +27 -0
- package/src/classes/HMSRemotePeer.ts +0 -1
- package/src/classes/HMSRemoteVideoTrack.ts +52 -4
- package/src/classes/HMSRoom.ts +2 -0
- package/src/classes/HMSRoomUpdate.ts +1 -0
- package/src/classes/HMSSDK.tsx +54 -48
- package/src/classes/HMSSimulcastLayerDefinition.ts +12 -0
- package/src/classes/HMSSimulcastLayerSettingsPolicy.ts +18 -0
- package/src/classes/HMSSimulcastSettings.ts +12 -3
- package/src/classes/HMSSimulcastSettingsPolicy.ts +9 -0
- package/src/classes/HMSSubscribeDegradationPolicy.ts +15 -0
- package/src/classes/HMSSubscribeSettings.ts +10 -2
- package/src/classes/HMSVideoResolution.ts +1 -1
- package/src/classes/HmsView.tsx +5 -1
- package/src/index.ts +5 -0
|
@@ -0,0 +1,12 @@
|
|
|
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); }
|
|
4
|
+
export class HMSSimulcastLayerDefinition {
|
|
5
|
+
constructor(params) {
|
|
6
|
+
_defineProperty(this, "layer", void 0);
|
|
7
|
+
_defineProperty(this, "resolution", void 0);
|
|
8
|
+
this.layer = params.layer;
|
|
9
|
+
this.resolution = params.resolution;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=HMSSimulcastLayerDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HMSSimulcastLayerDefinition","constructor","params","_defineProperty","layer","resolution"],"sources":["HMSSimulcastLayerDefinition.ts"],"sourcesContent":["import type { HMSLayer } from './HMSLayer';\nimport type { HMSVideoResolution } from './HMSVideoResolution';\n\nexport class HMSSimulcastLayerDefinition {\n layer: HMSLayer;\n resolution: HMSVideoResolution;\n\n constructor(params: { layer: HMSLayer; resolution: HMSVideoResolution }) {\n this.layer = params.layer;\n this.resolution = params.resolution;\n }\n}\n"],"mappings":";;;AAGA,OAAO,MAAMA,2BAA2B,CAAC;EAIvCC,WAAWA,CAACC,MAA2D,EAAE;IAAAC,eAAA;IAAAA,eAAA;IACvE,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IACzB,IAAI,CAACC,UAAU,GAAGH,MAAM,CAACG,UAAU;EACrC;AACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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); }
|
|
4
|
+
export class HMSSimulcastLayerSettingsPolicy {
|
|
5
|
+
constructor(params) {
|
|
6
|
+
_defineProperty(this, "rid", void 0);
|
|
7
|
+
_defineProperty(this, "scaleResolutionDownBy", void 0);
|
|
8
|
+
_defineProperty(this, "maxBitrate", void 0);
|
|
9
|
+
_defineProperty(this, "maxFramerate", void 0);
|
|
10
|
+
this.rid = params.rid;
|
|
11
|
+
this.scaleResolutionDownBy = params.scaleResolutionDownBy;
|
|
12
|
+
this.maxBitrate = params.maxBitrate;
|
|
13
|
+
this.maxFramerate = params.maxFramerate;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=HMSSimulcastLayerSettingsPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HMSSimulcastLayerSettingsPolicy","constructor","params","_defineProperty","rid","scaleResolutionDownBy","maxBitrate","maxFramerate"],"sources":["HMSSimulcastLayerSettingsPolicy.ts"],"sourcesContent":["export class HMSSimulcastLayerSettingsPolicy {\n rid?: string;\n scaleResolutionDownBy?: number;\n maxBitrate?: number;\n maxFramerate?: number;\n\n constructor(params: {\n rid?: string;\n scaleResolutionDownBy?: number;\n maxBitrate?: number;\n maxFramerate?: number;\n }) {\n this.rid = params.rid;\n this.scaleResolutionDownBy = params.scaleResolutionDownBy;\n this.maxBitrate = params.maxBitrate;\n this.maxFramerate = params.maxFramerate;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,+BAA+B,CAAC;EAM3CC,WAAWA,CAACC,MAKX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,GAAG,GAAGF,MAAM,CAACE,GAAG;IACrB,IAAI,CAACC,qBAAqB,GAAGH,MAAM,CAACG,qBAAqB;IACzD,IAAI,CAACC,UAAU,GAAGJ,MAAM,CAACI,UAAU;IACnC,IAAI,CAACC,YAAY,GAAGL,MAAM,CAACK,YAAY;EACzC;AACF"}
|
|
@@ -2,10 +2,11 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
2
2
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
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); }
|
|
4
4
|
export class HMSSimulcastSettings {
|
|
5
|
-
constructor() {
|
|
6
|
-
_defineProperty(this, "
|
|
7
|
-
_defineProperty(this, "
|
|
8
|
-
|
|
5
|
+
constructor(params) {
|
|
6
|
+
_defineProperty(this, "video", void 0);
|
|
7
|
+
_defineProperty(this, "screen", void 0);
|
|
8
|
+
this.video = params.video;
|
|
9
|
+
this.screen = params.screen;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=HMSSimulcastSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSSimulcastSettings","constructor","_defineProperty"],"sources":["HMSSimulcastSettings.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSSimulcastSettings","constructor","params","_defineProperty","video","screen"],"sources":["HMSSimulcastSettings.ts"],"sourcesContent":["import type { HMSSimulcastSettingsPolicy } from './HMSSimulcastSettingsPolicy';\n\nexport class HMSSimulcastSettings {\n video?: HMSSimulcastSettingsPolicy;\n screen?: HMSSimulcastSettingsPolicy;\n\n constructor(params: {\n video?: HMSSimulcastSettingsPolicy;\n screen?: HMSSimulcastSettingsPolicy;\n }) {\n this.video = params.video;\n this.screen = params.screen;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,oBAAoB,CAAC;EAIhCC,WAAWA,CAACC,MAGX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IACzB,IAAI,CAACC,MAAM,GAAGH,MAAM,CAACG,MAAM;EAC7B;AACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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); }
|
|
4
|
+
export class HMSSimulcastSettingsPolicy {
|
|
5
|
+
constructor(params) {
|
|
6
|
+
_defineProperty(this, "layers", void 0);
|
|
7
|
+
this.layers = params.layers;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=HMSSimulcastSettingsPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HMSSimulcastSettingsPolicy","constructor","params","_defineProperty","layers"],"sources":["HMSSimulcastSettingsPolicy.ts"],"sourcesContent":["import type { HMSSimulcastLayerSettingsPolicy } from './HMSSimulcastLayerSettingsPolicy';\n\nexport class HMSSimulcastSettingsPolicy {\n layers?: HMSSimulcastLayerSettingsPolicy[];\n\n constructor(params: { layers?: HMSSimulcastLayerSettingsPolicy[] }) {\n this.layers = params.layers;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,0BAA0B,CAAC;EAGtCC,WAAWA,CAACC,MAAsD,EAAE;IAAAC,eAAA;IAClE,IAAI,CAACC,MAAM,GAAGF,MAAM,CAACE,MAAM;EAC7B;AACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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); }
|
|
4
|
+
export class HMSSubscribeDegradationPolicy {
|
|
5
|
+
constructor(params) {
|
|
6
|
+
_defineProperty(this, "packetLossThreshold", void 0);
|
|
7
|
+
_defineProperty(this, "degradeGracePeriodSeconds", void 0);
|
|
8
|
+
_defineProperty(this, "recoverGracePeriodSeconds", void 0);
|
|
9
|
+
this.packetLossThreshold = params.packetLossThreshold;
|
|
10
|
+
this.degradeGracePeriodSeconds = params.degradeGracePeriodSeconds;
|
|
11
|
+
this.recoverGracePeriodSeconds = params.recoverGracePeriodSeconds;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=HMSSubscribeDegradationPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HMSSubscribeDegradationPolicy","constructor","params","_defineProperty","packetLossThreshold","degradeGracePeriodSeconds","recoverGracePeriodSeconds"],"sources":["HMSSubscribeDegradationPolicy.ts"],"sourcesContent":["export class HMSSubscribeDegradationPolicy {\n packetLossThreshold?: number;\n degradeGracePeriodSeconds?: number;\n recoverGracePeriodSeconds?: number;\n\n constructor(params: {\n packetLossThreshold?: number;\n degradeGracePeriodSeconds?: number;\n recoverGracePeriodSeconds?: number;\n }) {\n this.packetLossThreshold = params.packetLossThreshold;\n this.degradeGracePeriodSeconds = params.degradeGracePeriodSeconds;\n this.recoverGracePeriodSeconds = params.recoverGracePeriodSeconds;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,6BAA6B,CAAC;EAKzCC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,mBAAmB,GAAGF,MAAM,CAACE,mBAAmB;IACrD,IAAI,CAACC,yBAAyB,GAAGH,MAAM,CAACG,yBAAyB;IACjE,IAAI,CAACC,yBAAyB,GAAGJ,MAAM,CAACI,yBAAyB;EACnE;AACF"}
|
|
@@ -5,8 +5,10 @@ export class HMSSubscribeSettings {
|
|
|
5
5
|
constructor(params) {
|
|
6
6
|
_defineProperty(this, "subscribeTo", void 0);
|
|
7
7
|
_defineProperty(this, "maxSubsBitRate", void 0);
|
|
8
|
+
_defineProperty(this, "subscribeDegradation", void 0);
|
|
8
9
|
this.subscribeTo = params.subscribeTo;
|
|
9
10
|
this.maxSubsBitRate = params.maxSubsBitRate;
|
|
11
|
+
this.subscribeDegradation = params.subscribeDegradation;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=HMSSubscribeSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSSubscribeSettings","constructor","params","_defineProperty","subscribeTo","maxSubsBitRate"],"sources":["HMSSubscribeSettings.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSSubscribeSettings","constructor","params","_defineProperty","subscribeTo","maxSubsBitRate","subscribeDegradation"],"sources":["HMSSubscribeSettings.ts"],"sourcesContent":["import type { HMSSubscribeDegradationPolicy } from './HMSSubscribeDegradationPolicy';\n\nexport class HMSSubscribeSettings {\n subscribeTo?: string[];\n maxSubsBitRate: number;\n subscribeDegradation?: HMSSubscribeDegradationPolicy;\n\n constructor(params: {\n subscribeTo?: string[];\n maxSubsBitRate: number;\n subscribeDegradation?: HMSSubscribeDegradationPolicy;\n }) {\n this.subscribeTo = params.subscribeTo;\n this.maxSubsBitRate = params.maxSubsBitRate;\n this.subscribeDegradation = params.subscribeDegradation;\n }\n}\n"],"mappings":";;;AAEA,OAAO,MAAMA,oBAAoB,CAAC;EAKhCC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,WAAW,GAAGF,MAAM,CAACE,WAAW;IACrC,IAAI,CAACC,cAAc,GAAGH,MAAM,CAACG,cAAc;IAC3C,IAAI,CAACC,oBAAoB,GAAGJ,MAAM,CAACI,oBAAoB;EACzD;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoResolution","constructor","params","_defineProperty","height","width"],"sources":["HMSVideoResolution.ts"],"sourcesContent":["export class HMSVideoResolution {\n height?: number;\n width?: number;\n\n constructor(params: { height
|
|
1
|
+
{"version":3,"names":["HMSVideoResolution","constructor","params","_defineProperty","height","width"],"sources":["HMSVideoResolution.ts"],"sourcesContent":["export class HMSVideoResolution {\n height?: number;\n width?: number;\n\n constructor(params: { height?: number; width?: number }) {\n this.height = params.height;\n this.width = params.width;\n }\n}\n"],"mappings":";;;AAAA,OAAO,MAAMA,kBAAkB,CAAC;EAI9BC,WAAWA,CAACC,MAA2C,EAAE;IAAAC,eAAA;IAAAA,eAAA;IACvD,IAAI,CAACC,MAAM,GAAGF,MAAM,CAACE,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;EAC3B;AACF"}
|
|
@@ -12,6 +12,7 @@ export const HmsViewComponent = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
12
12
|
id = HMSConstants.DEFAULT_SDK_ID,
|
|
13
13
|
mirror = false,
|
|
14
14
|
setZOrderMediaOverlay = false,
|
|
15
|
+
autoSimulcast = true,
|
|
15
16
|
scaleType = HMSVideoViewMode.ASPECT_FILL
|
|
16
17
|
} = props;
|
|
17
18
|
const hmsViewRef = useRef();
|
|
@@ -87,6 +88,7 @@ export const HmsViewComponent = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
87
88
|
onChange: onChange,
|
|
88
89
|
data: data,
|
|
89
90
|
style: tempVal === 0 ? style : temporaryStyles.customStyle,
|
|
91
|
+
autoSimulcast: autoSimulcast,
|
|
90
92
|
scaleType: scaleType,
|
|
91
93
|
setZOrderMediaOverlay: setZOrderMediaOverlay,
|
|
92
94
|
onDataReturned: _onDataReturned
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","useImperativeHandle","useRef","findNodeHandle","requireNativeComponent","StyleSheet","UIManager","HMSConstants","HMSVideoViewMode","HmsView","_nextRequestId","_requestMap","Map","HmsViewComponent","forwardRef","props","ref","trackId","style","temporaryStyles","customStyle","id","DEFAULT_SDK_ID","mirror","setZOrderMediaOverlay","scaleType","ASPECT_FILL","hmsViewRef","timerRef","tempVal","setTempVal","data","current","clearTimeout","onChange","values","console","log","setTimeout","_onDataReturned","event","requestId","result","error","nativeEvent","promise","get","resolve","reject","delete","capture","requestMap","Promise","set","viewManagerConfig","getViewManagerConfig","dispatchViewManagerCommand","Commands","createElement","onDataReturned","create","width","height"],"sources":["HmsView.tsx"],"sourcesContent":["import React, { useState, useEffect, useImperativeHandle, useRef } from 'react';\nimport {\n findNodeHandle,\n requireNativeComponent,\n StyleSheet,\n UIManager,\n ViewStyle,\n} from 'react-native';\nimport { HMSConstants } from './HMSConstants';\nimport { HMSVideoViewMode } from './HMSVideoViewMode';\n\ninterface HmsViewProps {\n data: {\n trackId: string;\n id: string;\n mirror: boolean;\n };\n setZOrderMediaOverlay: boolean;\n scaleType: HMSVideoViewMode;\n style: ViewStyle;\n onChange: Function;\n onDataReturned: Function;\n}\n\nconst HmsView = requireNativeComponent<HmsViewProps>('HMSView');\nlet _nextRequestId = 1;\nlet _requestMap = new Map();\n\
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","useImperativeHandle","useRef","findNodeHandle","requireNativeComponent","StyleSheet","UIManager","HMSConstants","HMSVideoViewMode","HmsView","_nextRequestId","_requestMap","Map","HmsViewComponent","forwardRef","props","ref","trackId","style","temporaryStyles","customStyle","id","DEFAULT_SDK_ID","mirror","setZOrderMediaOverlay","autoSimulcast","scaleType","ASPECT_FILL","hmsViewRef","timerRef","tempVal","setTempVal","data","current","clearTimeout","onChange","values","console","log","setTimeout","_onDataReturned","event","requestId","result","error","nativeEvent","promise","get","resolve","reject","delete","capture","requestMap","Promise","set","viewManagerConfig","getViewManagerConfig","dispatchViewManagerCommand","Commands","createElement","onDataReturned","create","width","height"],"sources":["HmsView.tsx"],"sourcesContent":["import React, { useState, useEffect, useImperativeHandle, useRef } from 'react';\nimport {\n findNodeHandle,\n requireNativeComponent,\n StyleSheet,\n UIManager,\n ViewStyle,\n} from 'react-native';\nimport { HMSConstants } from './HMSConstants';\nimport { HMSVideoViewMode } from './HMSVideoViewMode';\n\ninterface HmsViewProps {\n data: {\n trackId: string;\n id: string;\n mirror: boolean;\n };\n autoSimulcast: boolean;\n setZOrderMediaOverlay: boolean;\n scaleType: HMSVideoViewMode;\n style: ViewStyle;\n onChange: Function;\n onDataReturned: Function;\n}\n\nconst HmsView = requireNativeComponent<HmsViewProps>('HMSView');\nlet _nextRequestId = 1;\nlet _requestMap = new Map();\n\nexport interface HmsComponentProps {\n trackId: string;\n style?: ViewStyle;\n mirror?: boolean;\n autoSimulcast?: boolean;\n scaleType?: HMSVideoViewMode;\n setZOrderMediaOverlay?: boolean;\n id: string;\n}\n\nexport const HmsViewComponent = React.forwardRef<any, HmsComponentProps>(\n (props, ref) => {\n const {\n trackId,\n style = temporaryStyles.customStyle,\n id = HMSConstants.DEFAULT_SDK_ID,\n mirror = false,\n setZOrderMediaOverlay = false,\n autoSimulcast = true,\n scaleType = HMSVideoViewMode.ASPECT_FILL,\n } = props;\n\n const hmsViewRef: any = useRef();\n const timerRef = useRef<null | NodeJS.Timeout>(null);\n const [tempVal, setTempVal] = useState(0);\n const data = {\n trackId,\n id,\n mirror,\n };\n\n useEffect(() => {\n return () => {\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n }\n };\n }, []);\n\n const onChange = (values: any) => {\n console.log(values, 'values');\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n }\n\n timerRef.current = setTimeout(() => {\n setTempVal(1);\n timerRef.current = null;\n }, 2000);\n };\n\n const _onDataReturned = (event: {\n nativeEvent: { requestId: any; result: any; error: any };\n }) => {\n // We grab the relevant data out of our event.\n let { requestId, result, error } = event.nativeEvent;\n // Then we get the promise we saved earlier for the given request ID.\n let promise = _requestMap.get(requestId);\n if (result) {\n // If it was successful, we resolve the promise.\n promise.resolve(result);\n } else {\n // Otherwise, we reject it.\n promise.reject(error);\n }\n // Finally, we clean up our request map.\n _requestMap.delete(requestId);\n };\n\n const capture = async () => {\n let requestId = _nextRequestId++;\n let requestMap = _requestMap;\n\n // We create a promise here that will be resolved once `_onRequestDone` is\n // called.\n let promise = new Promise(function (resolve, reject) {\n requestMap.set(requestId, { resolve, reject });\n });\n const viewManagerConfig = UIManager.getViewManagerConfig('HMSView');\n UIManager.dispatchViewManagerCommand(\n findNodeHandle(hmsViewRef.current),\n viewManagerConfig.Commands.capture,\n [requestId]\n );\n return promise;\n };\n\n useImperativeHandle(ref, () => {\n return {\n capture,\n };\n });\n\n useEffect(() => {\n setTempVal(0);\n }, [tempVal]);\n\n return (\n <HmsView\n ref={hmsViewRef}\n onChange={onChange}\n data={data}\n style={tempVal === 0 ? style : temporaryStyles.customStyle}\n autoSimulcast={autoSimulcast}\n scaleType={scaleType}\n setZOrderMediaOverlay={setZOrderMediaOverlay}\n onDataReturned={_onDataReturned}\n />\n );\n }\n);\n\nconst temporaryStyles = StyleSheet.create({\n customStyle: {\n width: '100%',\n height: '50%',\n },\n});\n"],"mappings":"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"}
|
package/lib/module/index.js
CHANGED
|
@@ -75,6 +75,11 @@ export * from './classes/HMSLogSettings';
|
|
|
75
75
|
export * from './classes/HMSLogAlarmManager';
|
|
76
76
|
export * from './classes/HMSMessageType';
|
|
77
77
|
export * from './classes/HMSPIPListenerActions';
|
|
78
|
+
export * from './classes/HMSLayer';
|
|
79
|
+
export * from './classes/HMSSimulcastLayerDefinition';
|
|
80
|
+
export * from './classes/HMSQualityLimitationReasons';
|
|
81
|
+
export * from './classes/HMSQualityLimitationReason';
|
|
82
|
+
export * from './classes/HMSCameraControl';
|
|
78
83
|
import { HMSSDK as HmsManager } from './classes/HMSSDK';
|
|
79
84
|
export default HmsManager;
|
|
80
85
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSSDK","HmsManager"],"sources":["index.ts"],"sourcesContent":["export * from './classes/HMSConfig';\nexport * from './classes/HMSUpdateListenerActions';\nexport * from './classes/HMSMessage';\nexport * from './classes/HMSVideoTrackSettings';\nexport * from './classes/HMSVideoTrack';\nexport * from './classes/HMSVideoSettings';\nexport * from './classes/HMSVideoCodec';\nexport * from './classes/HMSTrackSettings';\nexport * from './classes/HMSTrack';\nexport * from './classes/HMSTrackType';\nexport * from './classes/HMSTrackSource';\nexport * from './classes/HMSSubscribeSettings';\nexport * from './classes/HMSSimulcastSettings';\nexport * from './classes/HMSSimulcastLayerSettings';\nexport * from './classes/HMSSDK';\nexport * from './classes/HMSRoom';\nexport * from './classes/HMSRoleChangeRequest';\nexport * from './classes/HMSRole';\nexport * from './classes/HMSRemoteVideoTrack';\nexport * from './classes/HMSRemotePeer';\nexport * from './classes/HMSRemoteAudioTrack';\nexport * from './classes/HMSPublishSettings';\nexport * from './classes/HMSPermissions';\nexport * from './classes/HMSPeer';\nexport * from './classes/HMSLocalVideoTrack';\nexport * from './classes/HMSLocalPeer';\nexport * from './classes/HMSLocalAudioTrack';\nexport * from './classes/HMSHelper';\nexport * from './classes/HMSEncoder';\nexport * from './classes/HMSAudioTrackSettings';\nexport * from './classes/HMSAudioTrack';\nexport * from './classes/HMSAudioSettings';\nexport * from './classes/HMSAudioCodec';\nexport * from './classes/HMSPeerUpdate';\nexport * from './classes/HMSRoomUpdate';\nexport * from './classes/HMSTrackUpdate';\nexport * from './classes/HMSLogger';\nexport * from './classes/HMSLogLevel';\nexport * from './classes/HMSVideoViewMode';\nexport * from './classes/HMSChangeTrackStateRequest';\nexport * from './classes/HMSSpeaker';\nexport * from './classes/HMSCameraFacing';\nexport * from './classes/HMSException';\nexport * from './classes/HMSRtmpStreamingState';\nexport * from './classes/HMSServerRecordingState';\nexport * from './classes/HMSBrowserRecordingState';\nexport * from './classes/HMSRTMPConfig';\nexport * from './classes/HMSHLSConfig';\nexport * from './classes/HMSHLSMeetingURLVariant';\nexport * from './classes/HMSHLSVariant';\nexport * from './classes/HMSHLSStreamingState';\nexport * from './classes/HMSVideoResolution';\nexport * from './classes/HMSLocalAudioStats';\nexport * from './classes/HMSLocalVideoStats';\nexport * from './classes/HMSRTCStats';\nexport * from './classes/HMSRTCStatsReport';\nexport * from './classes/HMSRemoteAudioStats';\nexport * from './classes/HMSRemoteVideoStats';\nexport * from './classes/HMSHLSRecordingConfig';\nexport * from './classes/HMSHLSRecordingState';\nexport * from './classes/HMSMessageRecipient';\nexport * from './classes/HMSMessageRecipientType';\nexport * from './classes/HMSNetworkQuality';\nexport * from './classes/HMSRtmpVideoResolution';\nexport * from './classes/HMSAudioDevice';\nexport * from './classes/HMSAudioMode';\nexport * from './classes/HMSAudioMixingMode';\nexport * from './classes/HMSAudioNode';\nexport * from './classes/HMSMicNode';\nexport * from './classes/HMSScreenBroadcastAudioReceiverNode';\nexport * from './classes/HMSAudioFilePlayerNode';\nexport * from './classes/HMSAudioMixerSource';\nexport * from './classes/HMSTrackSettingsInitState';\nexport * from './classes/HMSLogSettings';\nexport * from './classes/HMSLogAlarmManager';\nexport * from './classes/HMSMessageType';\nexport * from './classes/HMSPIPListenerActions';\nexport type { HmsViewComponent as HMSView } from './classes/HmsView';\n\nimport { HMSSDK as HmsManager } from './classes/HMSSDK';\nexport default HmsManager;\n"],"mappings":"AAAA,cAAc,qBAAqB;AACnC,cAAc,oCAAoC;AAClD,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,kBAAkB;AAChC,cAAc,mBAAmB;AACjC,cAAc,gCAAgC;AAC9C,cAAc,mBAAmB;AACjC,cAAc,+BAA+B;AAC7C,cAAc,yBAAyB;AACvC,cAAc,+BAA+B;AAC7C,cAAc,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,mBAAmB;AACjC,cAAc,8BAA8B;AAC5C,cAAc,wBAAwB;AACtC,cAAc,8BAA8B;AAC5C,cAAc,qBAAqB;AACnC,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,0BAA0B;AACxC,cAAc,qBAAqB;AACnC,cAAc,uBAAuB;AACrC,cAAc,4BAA4B;AAC1C,cAAc,sCAAsC;AACpD,cAAc,sBAAsB;AACpC,cAAc,2BAA2B;AACzC,cAAc,wBAAwB;AACtC,cAAc,iCAAiC;AAC/C,cAAc,mCAAmC;AACjD,cAAc,oCAAoC;AAClD,cAAc,yBAAyB;AACvC,cAAc,wBAAwB;AACtC,cAAc,mCAAmC;AACjD,cAAc,yBAAyB;AACvC,cAAc,gCAAgC;AAC9C,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,uBAAuB;AACrC,cAAc,6BAA6B;AAC3C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,gCAAgC;AAC9C,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,cAAc,0BAA0B;AACxC,cAAc,wBAAwB;AACtC,cAAc,8BAA8B;AAC5C,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,+CAA+C;AAC7D,cAAc,kCAAkC;AAChD,cAAc,+BAA+B;AAC7C,cAAc,qCAAqC;AACnD,cAAc,0BAA0B;AACxC,cAAc,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,iCAAiC;
|
|
1
|
+
{"version":3,"names":["HMSSDK","HmsManager"],"sources":["index.ts"],"sourcesContent":["export * from './classes/HMSConfig';\nexport * from './classes/HMSUpdateListenerActions';\nexport * from './classes/HMSMessage';\nexport * from './classes/HMSVideoTrackSettings';\nexport * from './classes/HMSVideoTrack';\nexport * from './classes/HMSVideoSettings';\nexport * from './classes/HMSVideoCodec';\nexport * from './classes/HMSTrackSettings';\nexport * from './classes/HMSTrack';\nexport * from './classes/HMSTrackType';\nexport * from './classes/HMSTrackSource';\nexport * from './classes/HMSSubscribeSettings';\nexport * from './classes/HMSSimulcastSettings';\nexport * from './classes/HMSSimulcastLayerSettings';\nexport * from './classes/HMSSDK';\nexport * from './classes/HMSRoom';\nexport * from './classes/HMSRoleChangeRequest';\nexport * from './classes/HMSRole';\nexport * from './classes/HMSRemoteVideoTrack';\nexport * from './classes/HMSRemotePeer';\nexport * from './classes/HMSRemoteAudioTrack';\nexport * from './classes/HMSPublishSettings';\nexport * from './classes/HMSPermissions';\nexport * from './classes/HMSPeer';\nexport * from './classes/HMSLocalVideoTrack';\nexport * from './classes/HMSLocalPeer';\nexport * from './classes/HMSLocalAudioTrack';\nexport * from './classes/HMSHelper';\nexport * from './classes/HMSEncoder';\nexport * from './classes/HMSAudioTrackSettings';\nexport * from './classes/HMSAudioTrack';\nexport * from './classes/HMSAudioSettings';\nexport * from './classes/HMSAudioCodec';\nexport * from './classes/HMSPeerUpdate';\nexport * from './classes/HMSRoomUpdate';\nexport * from './classes/HMSTrackUpdate';\nexport * from './classes/HMSLogger';\nexport * from './classes/HMSLogLevel';\nexport * from './classes/HMSVideoViewMode';\nexport * from './classes/HMSChangeTrackStateRequest';\nexport * from './classes/HMSSpeaker';\nexport * from './classes/HMSCameraFacing';\nexport * from './classes/HMSException';\nexport * from './classes/HMSRtmpStreamingState';\nexport * from './classes/HMSServerRecordingState';\nexport * from './classes/HMSBrowserRecordingState';\nexport * from './classes/HMSRTMPConfig';\nexport * from './classes/HMSHLSConfig';\nexport * from './classes/HMSHLSMeetingURLVariant';\nexport * from './classes/HMSHLSVariant';\nexport * from './classes/HMSHLSStreamingState';\nexport * from './classes/HMSVideoResolution';\nexport * from './classes/HMSLocalAudioStats';\nexport * from './classes/HMSLocalVideoStats';\nexport * from './classes/HMSRTCStats';\nexport * from './classes/HMSRTCStatsReport';\nexport * from './classes/HMSRemoteAudioStats';\nexport * from './classes/HMSRemoteVideoStats';\nexport * from './classes/HMSHLSRecordingConfig';\nexport * from './classes/HMSHLSRecordingState';\nexport * from './classes/HMSMessageRecipient';\nexport * from './classes/HMSMessageRecipientType';\nexport * from './classes/HMSNetworkQuality';\nexport * from './classes/HMSRtmpVideoResolution';\nexport * from './classes/HMSAudioDevice';\nexport * from './classes/HMSAudioMode';\nexport * from './classes/HMSAudioMixingMode';\nexport * from './classes/HMSAudioNode';\nexport * from './classes/HMSMicNode';\nexport * from './classes/HMSScreenBroadcastAudioReceiverNode';\nexport * from './classes/HMSAudioFilePlayerNode';\nexport * from './classes/HMSAudioMixerSource';\nexport * from './classes/HMSTrackSettingsInitState';\nexport * from './classes/HMSLogSettings';\nexport * from './classes/HMSLogAlarmManager';\nexport * from './classes/HMSMessageType';\nexport * from './classes/HMSPIPListenerActions';\nexport * from './classes/HMSLayer';\nexport * from './classes/HMSSimulcastLayerDefinition';\nexport * from './classes/HMSQualityLimitationReasons';\nexport * from './classes/HMSQualityLimitationReason';\nexport * from './classes/HMSCameraControl';\nexport type { HmsViewComponent as HMSView } from './classes/HmsView';\n\nimport { HMSSDK as HmsManager } from './classes/HMSSDK';\nexport default HmsManager;\n"],"mappings":"AAAA,cAAc,qBAAqB;AACnC,cAAc,oCAAoC;AAClD,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,gCAAgC;AAC9C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,kBAAkB;AAChC,cAAc,mBAAmB;AACjC,cAAc,gCAAgC;AAC9C,cAAc,mBAAmB;AACjC,cAAc,+BAA+B;AAC7C,cAAc,yBAAyB;AACvC,cAAc,+BAA+B;AAC7C,cAAc,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,mBAAmB;AACjC,cAAc,8BAA8B;AAC5C,cAAc,wBAAwB;AACtC,cAAc,8BAA8B;AAC5C,cAAc,qBAAqB;AACnC,cAAc,sBAAsB;AACpC,cAAc,iCAAiC;AAC/C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,0BAA0B;AACxC,cAAc,qBAAqB;AACnC,cAAc,uBAAuB;AACrC,cAAc,4BAA4B;AAC1C,cAAc,sCAAsC;AACpD,cAAc,sBAAsB;AACpC,cAAc,2BAA2B;AACzC,cAAc,wBAAwB;AACtC,cAAc,iCAAiC;AAC/C,cAAc,mCAAmC;AACjD,cAAc,oCAAoC;AAClD,cAAc,yBAAyB;AACvC,cAAc,wBAAwB;AACtC,cAAc,mCAAmC;AACjD,cAAc,yBAAyB;AACvC,cAAc,gCAAgC;AAC9C,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,8BAA8B;AAC5C,cAAc,uBAAuB;AACrC,cAAc,6BAA6B;AAC3C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,gCAAgC;AAC9C,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,cAAc,0BAA0B;AACxC,cAAc,wBAAwB;AACtC,cAAc,8BAA8B;AAC5C,cAAc,wBAAwB;AACtC,cAAc,sBAAsB;AACpC,cAAc,+CAA+C;AAC7D,cAAc,kCAAkC;AAChD,cAAc,+BAA+B;AAC7C,cAAc,qCAAqC;AACnD,cAAc,0BAA0B;AACxC,cAAc,8BAA8B;AAC5C,cAAc,0BAA0B;AACxC,cAAc,iCAAiC;AAC/C,cAAc,oBAAoB;AAClC,cAAc,uCAAuC;AACrD,cAAc,uCAAuC;AACrD,cAAc,sCAAsC;AACpD,cAAc,4BAA4B;AAG1C,SAASA,MAAM,IAAIC,UAAU,QAAQ,kBAAkB;AACvD,eAAeA,UAAU"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class HMSCameraControl {
|
|
2
|
+
/**
|
|
3
|
+
* It captures the image from the device camera at max possible resolution.
|
|
4
|
+
*
|
|
5
|
+
* @param {boolean} [flash=false] flash - value indicating whether to use flash while capturing image or not
|
|
6
|
+
* @returns Promise - which is resolved with the file path of the captured image saved on the disk
|
|
7
|
+
*/
|
|
8
|
+
static captureImageAtMaxSupportedResolution(flash?: boolean): Promise<string>;
|
|
9
|
+
}
|
|
@@ -28,10 +28,16 @@ import { HMSServerRecordingState } from './HMSServerRecordingState';
|
|
|
28
28
|
import { HMSMessage } from './HMSMessage';
|
|
29
29
|
import { HMSMessageRecipient } from './HMSMessageRecipient';
|
|
30
30
|
import { HMSException } from './HMSException';
|
|
31
|
+
import { HMSLocalAudioStats } from './HMSLocalAudioStats';
|
|
32
|
+
import { HMSLocalVideoStats } from './HMSLocalVideoStats';
|
|
33
|
+
import { HMSRemoteAudioStats } from './HMSRemoteAudioStats';
|
|
34
|
+
import { HMSRemoteVideoStats } from './HMSRemoteVideoStats';
|
|
35
|
+
import { HMSSimulcastLayerDefinition } from './HMSSimulcastLayerDefinition';
|
|
36
|
+
import { HMSQualityLimitationReasons } from './HMSQualityLimitationReasons';
|
|
31
37
|
export declare class HMSEncoder {
|
|
32
38
|
private static data;
|
|
33
39
|
static clearData(): void;
|
|
34
|
-
static encodeHmsRoom(room:
|
|
40
|
+
static encodeHmsRoom(room: any, id: string): HMSRoom;
|
|
35
41
|
static encodeHmsPeers(peers: any): HMSPeer[];
|
|
36
42
|
static encodeHmsPeer(peer: any): HMSPeer;
|
|
37
43
|
static encodeHmsPeerUpdate(hmsPeerUpdateOrdinal: string): import("./HMSPeerUpdate").HMSPeerUpdate | undefined;
|
|
@@ -69,4 +75,10 @@ export declare class HMSEncoder {
|
|
|
69
75
|
static encodeHMSMessage(data: any): HMSMessage | undefined;
|
|
70
76
|
static encodeHMSMessageRecipient(data: any): HMSMessageRecipient;
|
|
71
77
|
static encodeHMSException(data: any): HMSException;
|
|
78
|
+
static encodeHMSLocalAudioStats(data: any): HMSLocalAudioStats;
|
|
79
|
+
static encodeHMSLocalVideoStats(data: any[]): HMSLocalVideoStats[];
|
|
80
|
+
static encodeHMSRemoteAudioStats(data: any): HMSRemoteAudioStats;
|
|
81
|
+
static encodeHMSRemoteVideoStats(data: any): HMSRemoteVideoStats;
|
|
82
|
+
static encodeHMSSimulcastLayerDefinition(data: any[]): HMSSimulcastLayerDefinition[];
|
|
83
|
+
static encodeHMSQualityLimitationReasons(data: any): HMSQualityLimitationReasons;
|
|
72
84
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { HMSLayer } from './HMSLayer';
|
|
2
|
+
import type { HMSQualityLimitationReasons } from './HMSQualityLimitationReasons';
|
|
1
3
|
import type { HMSVideoResolution } from './HMSVideoResolution';
|
|
2
4
|
export declare class HMSLocalVideoStats {
|
|
3
5
|
bitrate?: number;
|
|
@@ -5,11 +7,15 @@ export declare class HMSLocalVideoStats {
|
|
|
5
7
|
roundTripTime?: number;
|
|
6
8
|
frameRate?: number;
|
|
7
9
|
resolution?: HMSVideoResolution;
|
|
10
|
+
qualityLimitationReasons?: HMSQualityLimitationReasons;
|
|
11
|
+
layer?: HMSLayer;
|
|
8
12
|
constructor(params: {
|
|
9
13
|
bitrate?: number;
|
|
10
14
|
bytesSent?: number;
|
|
11
15
|
roundTripTime?: number;
|
|
12
16
|
frameRate?: number;
|
|
13
17
|
resolution?: HMSVideoResolution;
|
|
18
|
+
qualityLimitationReasons?: HMSQualityLimitationReasons;
|
|
19
|
+
layer?: HMSLayer;
|
|
14
20
|
});
|
|
15
21
|
}
|
|
@@ -6,7 +6,7 @@ import type { HMSVideoTrack } from './HMSVideoTrack';
|
|
|
6
6
|
export declare class HMSPeer {
|
|
7
7
|
peerID: string;
|
|
8
8
|
/**
|
|
9
|
-
* @deprecated customerDescription has been deprecated in favor of metadata
|
|
9
|
+
* @deprecated customerDescription property has been deprecated in favor of metadata property
|
|
10
10
|
*/
|
|
11
11
|
customerDescription?: string;
|
|
12
12
|
constructor(params: {
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import type { HMSAudioSettings } from './HMSAudioSettings';
|
|
2
2
|
import type { HMSVideoSettings } from './HMSVideoSettings';
|
|
3
|
+
import type { HMSSimulcastSettings } from './HMSSimulcastSettings';
|
|
3
4
|
export declare class HMSPublishSettings {
|
|
4
5
|
audio?: HMSAudioSettings;
|
|
5
6
|
video?: HMSVideoSettings;
|
|
6
7
|
screen?: HMSVideoSettings;
|
|
7
8
|
allowed?: string[];
|
|
9
|
+
simulcast?: HMSSimulcastSettings;
|
|
8
10
|
constructor(params: {
|
|
9
11
|
audio?: HMSAudioSettings;
|
|
10
12
|
video?: HMSVideoSettings;
|
|
11
13
|
screen?: HMSVideoSettings;
|
|
12
14
|
allowed?: string[];
|
|
15
|
+
simulcast?: HMSSimulcastSettings;
|
|
13
16
|
});
|
|
14
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HMSQualityLimitationReason } from './HMSQualityLimitationReason';
|
|
2
|
+
export declare class HMSQualityLimitationReasons {
|
|
3
|
+
bandwidth?: number;
|
|
4
|
+
cpu?: number;
|
|
5
|
+
none?: number;
|
|
6
|
+
other?: number;
|
|
7
|
+
qualityLimitationResolutionChanges?: number;
|
|
8
|
+
reason: HMSQualityLimitationReason;
|
|
9
|
+
constructor(params: {
|
|
10
|
+
bandwidth?: number;
|
|
11
|
+
cpu?: number;
|
|
12
|
+
none?: number;
|
|
13
|
+
other?: number;
|
|
14
|
+
qualityLimitationResolutionChanges?: number;
|
|
15
|
+
reason: HMSQualityLimitationReason;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { HMSVideoTrack } from './HMSVideoTrack';
|
|
2
2
|
import type { HMSTrackType } from './HMSTrackType';
|
|
3
|
+
import type { HMSLayer } from './HMSLayer';
|
|
4
|
+
import type { HMSSimulcastLayerDefinition } from './HMSSimulcastLayerDefinition';
|
|
3
5
|
export declare class HMSRemoteVideoTrack extends HMSVideoTrack {
|
|
4
|
-
layer?: any;
|
|
5
6
|
/**
|
|
6
7
|
* Switches Video of remote user on/off depending upon the value of playbackAllowed
|
|
7
8
|
*
|
|
@@ -10,14 +11,17 @@ export declare class HMSRemoteVideoTrack extends HMSVideoTrack {
|
|
|
10
11
|
*/
|
|
11
12
|
setPlaybackAllowed(playbackAllowed: boolean): void;
|
|
12
13
|
isPlaybackAllowed: () => Promise<any>;
|
|
14
|
+
getLayer(): Promise<HMSLayer>;
|
|
15
|
+
getLayerDefinition(): Promise<HMSSimulcastLayerDefinition[]>;
|
|
16
|
+
setLayer(layer: HMSLayer): Promise<any>;
|
|
13
17
|
constructor(params: {
|
|
14
18
|
trackId: string;
|
|
15
19
|
source?: number | string;
|
|
16
20
|
trackDescription?: string;
|
|
17
21
|
isMute?: boolean;
|
|
18
|
-
layer?: any;
|
|
19
22
|
playbackAllowed?: boolean;
|
|
20
23
|
id: string;
|
|
24
|
+
isDegraded?: boolean;
|
|
21
25
|
type?: HMSTrackType;
|
|
22
26
|
});
|
|
23
27
|
}
|
|
@@ -5,5 +5,6 @@ export declare enum HMSRoomUpdate {
|
|
|
5
5
|
RTMP_STREAMING_STATE_UPDATED = "RTMP_STREAMING_STATE_UPDATED",
|
|
6
6
|
BROWSER_RECORDING_STATE_UPDATED = "BROWSER_RECORDING_STATE_UPDATED",
|
|
7
7
|
HLS_STREAMING_STATE_UPDATED = "HLS_STREAMING_STATE_UPDATED",
|
|
8
|
-
HLS_RECORDING_STATE_UPDATED = "HLS_RECORDING_STATE_UPDATED"
|
|
8
|
+
HLS_RECORDING_STATE_UPDATED = "HLS_RECORDING_STATE_UPDATED",
|
|
9
|
+
ROOM_PEER_COUNT_UPDATED = "ROOM_PEER_COUNT_UPDATED"
|
|
9
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
2
|
import { HMSTrackType } from './HMSTrackType';
|
|
4
3
|
import { HMSUpdateListenerActions } from './HMSUpdateListenerActions';
|
|
4
|
+
import { HmsComponentProps } from './HmsView';
|
|
5
5
|
import type { HMSConfig } from './HMSConfig';
|
|
6
6
|
import type { HMSLocalPeer } from './HMSLocalPeer';
|
|
7
7
|
import type { HMSRemotePeer } from './HMSRemotePeer';
|
|
@@ -10,7 +10,6 @@ import type { HMSRole } from './HMSRole';
|
|
|
10
10
|
import type { HMSTrack } from './HMSTrack';
|
|
11
11
|
import type { HMSLogger } from './HMSLogger';
|
|
12
12
|
import type { HMSPeer } from './HMSPeer';
|
|
13
|
-
import type { HMSVideoViewMode } from './HMSVideoViewMode';
|
|
14
13
|
import type { HMSTrackSettings } from './HMSTrackSettings';
|
|
15
14
|
import type { HMSRTMPConfig } from './HMSRTMPConfig';
|
|
16
15
|
import type { HMSHLSConfig } from './HMSHLSConfig';
|
|
@@ -20,13 +19,7 @@ import type { HMSAudioMixingMode } from './HMSAudioMixingMode';
|
|
|
20
19
|
import type { HMSLogSettings } from './HMSLogSettings';
|
|
21
20
|
import { HMSMessageType } from './HMSMessageType';
|
|
22
21
|
import { HMSPIPListenerActions } from './HMSPIPListenerActions';
|
|
23
|
-
|
|
24
|
-
trackId: string;
|
|
25
|
-
style?: ViewStyle;
|
|
26
|
-
mirror?: boolean;
|
|
27
|
-
scaleType?: HMSVideoViewMode;
|
|
28
|
-
setZOrderMediaOverlay?: boolean;
|
|
29
|
-
}
|
|
22
|
+
type HmsViewProps = Omit<HmsComponentProps, 'id'>;
|
|
30
23
|
interface PIPConfig {
|
|
31
24
|
aspectRatio?: [number, number];
|
|
32
25
|
endButton?: boolean;
|
|
@@ -133,6 +126,7 @@ export declare class HMSSDK {
|
|
|
133
126
|
* - The appearance of tile is completely customizable with style prop.
|
|
134
127
|
* - Scale type can determine how the incoming video will fit in the canvas check {@link HMSVideoViewMode} for more information.
|
|
135
128
|
* - Mirror to flip the video vertically.
|
|
129
|
+
* - Auto Simulcast to automatically select the best Streaming Quality of track if feature is enabled in Room.
|
|
136
130
|
*
|
|
137
131
|
* checkout {@link https://www.100ms.live/docs/react-native/v2/features/render-video} for more info
|
|
138
132
|
*
|
|
@@ -417,28 +411,6 @@ export declare class HMSSDK {
|
|
|
417
411
|
* @memberof HMSSDK
|
|
418
412
|
*/
|
|
419
413
|
stopScreenshare: () => Promise<any>;
|
|
420
|
-
/**
|
|
421
|
-
* - enableRTCStats sets a boolean in native side which in turn allows several events to be passed
|
|
422
|
-
* through the bridge these events are {@link RTCStatsListener}, {@link onRemoteVideoStatsListener},
|
|
423
|
-
* {@link onRemoteAudioStatsListener}, {@link onLocalAudioStatsListener} and {@link onLocalVideoStatsListener}
|
|
424
|
-
*
|
|
425
|
-
* - These listeners get various dataPoints for current peers and their connectivity to the room
|
|
426
|
-
* such as jitter, latency etc.
|
|
427
|
-
*
|
|
428
|
-
* - currently available for iOS only
|
|
429
|
-
*
|
|
430
|
-
* @memberof HMSSDK
|
|
431
|
-
*/
|
|
432
|
-
enableRTCStats: () => void;
|
|
433
|
-
/**
|
|
434
|
-
* - disable RTCStats sets the same boolean to false that was set true by enableRTCStats.
|
|
435
|
-
* that activates a check which filters out the events acquired in native listeners and don't
|
|
436
|
-
* let them pass through bridge
|
|
437
|
-
*
|
|
438
|
-
* - currently available for iOS only.
|
|
439
|
-
* @memberof HMSSDK
|
|
440
|
-
*/
|
|
441
|
-
disableRTCStats: () => void;
|
|
442
414
|
enableNetworkQualityUpdates: () => void;
|
|
443
415
|
disableNetworkQualityUpdates: () => void;
|
|
444
416
|
/**
|
|
@@ -531,6 +503,8 @@ export declare class HMSSDK {
|
|
|
531
503
|
setAudioDeviceChangeListener: (callback: Function) => any;
|
|
532
504
|
setSessionMetaData: (sessionMetaData: string | null) => Promise<any>;
|
|
533
505
|
getSessionMetaData: () => Promise<any>;
|
|
506
|
+
getRemoteVideoTrackFromTrackId: (trackId: string) => Promise<import("./HMSRemoteVideoTrack").HMSRemoteVideoTrack>;
|
|
507
|
+
getRemoteAudioTrackFromTrackId: (trackId: string) => Promise<import("./HMSRemoteAudioTrack").HMSRemoteAudioTrack>;
|
|
534
508
|
/**
|
|
535
509
|
* - This is a prototype event listener that takes action and listens for updates related to that particular action
|
|
536
510
|
*
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HMSLayer } from './HMSLayer';
|
|
2
|
+
import type { HMSVideoResolution } from './HMSVideoResolution';
|
|
3
|
+
export declare class HMSSimulcastLayerDefinition {
|
|
4
|
+
layer: HMSLayer;
|
|
5
|
+
resolution: HMSVideoResolution;
|
|
6
|
+
constructor(params: {
|
|
7
|
+
layer: HMSLayer;
|
|
8
|
+
resolution: HMSVideoResolution;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class HMSSimulcastLayerSettingsPolicy {
|
|
2
|
+
rid?: string;
|
|
3
|
+
scaleResolutionDownBy?: number;
|
|
4
|
+
maxBitrate?: number;
|
|
5
|
+
maxFramerate?: number;
|
|
6
|
+
constructor(params: {
|
|
7
|
+
rid?: string;
|
|
8
|
+
scaleResolutionDownBy?: number;
|
|
9
|
+
maxBitrate?: number;
|
|
10
|
+
maxFramerate?: number;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import type { HMSSimulcastSettingsPolicy } from './HMSSimulcastSettingsPolicy';
|
|
1
2
|
export declare class HMSSimulcastSettings {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
video?: HMSSimulcastSettingsPolicy;
|
|
4
|
+
screen?: HMSSimulcastSettingsPolicy;
|
|
5
|
+
constructor(params: {
|
|
6
|
+
video?: HMSSimulcastSettingsPolicy;
|
|
7
|
+
screen?: HMSSimulcastSettingsPolicy;
|
|
8
|
+
});
|
|
5
9
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class HMSSubscribeDegradationPolicy {
|
|
2
|
+
packetLossThreshold?: number;
|
|
3
|
+
degradeGracePeriodSeconds?: number;
|
|
4
|
+
recoverGracePeriodSeconds?: number;
|
|
5
|
+
constructor(params: {
|
|
6
|
+
packetLossThreshold?: number;
|
|
7
|
+
degradeGracePeriodSeconds?: number;
|
|
8
|
+
recoverGracePeriodSeconds?: number;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { HMSSubscribeDegradationPolicy } from './HMSSubscribeDegradationPolicy';
|
|
1
2
|
export declare class HMSSubscribeSettings {
|
|
2
|
-
subscribeTo?: [
|
|
3
|
+
subscribeTo?: string[];
|
|
3
4
|
maxSubsBitRate: number;
|
|
5
|
+
subscribeDegradation?: HMSSubscribeDegradationPolicy;
|
|
4
6
|
constructor(params: {
|
|
5
|
-
subscribeTo?: [
|
|
7
|
+
subscribeTo?: string[];
|
|
6
8
|
maxSubsBitRate: number;
|
|
9
|
+
subscribeDegradation?: HMSSubscribeDegradationPolicy;
|
|
7
10
|
});
|
|
8
11
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ViewStyle } from 'react-native';
|
|
3
3
|
import { HMSVideoViewMode } from './HMSVideoViewMode';
|
|
4
|
-
interface HmsComponentProps {
|
|
4
|
+
export interface HmsComponentProps {
|
|
5
5
|
trackId: string;
|
|
6
6
|
style?: ViewStyle;
|
|
7
7
|
mirror?: boolean;
|
|
8
|
+
autoSimulcast?: boolean;
|
|
8
9
|
scaleType?: HMSVideoViewMode;
|
|
9
10
|
setZOrderMediaOverlay?: boolean;
|
|
10
11
|
id: string;
|
|
11
12
|
}
|
|
12
13
|
export declare const HmsViewComponent: React.ForwardRefExoticComponent<HmsComponentProps & React.RefAttributes<any>>;
|
|
13
|
-
export {};
|
|
@@ -75,6 +75,11 @@ export * from './classes/HMSLogSettings';
|
|
|
75
75
|
export * from './classes/HMSLogAlarmManager';
|
|
76
76
|
export * from './classes/HMSMessageType';
|
|
77
77
|
export * from './classes/HMSPIPListenerActions';
|
|
78
|
+
export * from './classes/HMSLayer';
|
|
79
|
+
export * from './classes/HMSSimulcastLayerDefinition';
|
|
80
|
+
export * from './classes/HMSQualityLimitationReasons';
|
|
81
|
+
export * from './classes/HMSQualityLimitationReason';
|
|
82
|
+
export * from './classes/HMSCameraControl';
|
|
78
83
|
export type { HmsViewComponent as HMSView } from './classes/HmsView';
|
|
79
84
|
import { HMSSDK as HmsManager } from './classes/HMSSDK';
|
|
80
85
|
export default HmsManager;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/react-native-hms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
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",
|