@100mslive/react-native-hms 1.10.7 → 1.10.9

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.
Files changed (197) hide show
  1. package/README.md +6 -5
  2. package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +47 -8
  3. package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +34 -3
  4. package/android/src/main/java/com/reactnativehmssdk/PipActionReceiver.kt +3 -1
  5. package/ios/HMSConstants.swift +1 -0
  6. package/ios/HMSManager.m +39 -0
  7. package/ios/HMSManager.swift +116 -1
  8. package/ios/HMSRNSDK.swift +276 -2
  9. package/ios/PIPMode/HMSPipModel.swift +18 -0
  10. package/ios/PIPMode/HMSPipView.swift +36 -0
  11. package/ios/PIPMode/HMSSampleBufferSwiftUIView.swift +45 -0
  12. package/lib/commonjs/classes/HMSAudioDevice.js +9 -0
  13. package/lib/commonjs/classes/HMSAudioDevice.js.map +1 -1
  14. package/lib/commonjs/classes/HMSAudioMixingMode.js +11 -0
  15. package/lib/commonjs/classes/HMSAudioMixingMode.js.map +1 -1
  16. package/lib/commonjs/classes/HMSAudioTrack.js +9 -0
  17. package/lib/commonjs/classes/HMSAudioTrack.js.map +1 -1
  18. package/lib/commonjs/classes/HMSCameraFacing.js +9 -0
  19. package/lib/commonjs/classes/HMSCameraFacing.js.map +1 -1
  20. package/lib/commonjs/classes/HMSConfig.js +27 -0
  21. package/lib/commonjs/classes/HMSConfig.js.map +1 -1
  22. package/lib/commonjs/classes/HMSException.js +18 -0
  23. package/lib/commonjs/classes/HMSException.js.map +1 -1
  24. package/lib/commonjs/classes/HMSHLSTimedMetadata.js.map +1 -1
  25. package/lib/commonjs/classes/HMSIOSAudioMode.js +15 -0
  26. package/lib/commonjs/classes/HMSIOSAudioMode.js.map +1 -1
  27. package/lib/commonjs/classes/HMSLogAlarmManager.js +12 -0
  28. package/lib/commonjs/classes/HMSLogAlarmManager.js.map +1 -1
  29. package/lib/commonjs/classes/HMSLogLevel.js +12 -0
  30. package/lib/commonjs/classes/HMSLogLevel.js.map +1 -1
  31. package/lib/commonjs/classes/HMSLogSettings.js +14 -0
  32. package/lib/commonjs/classes/HMSLogSettings.js.map +1 -1
  33. package/lib/commonjs/classes/HMSNetworkQuality.js +11 -0
  34. package/lib/commonjs/classes/HMSNetworkQuality.js.map +1 -1
  35. package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js +40 -10
  36. package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js.map +1 -1
  37. package/lib/commonjs/classes/HMSPIPConfig.js +4 -0
  38. package/lib/commonjs/classes/HMSPIPConfig.js.map +1 -1
  39. package/lib/commonjs/classes/HMSPIPListenerActions.js +9 -0
  40. package/lib/commonjs/classes/HMSPIPListenerActions.js.map +1 -1
  41. package/lib/commonjs/classes/HMSPeer.js +148 -0
  42. package/lib/commonjs/classes/HMSPeer.js.map +1 -1
  43. package/lib/commonjs/classes/HMSPeerType.js +12 -1
  44. package/lib/commonjs/classes/HMSPeerType.js.map +1 -1
  45. package/lib/commonjs/classes/HMSRTMPConfig.js +14 -0
  46. package/lib/commonjs/classes/HMSRTMPConfig.js.map +1 -1
  47. package/lib/commonjs/classes/HMSRole.js +17 -0
  48. package/lib/commonjs/classes/HMSRole.js.map +1 -1
  49. package/lib/commonjs/classes/HMSRtmpVideoResolution.js +13 -0
  50. package/lib/commonjs/classes/HMSRtmpVideoResolution.js.map +1 -1
  51. package/lib/commonjs/classes/HMSSDK.js +1153 -233
  52. package/lib/commonjs/classes/HMSSDK.js.map +1 -1
  53. package/lib/commonjs/classes/HMSSessionStore.js +14 -15
  54. package/lib/commonjs/classes/HMSSessionStore.js.map +1 -1
  55. package/lib/commonjs/classes/HMSTrack.js +13 -0
  56. package/lib/commonjs/classes/HMSTrack.js.map +1 -1
  57. package/lib/commonjs/classes/HMSTrackSettings.js +10 -0
  58. package/lib/commonjs/classes/HMSTrackSettings.js.map +1 -1
  59. package/lib/commonjs/classes/HMSTrackSettingsInitState.js +9 -0
  60. package/lib/commonjs/classes/HMSTrackSettingsInitState.js.map +1 -1
  61. package/lib/commonjs/classes/HMSTrackSource.js +10 -0
  62. package/lib/commonjs/classes/HMSTrackSource.js.map +1 -1
  63. package/lib/commonjs/classes/HMSTrackType.js +7 -0
  64. package/lib/commonjs/classes/HMSTrackType.js.map +1 -1
  65. package/lib/commonjs/classes/HMSUpdateListenerActions.js +42 -3
  66. package/lib/commonjs/classes/HMSUpdateListenerActions.js.map +1 -1
  67. package/lib/commonjs/classes/HMSVideoTrack.js +17 -0
  68. package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
  69. package/lib/commonjs/classes/HMSVideoTrackSettings.js +12 -2
  70. package/lib/commonjs/classes/HMSVideoTrackSettings.js.map +1 -1
  71. package/lib/commonjs/classes/HmsView.js +42 -0
  72. package/lib/commonjs/classes/HmsView.js.map +1 -1
  73. package/lib/module/classes/HMSAudioDevice.js +9 -0
  74. package/lib/module/classes/HMSAudioDevice.js.map +1 -1
  75. package/lib/module/classes/HMSAudioMixingMode.js +11 -0
  76. package/lib/module/classes/HMSAudioMixingMode.js.map +1 -1
  77. package/lib/module/classes/HMSAudioTrack.js +9 -0
  78. package/lib/module/classes/HMSAudioTrack.js.map +1 -1
  79. package/lib/module/classes/HMSCameraFacing.js +9 -0
  80. package/lib/module/classes/HMSCameraFacing.js.map +1 -1
  81. package/lib/module/classes/HMSConfig.js +27 -0
  82. package/lib/module/classes/HMSConfig.js.map +1 -1
  83. package/lib/module/classes/HMSException.js +18 -0
  84. package/lib/module/classes/HMSException.js.map +1 -1
  85. package/lib/module/classes/HMSHLSTimedMetadata.js.map +1 -1
  86. package/lib/module/classes/HMSIOSAudioMode.js +15 -0
  87. package/lib/module/classes/HMSIOSAudioMode.js.map +1 -1
  88. package/lib/module/classes/HMSLogAlarmManager.js +12 -0
  89. package/lib/module/classes/HMSLogAlarmManager.js.map +1 -1
  90. package/lib/module/classes/HMSLogLevel.js +12 -0
  91. package/lib/module/classes/HMSLogLevel.js.map +1 -1
  92. package/lib/module/classes/HMSLogSettings.js +14 -0
  93. package/lib/module/classes/HMSLogSettings.js.map +1 -1
  94. package/lib/module/classes/HMSNetworkQuality.js +11 -0
  95. package/lib/module/classes/HMSNetworkQuality.js.map +1 -1
  96. package/lib/module/classes/HMSNoiseCancellationPlugin.js +40 -10
  97. package/lib/module/classes/HMSNoiseCancellationPlugin.js.map +1 -1
  98. package/lib/module/classes/HMSPIPConfig.js +1 -1
  99. package/lib/module/classes/HMSPIPConfig.js.map +1 -1
  100. package/lib/module/classes/HMSPIPListenerActions.js +9 -0
  101. package/lib/module/classes/HMSPIPListenerActions.js.map +1 -1
  102. package/lib/module/classes/HMSPeer.js +149 -0
  103. package/lib/module/classes/HMSPeer.js.map +1 -1
  104. package/lib/module/classes/HMSPeerType.js +12 -1
  105. package/lib/module/classes/HMSPeerType.js.map +1 -1
  106. package/lib/module/classes/HMSRTMPConfig.js +14 -0
  107. package/lib/module/classes/HMSRTMPConfig.js.map +1 -1
  108. package/lib/module/classes/HMSRole.js +17 -0
  109. package/lib/module/classes/HMSRole.js.map +1 -1
  110. package/lib/module/classes/HMSRtmpVideoResolution.js +13 -0
  111. package/lib/module/classes/HMSRtmpVideoResolution.js.map +1 -1
  112. package/lib/module/classes/HMSSDK.js +1153 -233
  113. package/lib/module/classes/HMSSDK.js.map +1 -1
  114. package/lib/module/classes/HMSSessionStore.js +14 -15
  115. package/lib/module/classes/HMSSessionStore.js.map +1 -1
  116. package/lib/module/classes/HMSTrack.js +13 -0
  117. package/lib/module/classes/HMSTrack.js.map +1 -1
  118. package/lib/module/classes/HMSTrackSettings.js +10 -0
  119. package/lib/module/classes/HMSTrackSettings.js.map +1 -1
  120. package/lib/module/classes/HMSTrackSettingsInitState.js +9 -0
  121. package/lib/module/classes/HMSTrackSettingsInitState.js.map +1 -1
  122. package/lib/module/classes/HMSTrackSource.js +10 -0
  123. package/lib/module/classes/HMSTrackSource.js.map +1 -1
  124. package/lib/module/classes/HMSTrackType.js +7 -0
  125. package/lib/module/classes/HMSTrackType.js.map +1 -1
  126. package/lib/module/classes/HMSUpdateListenerActions.js +42 -3
  127. package/lib/module/classes/HMSUpdateListenerActions.js.map +1 -1
  128. package/lib/module/classes/HMSVideoTrack.js +17 -0
  129. package/lib/module/classes/HMSVideoTrack.js.map +1 -1
  130. package/lib/module/classes/HMSVideoTrackSettings.js +12 -2
  131. package/lib/module/classes/HMSVideoTrackSettings.js.map +1 -1
  132. package/lib/module/classes/HmsView.js +43 -0
  133. package/lib/module/classes/HmsView.js.map +1 -1
  134. package/lib/typescript/classes/HMSAudioDevice.d.ts +14 -0
  135. package/lib/typescript/classes/HMSAudioMixingMode.d.ts +11 -0
  136. package/lib/typescript/classes/HMSAudioTrack.d.ts +9 -0
  137. package/lib/typescript/classes/HMSCameraFacing.d.ts +11 -0
  138. package/lib/typescript/classes/HMSConfig.d.ts +27 -0
  139. package/lib/typescript/classes/HMSException.d.ts +18 -0
  140. package/lib/typescript/classes/HMSHLSTimedMetadata.d.ts +12 -0
  141. package/lib/typescript/classes/HMSIOSAudioMode.d.ts +15 -0
  142. package/lib/typescript/classes/HMSLogAlarmManager.d.ts +12 -0
  143. package/lib/typescript/classes/HMSLogLevel.d.ts +12 -0
  144. package/lib/typescript/classes/HMSLogSettings.d.ts +14 -0
  145. package/lib/typescript/classes/HMSNetworkQuality.d.ts +11 -0
  146. package/lib/typescript/classes/HMSNoiseCancellationPlugin.d.ts +36 -6
  147. package/lib/typescript/classes/HMSPIPConfig.d.ts +40 -0
  148. package/lib/typescript/classes/HMSPIPListenerActions.d.ts +17 -0
  149. package/lib/typescript/classes/HMSPeer.d.ts +137 -0
  150. package/lib/typescript/classes/HMSPeerType.d.ts +11 -0
  151. package/lib/typescript/classes/HMSRTMPConfig.d.ts +14 -0
  152. package/lib/typescript/classes/HMSRole.d.ts +17 -0
  153. package/lib/typescript/classes/HMSRtmpVideoResolution.d.ts +13 -0
  154. package/lib/typescript/classes/HMSSDK.d.ts +1083 -235
  155. package/lib/typescript/classes/HMSSessionStore.d.ts +14 -15
  156. package/lib/typescript/classes/HMSTrack.d.ts +13 -0
  157. package/lib/typescript/classes/HMSTrackSettings.d.ts +10 -0
  158. package/lib/typescript/classes/HMSTrackSettingsInitState.d.ts +11 -0
  159. package/lib/typescript/classes/HMSTrackSource.d.ts +10 -0
  160. package/lib/typescript/classes/HMSTrackType.d.ts +7 -0
  161. package/lib/typescript/classes/HMSUpdateListenerActions.d.ts +290 -4
  162. package/lib/typescript/classes/HMSVideoTrack.d.ts +17 -0
  163. package/lib/typescript/classes/HMSVideoTrackSettings.d.ts +12 -2
  164. package/lib/typescript/classes/HmsView.d.ts +16 -0
  165. package/package.json +1 -1
  166. package/sdk-versions.json +2 -2
  167. package/src/classes/HMSAudioDevice.ts +18 -0
  168. package/src/classes/HMSAudioMixingMode.ts +11 -0
  169. package/src/classes/HMSAudioTrack.ts +9 -0
  170. package/src/classes/HMSCameraFacing.ts +11 -0
  171. package/src/classes/HMSConfig.ts +27 -0
  172. package/src/classes/HMSException.ts +18 -0
  173. package/src/classes/HMSHLSTimedMetadata.ts +12 -0
  174. package/src/classes/HMSIOSAudioMode.ts +15 -0
  175. package/src/classes/HMSLogAlarmManager.ts +12 -0
  176. package/src/classes/HMSLogLevel.ts +12 -0
  177. package/src/classes/HMSLogSettings.ts +14 -0
  178. package/src/classes/HMSNetworkQuality.ts +11 -0
  179. package/src/classes/HMSNoiseCancellationPlugin.ts +41 -10
  180. package/src/classes/HMSPIPConfig.ts +47 -0
  181. package/src/classes/HMSPIPListenerActions.ts +18 -0
  182. package/src/classes/HMSPeer.ts +137 -0
  183. package/src/classes/HMSPeerType.ts +13 -2
  184. package/src/classes/HMSRTMPConfig.ts +14 -0
  185. package/src/classes/HMSRole.ts +17 -0
  186. package/src/classes/HMSRtmpVideoResolution.ts +13 -0
  187. package/src/classes/HMSSDK.tsx +1211 -269
  188. package/src/classes/HMSSessionStore.ts +14 -15
  189. package/src/classes/HMSTrack.ts +13 -0
  190. package/src/classes/HMSTrackSettings.ts +10 -0
  191. package/src/classes/HMSTrackSettingsInitState.ts +11 -0
  192. package/src/classes/HMSTrackSource.ts +10 -0
  193. package/src/classes/HMSTrackType.ts +7 -0
  194. package/src/classes/HMSUpdateListenerActions.ts +312 -3
  195. package/src/classes/HMSVideoTrack.ts +17 -0
  196. package/src/classes/HMSVideoTrackSettings.ts +12 -2
  197. package/src/classes/HmsView.tsx +39 -0
