@100mslive/react-native-hms 1.3.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/README.md +59 -5
- 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 +49 -14
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +240 -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 +10 -2
- package/ios/HMSManager.swift +149 -74
- package/ios/HMSRNSDK.swift +431 -181
- package/ios/HMSView.m +1 -0
- package/ios/HMSView.swift +21 -19
- package/lib/commonjs/classes/HMSAudioTrackSettings.js +1 -1
- package/lib/commonjs/classes/HMSAudioTrackSettings.js.map +1 -1
- 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/HMSException.js +3 -4
- package/lib/commonjs/classes/HMSException.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/HMSLocalVideoTrack.js +5 -6
- package/lib/commonjs/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSMessage.js +1 -2
- package/lib/commonjs/classes/HMSMessage.js.map +1 -1
- package/lib/commonjs/classes/HMSPeer.js +3 -4
- 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 -4
- 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 +70 -62
- 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/HMSVideoTrackSettings.js +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.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/HMSAudioTrackSettings.js +1 -1
- package/lib/module/classes/HMSAudioTrackSettings.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/HMSException.js +3 -4
- package/lib/module/classes/HMSException.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/HMSLocalVideoTrack.js +5 -6
- package/lib/module/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSMessage.js +1 -2
- package/lib/module/classes/HMSMessage.js.map +1 -1
- package/lib/module/classes/HMSPeer.js +3 -4
- 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 -4
- 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 +71 -62
- 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/HMSVideoTrackSettings.js +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.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 +24 -42
- 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 +2 -2
- 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 +99 -67
- 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"}
|
|
@@ -3,13 +3,13 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
|
|
|
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 HMSVideoTrackSettings {
|
|
5
5
|
// android only
|
|
6
|
-
// android only
|
|
7
6
|
|
|
8
7
|
constructor(params) {
|
|
9
8
|
_defineProperty(this, "simulcastSettings", void 0);
|
|
10
9
|
_defineProperty(this, "initialState", void 0);
|
|
11
10
|
_defineProperty(this, "cameraFacing", void 0);
|
|
12
11
|
_defineProperty(this, "forceSoftwareDecoder", void 0);
|
|
12
|
+
// android only
|
|
13
13
|
_defineProperty(this, "disableAutoResize", void 0);
|
|
14
14
|
this.simulcastSettings = params.simulcastSettings;
|
|
15
15
|
this.initialState = params.initialState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoTrackSettings","constructor","params","_defineProperty","simulcastSettings","initialState","cameraFacing","forceSoftwareDecoder","disableAutoResize"],"sources":["HMSVideoTrackSettings.ts"],"sourcesContent":["import type { HMSSimulcastLayerSettings } from './HMSSimulcastLayerSettings';\nimport type { HMSCameraFacing } from './HMSCameraFacing';\nimport type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';\n\nexport class HMSVideoTrackSettings {\n readonly simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean; // android only\n disableAutoResize?: boolean; // android only\n\n constructor(params: {\n simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean;\n disableAutoResize?: boolean;\n }) {\n this.simulcastSettings = params.simulcastSettings;\n this.initialState = params.initialState;\n this.cameraFacing = params.cameraFacing;\n this.forceSoftwareDecoder = params.forceSoftwareDecoder;\n this.disableAutoResize = params.disableAutoResize;\n }\n}\n"],"mappings":";;;AAIA,OAAO,MAAMA,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"names":["HMSVideoTrackSettings","constructor","params","_defineProperty","simulcastSettings","initialState","cameraFacing","forceSoftwareDecoder","disableAutoResize"],"sources":["HMSVideoTrackSettings.ts"],"sourcesContent":["import type { HMSSimulcastLayerSettings } from './HMSSimulcastLayerSettings';\nimport type { HMSCameraFacing } from './HMSCameraFacing';\nimport type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';\n\nexport class HMSVideoTrackSettings {\n readonly simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean; // android only\n disableAutoResize?: boolean; // android only\n\n constructor(params: {\n simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean;\n disableAutoResize?: boolean;\n }) {\n this.simulcastSettings = params.simulcastSettings;\n this.initialState = params.initialState;\n this.cameraFacing = params.cameraFacing;\n this.forceSoftwareDecoder = params.forceSoftwareDecoder;\n this.disableAutoResize = params.disableAutoResize;\n }\n}\n"],"mappings":";;;AAIA,OAAO,MAAMA,qBAAqB,CAAC;EAKJ;;EAE7BC,WAAWA,CAACC,MAMX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAT6B;IAAAA,eAAA;IAU9B,IAAI,CAACC,iBAAiB,GAAGF,MAAM,CAACE,iBAAiB;IACjD,IAAI,CAACC,YAAY,GAAGH,MAAM,CAACG,YAAY;IACvC,IAAI,CAACC,YAAY,GAAGJ,MAAM,CAACI,YAAY;IACvC,IAAI,CAACC,oBAAoB,GAAGL,MAAM,CAACK,oBAAoB;IACvD,IAAI,CAACC,iBAAiB,GAAGN,MAAM,CAACM,iBAAiB;EACnD;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":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAC/E,SACEC,cAAc,EACdC,sBAAsB,EACtBC,UAAU,EACVC,SAAS,QAEJ,cAAc;AACrB,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,gBAAgB,QAAQ,oBAAoB;AAgBrD,MAAMC,OAAO,GAAGL,sBAAsB,CAAe,SAAS,CAAC;AAC/D,IAAIM,cAAc,GAAG,CAAC;AACtB,IAAIC,WAAW,GAAG,IAAIC,GAAG,EAAE;AAY3B,OAAO,MAAMC,gBAAgB,gBAAGf,KAAK,CAACgB,UAAU,CAC9C,CAACC,KAAK,EAAEC,GAAG,KAAK;EACd,MAAM;IACJC,OAAO;IACPC,KAAK,GAAGC,eAAe,CAACC,WAAW;IACnCC,EAAE,GAAGd,YAAY,CAACe,cAAc;IAChCC,MAAM,GAAG,KAAK;IACdC,qBAAqB,GAAG,KAAK;IAC7BC,aAAa,GAAG,IAAI;IACpBC,SAAS,GAAGlB,gBAAgB,CAACmB;EAC/B,CAAC,GAAGZ,KAAK;EAET,MAAMa,UAAe,GAAG1B,MAAM,EAAE;EAChC,MAAM2B,QAAQ,GAAG3B,MAAM,CAAwB,IAAI,CAAC;EACpD,MAAM,CAAC4B,OAAO,EAAEC,UAAU,CAAC,GAAGhC,QAAQ,CAAC,CAAC,CAAC;EACzC,MAAMiC,IAAI,GAAG;IACXf,OAAO;IACPI,EAAE;IACFE;EACF,CAAC;EAEDvB,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACX,IAAI6B,QAAQ,CAACI,OAAO,EAAE;QACpBC,YAAY,CAACL,QAAQ,CAACI,OAAO,CAAC;MAChC;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,MAAME,QAAQ,GAAIC,MAAW,IAAK;IAChCC,OAAO,CAACC,GAAG,CAACF,MAAM,EAAE,QAAQ,CAAC;IAC7B,IAAIP,QAAQ,CAACI,OAAO,EAAE;MACpBC,YAAY,CAACL,QAAQ,CAACI,OAAO,CAAC;IAChC;IAEAJ,QAAQ,CAACI,OAAO,GAAGM,UAAU,CAAC,MAAM;MAClCR,UAAU,CAAC,CAAC,CAAC;MACbF,QAAQ,CAACI,OAAO,GAAG,IAAI;IACzB,CAAC,EAAE,IAAI,CAAC;EACV,CAAC;EAED,MAAMO,eAAe,GAAIC,KAExB,IAAK;IACJ;IACA,IAAI;MAAEC,SAAS;MAAEC,MAAM;MAAEC;IAAM,CAAC,GAAGH,KAAK,CAACI,WAAW;IACpD;IACA,IAAIC,OAAO,GAAGnC,WAAW,CAACoC,GAAG,CAACL,SAAS,CAAC;IACxC,IAAIC,MAAM,EAAE;MACV;MACAG,OAAO,CAACE,OAAO,CAACL,MAAM,CAAC;IACzB,CAAC,MAAM;MACL;MACAG,OAAO,CAACG,MAAM,CAACL,KAAK,CAAC;IACvB;IACA;IACAjC,WAAW,CAACuC,MAAM,CAACR,SAAS,CAAC;EAC/B,CAAC;EAED,MAAMS,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIT,SAAS,GAAGhC,cAAc,EAAE;IAChC,IAAI0C,UAAU,GAAGzC,WAAW;;IAE5B;IACA;IACA,IAAImC,OAAO,GAAG,IAAIO,OAAO,CAAC,UAAUL,OAAO,EAAEC,MAAM,EAAE;MACnDG,UAAU,CAACE,GAAG,CAACZ,SAAS,EAAE;QAAEM,OAAO;QAAEC;MAAO,CAAC,CAAC;IAChD,CAAC,CAAC;IACF,MAAMM,iBAAiB,GAAGjD,SAAS,CAACkD,oBAAoB,CAAC,SAAS,CAAC;IACnElD,SAAS,CAACmD,0BAA0B,CAClCtD,cAAc,CAACyB,UAAU,CAACK,OAAO,CAAC,EAClCsB,iBAAiB,CAACG,QAAQ,CAACP,OAAO,EAClC,CAACT,SAAS,CAAC,CACZ;IACD,OAAOI,OAAO;EAChB,CAAC;EAED7C,mBAAmB,CAACe,GAAG,EAAE,MAAM;IAC7B,OAAO;MACLmC;IACF,CAAC;EACH,CAAC,CAAC;EAEFnD,SAAS,CAAC,MAAM;IACd+B,UAAU,CAAC,CAAC,CAAC;EACf,CAAC,EAAE,CAACD,OAAO,CAAC,CAAC;EAEb,oBACEhC,KAAA,CAAA6D,aAAA,CAAClD,OAAO;IACNO,GAAG,EAAEY,UAAW;IAChBO,QAAQ,EAAEA,QAAS;IACnBH,IAAI,EAAEA,IAAK;IACXd,KAAK,EAAEY,OAAO,KAAK,CAAC,GAAGZ,KAAK,GAAGC,eAAe,CAACC,WAAY;IAC3DK,aAAa,EAAEA,aAAc;IAC7BC,SAAS,EAAEA,SAAU;IACrBF,qBAAqB,EAAEA,qBAAsB;IAC7CoC,cAAc,EAAEpB;EAAgB,EAChC;AAEN,CAAC,CACF;AAED,MAAMrB,eAAe,GAAGd,UAAU,CAACwD,MAAM,CAAC;EACxCzC,WAAW,EAAE;IACX0C,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC"}
|
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;
|
|
@@ -83,23 +76,19 @@ export declare class HMSSDK {
|
|
|
83
76
|
logSettings?: HMSLogSettings;
|
|
84
77
|
}): Promise<HMSSDK>;
|
|
85
78
|
/**
|
|
86
|
-
* -
|
|
87
|
-
*
|
|
88
|
-
* @memberof HMSSDK
|
|
89
|
-
*/
|
|
90
|
-
static getLogger(): HMSLogger | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* - Updates the logger for this instance of HMSSDK
|
|
93
|
-
* @param {HMSLogger} hmsLogger
|
|
79
|
+
* - Calls removeListeners that in turn breaks all connections with native listeners.
|
|
80
|
+
*
|
|
94
81
|
* @memberof HMSSDK
|
|
95
82
|
*/
|
|
96
|
-
|
|
83
|
+
destroy: () => Promise<any>;
|
|
97
84
|
/**
|
|
98
|
-
* -
|
|
85
|
+
* - getAuthTokenByRoomCode function is used to get the Auth Token by Room Code
|
|
86
|
+
*
|
|
87
|
+
* checkout {@link https://www.100ms.live/docs/concepts/v2/concepts/rooms/room-codes/room-codes} for more info
|
|
99
88
|
*
|
|
100
89
|
* @memberof HMSSDK
|
|
101
90
|
*/
|
|
102
|
-
|
|
91
|
+
getAuthTokenByRoomCode: (roomCode: string, userId?: string, endpoint?: string) => Promise<string>;
|
|
103
92
|
/**
|
|
104
93
|
* takes an instance of [HMSConfig]{@link HMSConfig} and joins the room.
|
|
105
94
|
* after joining the room user will start receiving the events and updates of the room.
|
|
@@ -137,6 +126,7 @@ export declare class HMSSDK {
|
|
|
137
126
|
* - The appearance of tile is completely customizable with style prop.
|
|
138
127
|
* - Scale type can determine how the incoming video will fit in the canvas check {@link HMSVideoViewMode} for more information.
|
|
139
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.
|
|
140
130
|
*
|
|
141
131
|
* checkout {@link https://www.100ms.live/docs/react-native/v2/features/render-video} for more info
|
|
142
132
|
*
|
|
@@ -421,28 +411,6 @@ export declare class HMSSDK {
|
|
|
421
411
|
* @memberof HMSSDK
|
|
422
412
|
*/
|
|
423
413
|
stopScreenshare: () => Promise<any>;
|
|
424
|
-
/**
|
|
425
|
-
* - enableRTCStats sets a boolean in native side which in turn allows several events to be passed
|
|
426
|
-
* through the bridge these events are {@link RTCStatsListener}, {@link onRemoteVideoStatsListener},
|
|
427
|
-
* {@link onRemoteAudioStatsListener}, {@link onLocalAudioStatsListener} and {@link onLocalVideoStatsListener}
|
|
428
|
-
*
|
|
429
|
-
* - These listeners get various dataPoints for current peers and their connectivity to the room
|
|
430
|
-
* such as jitter, latency etc.
|
|
431
|
-
*
|
|
432
|
-
* - currently available for iOS only
|
|
433
|
-
*
|
|
434
|
-
* @memberof HMSSDK
|
|
435
|
-
*/
|
|
436
|
-
enableRTCStats: () => void;
|
|
437
|
-
/**
|
|
438
|
-
* - disable RTCStats sets the same boolean to false that was set true by enableRTCStats.
|
|
439
|
-
* that activates a check which filters out the events acquired in native listeners and don't
|
|
440
|
-
* let them pass through bridge
|
|
441
|
-
*
|
|
442
|
-
* - currently available for iOS only.
|
|
443
|
-
* @memberof HMSSDK
|
|
444
|
-
*/
|
|
445
|
-
disableRTCStats: () => void;
|
|
446
414
|
enableNetworkQualityUpdates: () => void;
|
|
447
415
|
disableNetworkQualityUpdates: () => void;
|
|
448
416
|
/**
|
|
@@ -535,6 +503,8 @@ export declare class HMSSDK {
|
|
|
535
503
|
setAudioDeviceChangeListener: (callback: Function) => any;
|
|
536
504
|
setSessionMetaData: (sessionMetaData: string | null) => Promise<any>;
|
|
537
505
|
getSessionMetaData: () => Promise<any>;
|
|
506
|
+
getRemoteVideoTrackFromTrackId: (trackId: string) => Promise<import("./HMSRemoteVideoTrack").HMSRemoteVideoTrack>;
|
|
507
|
+
getRemoteAudioTrackFromTrackId: (trackId: string) => Promise<import("./HMSRemoteAudioTrack").HMSRemoteAudioTrack>;
|
|
538
508
|
/**
|
|
539
509
|
* - This is a prototype event listener that takes action and listens for updates related to that particular action
|
|
540
510
|
*
|
|
@@ -600,5 +570,17 @@ export declare class HMSSDK {
|
|
|
600
570
|
isPipModeSupported(): Promise<undefined | boolean>;
|
|
601
571
|
enablePipMode(data?: PIPConfig): Promise<undefined | boolean>;
|
|
602
572
|
setPipParams(data?: PIPConfig): Promise<undefined | boolean>;
|
|
573
|
+
/**
|
|
574
|
+
* - Returns the instance of logger which can be used to manipulate log levels.
|
|
575
|
+
* @returns @instance HMSLogger
|
|
576
|
+
* @memberof HMSSDK
|
|
577
|
+
*/
|
|
578
|
+
static getLogger(): HMSLogger | undefined;
|
|
579
|
+
/**
|
|
580
|
+
* - Updates the logger for this instance of HMSSDK
|
|
581
|
+
* @param {HMSLogger} hmsLogger
|
|
582
|
+
* @memberof HMSSDK
|
|
583
|
+
*/
|
|
584
|
+
setLogger: (hmsLogger?: HMSLogger) => void;
|
|
603
585
|
}
|
|
604
586
|
export {};
|
|
@@ -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
|
}
|