@@ -4,10 +4,21 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.HMSPeerTypeOrdinals = exports.HMSPeerType = void 0;
7
+ /**
8
+ * Enum for HMSPeerType.
9
+ *
10
+ * Defines the types of peers within the HMS (100ms) system. This enumeration is used to distinguish between different
11
+ * kinds of peers, such as SIP (Session Initiation Protocol) peers and regular peers. Each peer type has specific
12
+ * characteristics and roles within the video conferencing or communication context.
13
+ *
14
+ * @enum {string}
15
+ *
16
+ * @see https://www.100ms.live/docs/server-side/v2/how-to-guides/Session%20Initiation%20Protocol%20(SIP)/SIP-Interconnect
17
+ */
7
18
  let HMSPeerType = exports.HMSPeerType = /*#__PURE__*/function (HMSPeerType) {
8
19
  HMSPeerType["SIP"] = "SIP";
9
20
  HMSPeerType["REGULAR"] = "REGULAR";
10
21
  return HMSPeerType;
11
- }({});
22
+ }({}); // Represents a regular peer, such as a standard user in a video call.
12
23
  const HMSPeerTypeOrdinals = exports.HMSPeerTypeOrdinals = new Map([['0', HMSPeerType.SIP], ['1', HMSPeerType.REGULAR]]);
13
24
  //# sourceMappingURL=HMSPeerType.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["HMSPeerType","exports","HMSPeerTypeOrdinals","Map","SIP","REGULAR"],"sources":["HMSPeerType.ts"],"sourcesContent":["export enum HMSPeerType {\n SIP = 'SIP',\n REGULAR = 'REGULAR',\n}\n\nexport const HMSPeerTypeOrdinals = new Map([\n ['0', HMSPeerType.SIP],\n ['1', HMSPeerType.REGULAR],\n]);\n"],"mappings":";;;;;;IAAYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAKhB,MAAME,mBAAmB,GAAAD,OAAA,CAAAC,mBAAA,GAAG,IAAIC,GAAG,CAAC,CACzC,CAAC,GAAG,EAAEH,WAAW,CAACI,GAAG,CAAC,EACtB,CAAC,GAAG,EAAEJ,WAAW,CAACK,OAAO,CAAC,CAC3B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["HMSPeerType","exports","HMSPeerTypeOrdinals","Map","SIP","REGULAR"],"sources":["HMSPeerType.ts"],"sourcesContent":["/**\n * Enum for HMSPeerType.\n *\n * Defines the types of peers within the HMS (100ms) system. This enumeration is used to distinguish between different\n * kinds of peers, such as SIP (Session Initiation Protocol) peers and regular peers. Each peer type has specific\n * characteristics and roles within the video conferencing or communication context.\n *\n * @enum {string}\n *\n * @see https://www.100ms.live/docs/server-side/v2/how-to-guides/Session%20Initiation%20Protocol%20(SIP)/SIP-Interconnect\n */\nexport enum HMSPeerType {\n SIP = 'SIP', // Represents a SIP peer, typically used for integrating with traditional telephony systems.\n REGULAR = 'REGULAR', // Represents a regular peer, such as a standard user in a video call.\n}\n\nexport const HMSPeerTypeOrdinals = new Map([\n ['0', HMSPeerType.SIP],\n ['1', HMSPeerType.REGULAR],\n]);\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,IAWYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA,OAEA;AAGhB,MAAME,mBAAmB,GAAAD,OAAA,CAAAC,mBAAA,GAAG,IAAIC,GAAG,CAAC,CACzC,CAAC,GAAG,EAAEH,WAAW,CAACI,GAAG,CAAC,EACtB,CAAC,GAAG,EAAEJ,WAAW,CAACK,OAAO,CAAC,CAC3B,CAAC","ignoreList":[]}
@@ -7,6 +7,20 @@ exports.HMSRTMPConfig = void 0;
7
7
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
8
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
+ /**
11
+ * Configuration class for RTMP streaming in the HMS (100ms) system.
12
+ *
13
+ * This class encapsulates the settings required to configure RTMP (Real-Time Messaging Protocol) streaming for a meeting.
14
+ * It includes options for the meeting URL, RTMP URLs for streaming, whether recording should be enabled, and the video resolution for the stream.
15
+ *
16
+ * @param {Object} params - The constructor parameters.
17
+ * @param {string} [params.meetingURL] - The URL of the meeting to be streamed. Optional.
18
+ * @param {Array<string>} [params.rtmpURLs] - An array of RTMP URLs to which the meeting will be streamed. Optional.
19
+ * @param {boolean} params.record - Flag indicating whether the stream should be recorded.
20
+ * @param {HMSRtmpVideoResolution} [params.resolution] - The resolution of the video to be streamed. Optional.
21
+ *
22
+ * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/record-and-live-stream/recording
23
+ */
10
24
  class HMSRTMPConfig {
11
25
  constructor(params) {
12
26
  _defineProperty(this, "meetingURL", void 0);
@@ -1 +1 @@
1
- {"version":3,"names":["HMSRTMPConfig","constructor","params","_defineProperty","meetingURL","rtmpURLs","record","resolution","exports"],"sources":["HMSRTMPConfig.ts"],"sourcesContent":["import type { HMSRtmpVideoResolution } from './HMSRtmpVideoResolution';\n\nexport class HMSRTMPConfig {\n meetingURL?: string;\n rtmpURLs?: Array<string>;\n record: boolean;\n resolution?: HMSRtmpVideoResolution;\n\n constructor(params: {\n meetingURL?: string;\n rtmpURLs?: Array<string>;\n record: boolean;\n resolution?: HMSRtmpVideoResolution;\n }) {\n this.meetingURL = params.meetingURL;\n this.rtmpURLs = params.rtmpURLs;\n this.record = params.record;\n this.resolution = params.resolution;\n }\n}\n"],"mappings":";;;;;;;;;AAEO,MAAMA,aAAa,CAAC;EAMzBC,WAAWA,CAACC,MAKX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,UAAU,GAAGF,MAAM,CAACE,UAAU;IACnC,IAAI,CAACC,QAAQ,GAAGH,MAAM,CAACG,QAAQ;IAC/B,IAAI,CAACC,MAAM,GAAGJ,MAAM,CAACI,MAAM;IAC3B,IAAI,CAACC,UAAU,GAAGL,MAAM,CAACK,UAAU;EACrC;AACF;AAACC,OAAA,CAAAR,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["HMSRTMPConfig","constructor","params","_defineProperty","meetingURL","rtmpURLs","record","resolution","exports"],"sources":["HMSRTMPConfig.ts"],"sourcesContent":["import type { HMSRtmpVideoResolution } from './HMSRtmpVideoResolution';\n\n/**\n * Configuration class for RTMP streaming in the HMS (100ms) system.\n *\n * This class encapsulates the settings required to configure RTMP (Real-Time Messaging Protocol) streaming for a meeting.\n * It includes options for the meeting URL, RTMP URLs for streaming, whether recording should be enabled, and the video resolution for the stream.\n *\n * @param {Object} params - The constructor parameters.\n * @param {string} [params.meetingURL] - The URL of the meeting to be streamed. Optional.\n * @param {Array<string>} [params.rtmpURLs] - An array of RTMP URLs to which the meeting will be streamed. Optional.\n * @param {boolean} params.record - Flag indicating whether the stream should be recorded.\n * @param {HMSRtmpVideoResolution} [params.resolution] - The resolution of the video to be streamed. Optional.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/record-and-live-stream/recording\n */\nexport class HMSRTMPConfig {\n meetingURL?: string;\n rtmpURLs?: Array<string>;\n record: boolean;\n resolution?: HMSRtmpVideoResolution;\n\n constructor(params: {\n meetingURL?: string;\n rtmpURLs?: Array<string>;\n record: boolean;\n resolution?: HMSRtmpVideoResolution;\n }) {\n this.meetingURL = params.meetingURL;\n this.rtmpURLs = params.rtmpURLs;\n this.record = params.record;\n this.resolution = params.resolution;\n }\n}\n"],"mappings":";;;;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,aAAa,CAAC;EAMzBC,WAAWA,CAACC,MAKX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,UAAU,GAAGF,MAAM,CAACE,UAAU;IACnC,IAAI,CAACC,QAAQ,GAAGH,MAAM,CAACG,QAAQ;IAC/B,IAAI,CAACC,MAAM,GAAGJ,MAAM,CAACI,MAAM;IAC3B,IAAI,CAACC,UAAU,GAAGL,MAAM,CAACK,UAAU;EACrC;AACF;AAACC,OAAA,CAAAR,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -7,6 +7,23 @@ exports.HMSRole = void 0;
7
7
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
8
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
+ /**
11
+ * Represents a role within the HMS ecosystem.
12
+ *
13
+ * A role defines the capabilities and permissions a user has in a session, such as publishing or subscribing to streams,
14
+ * and the priority of the user in the session. This class encapsulates the properties of a role, including its name,
15
+ * publishing settings, subscribing settings, permissions, and priority.
16
+ *
17
+ * @class HMSRole
18
+ * @property {string} [name] - The name of the role.
19
+ * @property {HMSPublishSettings} [publishSettings] - Settings related to publishing streams for this role.
20
+ * @property {HMSSubscribeSettings} [subscribeSettings] - Settings related to subscribing to streams for this role.
21
+ * @property {HMSPermissions} [permissions] - Permissions granted to this role.
22
+ * @property {number} [priority] - The priority of the role, determining its precedence in the session.
23
+ *
24
+ * @see https://www.100ms.live/docs/get-started/v2/get-started/concepts/templates-and-roles
25
+ *
26
+ */
10
27
  class HMSRole {
11
28
  constructor(params) {
12
29
  _defineProperty(this, "name", void 0);
@@ -1 +1 @@
1
- {"version":3,"names":["HMSRole","constructor","params","_defineProperty","name","priority","permissions","publishSettings","subscribeSettings","exports"],"sources":["HMSRole.ts"],"sourcesContent":["import type { HMSPermissions } from './HMSPermissions';\nimport type { HMSPublishSettings } from './HMSPublishSettings';\nimport type { HMSSubscribeSettings } from './HMSSubscribeSettings';\n\nexport class HMSRole {\n name?: string;\n publishSettings?: HMSPublishSettings;\n subscribeSettings?: HMSSubscribeSettings;\n permissions?: HMSPermissions;\n priority?: number;\n\n constructor(params?: {\n name?: string;\n priority?: number;\n permissions?: HMSPermissions;\n publishSettings?: HMSPublishSettings;\n subscribeSettings?: HMSSubscribeSettings;\n }) {\n if (params) {\n this.name = params.name;\n this.priority = params.priority;\n this.permissions = params.permissions;\n this.publishSettings = params.publishSettings;\n this.subscribeSettings = params.subscribeSettings;\n }\n }\n}\n"],"mappings":";;;;;;;;;AAIO,MAAMA,OAAO,CAAC;EAOnBC,WAAWA,CAACC,MAMX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAID,MAAM,EAAE;MACV,IAAI,CAACE,IAAI,GAAGF,MAAM,CAACE,IAAI;MACvB,IAAI,CAACC,QAAQ,GAAGH,MAAM,CAACG,QAAQ;MAC/B,IAAI,CAACC,WAAW,GAAGJ,MAAM,CAACI,WAAW;MACrC,IAAI,CAACC,eAAe,GAAGL,MAAM,CAACK,eAAe;MAC7C,IAAI,CAACC,iBAAiB,GAAGN,MAAM,CAACM,iBAAiB;IACnD;EACF;AACF;AAACC,OAAA,CAAAT,OAAA,GAAAA,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["HMSRole","constructor","params","_defineProperty","name","priority","permissions","publishSettings","subscribeSettings","exports"],"sources":["HMSRole.ts"],"sourcesContent":["import type { HMSPermissions } from './HMSPermissions';\nimport type { HMSPublishSettings } from './HMSPublishSettings';\nimport type { HMSSubscribeSettings } from './HMSSubscribeSettings';\n\n/**\n * Represents a role within the HMS ecosystem.\n *\n * A role defines the capabilities and permissions a user has in a session, such as publishing or subscribing to streams,\n * and the priority of the user in the session. This class encapsulates the properties of a role, including its name,\n * publishing settings, subscribing settings, permissions, and priority.\n *\n * @class HMSRole\n * @property {string} [name] - The name of the role.\n * @property {HMSPublishSettings} [publishSettings] - Settings related to publishing streams for this role.\n * @property {HMSSubscribeSettings} [subscribeSettings] - Settings related to subscribing to streams for this role.\n * @property {HMSPermissions} [permissions] - Permissions granted to this role.\n * @property {number} [priority] - The priority of the role, determining its precedence in the session.\n *\n * @see https://www.100ms.live/docs/get-started/v2/get-started/concepts/templates-and-roles\n *\n */\nexport class HMSRole {\n name?: string;\n publishSettings?: HMSPublishSettings;\n subscribeSettings?: HMSSubscribeSettings;\n permissions?: HMSPermissions;\n priority?: number;\n\n constructor(params?: {\n name?: string;\n priority?: number;\n permissions?: HMSPermissions;\n publishSettings?: HMSPublishSettings;\n subscribeSettings?: HMSSubscribeSettings;\n }) {\n if (params) {\n this.name = params.name;\n this.priority = params.priority;\n this.permissions = params.permissions;\n this.publishSettings = params.publishSettings;\n this.subscribeSettings = params.subscribeSettings;\n }\n }\n}\n"],"mappings":";;;;;;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,OAAO,CAAC;EAOnBC,WAAWA,CAACC,MAMX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAID,MAAM,EAAE;MACV,IAAI,CAACE,IAAI,GAAGF,MAAM,CAACE,IAAI;MACvB,IAAI,CAACC,QAAQ,GAAGH,MAAM,CAACG,QAAQ;MAC/B,IAAI,CAACC,WAAW,GAAGJ,MAAM,CAACI,WAAW;MACrC,IAAI,CAACC,eAAe,GAAGL,MAAM,CAACK,eAAe;MAC7C,IAAI,CAACC,iBAAiB,GAAGN,MAAM,CAACM,iBAAiB;IACnD;EACF;AACF;AAACC,OAAA,CAAAT,OAAA,GAAAA,OAAA","ignoreList":[]}
@@ -7,6 +7,19 @@ exports.HMSRtmpVideoResolution = void 0;
7
7
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
8
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
+ /**
11
+ * Represents the video resolution for RTMP streaming in the HMS (100ms) system.
12
+ *
13
+ * This class encapsulates the dimensions (height and width) of the video resolution to be used for RTMP streaming.
14
+ * It allows for specifying the video quality by defining the resolution, which is crucial for optimizing the streaming experience
15
+ * based on the bandwidth available and the requirements of the streaming platform.
16
+ *
17
+ * @param {Object} params - The constructor parameters.
18
+ * @param {number} params.height - The height of the video resolution.
19
+ * @param {number} params.width - The width of the video resolution.
20
+ *
21
+ * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/record-and-live-stream/recording
22
+ */
10
23
  class HMSRtmpVideoResolution {
11
24
  constructor(params) {
12
25
  _defineProperty(this, "height", void 0);
@@ -1 +1 @@
1
- {"version":3,"names":["HMSRtmpVideoResolution","constructor","params","_defineProperty","height","width","exports"],"sources":["HMSRtmpVideoResolution.ts"],"sourcesContent":["export class HMSRtmpVideoResolution {\n height: number;\n width: number;\n\n constructor(params: { height: number; width: number }) {\n this.height = params.height;\n this.width = params.width;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,sBAAsB,CAAC;EAIlCC,WAAWA,CAACC,MAAyC,EAAE;IAAAC,eAAA;IAAAA,eAAA;IACrD,IAAI,CAACC,MAAM,GAAGF,MAAM,CAACE,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAN,sBAAA,GAAAA,sBAAA","ignoreList":[]}
1
+ {"version":3,"names":["HMSRtmpVideoResolution","constructor","params","_defineProperty","height","width","exports"],"sources":["HMSRtmpVideoResolution.ts"],"sourcesContent":["/**\n * Represents the video resolution for RTMP streaming in the HMS (100ms) system.\n *\n * This class encapsulates the dimensions (height and width) of the video resolution to be used for RTMP streaming.\n * It allows for specifying the video quality by defining the resolution, which is crucial for optimizing the streaming experience\n * based on the bandwidth available and the requirements of the streaming platform.\n *\n * @param {Object} params - The constructor parameters.\n * @param {number} params.height - The height of the video resolution.\n * @param {number} params.width - The width of the video resolution.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/record-and-live-stream/recording\n */\nexport class HMSRtmpVideoResolution {\n height: number;\n width: number;\n\n constructor(params: { height: number; width: number }) {\n this.height = params.height;\n this.width = params.width;\n }\n}\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,sBAAsB,CAAC;EAIlCC,WAAWA,CAACC,MAAyC,EAAE;IAAAC,eAAA;IAAAA,eAAA;IACrD,IAAI,CAACC,MAAM,GAAGF,MAAM,CAACE,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAN,sBAAA,GAAAA,sBAAA","ignoreList":[]}