@100mslive/react-native-hms 1.10.8 → 1.11.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 +6 -6
- package/android/build.gradle +1 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +27 -3
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +34 -3
- package/android/src/main/java/com/reactnativehmssdk/PipActionReceiver.kt +3 -1
- package/ios/HMSRNSDK.swift +13 -8
- package/lib/commonjs/classes/HMSAudioDevice.js +9 -0
- package/lib/commonjs/classes/HMSAudioDevice.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixingMode.js +11 -0
- package/lib/commonjs/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrack.js +9 -0
- package/lib/commonjs/classes/HMSAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSCameraFacing.js +9 -0
- package/lib/commonjs/classes/HMSCameraFacing.js.map +1 -1
- package/lib/commonjs/classes/HMSConfig.js +27 -0
- package/lib/commonjs/classes/HMSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSException.js +18 -0
- package/lib/commonjs/classes/HMSException.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSTimedMetadata.js.map +1 -1
- package/lib/commonjs/classes/HMSIOSAudioMode.js +15 -0
- package/lib/commonjs/classes/HMSIOSAudioMode.js.map +1 -1
- package/lib/commonjs/classes/HMSLogAlarmManager.js +12 -0
- package/lib/commonjs/classes/HMSLogAlarmManager.js.map +1 -1
- package/lib/commonjs/classes/HMSLogLevel.js +12 -0
- package/lib/commonjs/classes/HMSLogLevel.js.map +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js +14 -0
- package/lib/commonjs/classes/HMSLogSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js +11 -0
- package/lib/commonjs/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js +40 -10
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js.map +1 -1
- package/lib/commonjs/classes/HMSPIPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSPIPListenerActions.js +9 -0
- package/lib/commonjs/classes/HMSPIPListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSPeer.js +148 -0
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerType.js +12 -1
- package/lib/commonjs/classes/HMSPeerType.js.map +1 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js +14 -0
- package/lib/commonjs/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +17 -0
- package/lib/commonjs/classes/HMSRole.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js +13 -0
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSSDK.js +1126 -248
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSSessionStore.js +14 -15
- package/lib/commonjs/classes/HMSSessionStore.js.map +1 -1
- package/lib/commonjs/classes/HMSTrack.js +13 -0
- package/lib/commonjs/classes/HMSTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettings.js +10 -0
- package/lib/commonjs/classes/HMSTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js +9 -0
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSource.js +10 -0
- package/lib/commonjs/classes/HMSTrackSource.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackType.js +7 -0
- package/lib/commonjs/classes/HMSTrackType.js.map +1 -1
- package/lib/commonjs/classes/HMSUpdateListenerActions.js +42 -3
- package/lib/commonjs/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js +17 -0
- package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +12 -2
- package/lib/commonjs/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HmsView.js +42 -0
- package/lib/commonjs/classes/HmsView.js.map +1 -1
- package/lib/module/classes/HMSAudioDevice.js +9 -0
- package/lib/module/classes/HMSAudioDevice.js.map +1 -1
- package/lib/module/classes/HMSAudioMixingMode.js +11 -0
- package/lib/module/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/module/classes/HMSAudioTrack.js +9 -0
- package/lib/module/classes/HMSAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSCameraFacing.js +9 -0
- package/lib/module/classes/HMSCameraFacing.js.map +1 -1
- package/lib/module/classes/HMSConfig.js +27 -0
- package/lib/module/classes/HMSConfig.js.map +1 -1
- package/lib/module/classes/HMSException.js +18 -0
- package/lib/module/classes/HMSException.js.map +1 -1
- package/lib/module/classes/HMSHLSTimedMetadata.js.map +1 -1
- package/lib/module/classes/HMSIOSAudioMode.js +15 -0
- package/lib/module/classes/HMSIOSAudioMode.js.map +1 -1
- package/lib/module/classes/HMSLogAlarmManager.js +12 -0
- package/lib/module/classes/HMSLogAlarmManager.js.map +1 -1
- package/lib/module/classes/HMSLogLevel.js +12 -0
- package/lib/module/classes/HMSLogLevel.js.map +1 -1
- package/lib/module/classes/HMSLogSettings.js +14 -0
- package/lib/module/classes/HMSLogSettings.js.map +1 -1
- package/lib/module/classes/HMSNetworkQuality.js +11 -0
- package/lib/module/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/module/classes/HMSNoiseCancellationPlugin.js +40 -10
- package/lib/module/classes/HMSNoiseCancellationPlugin.js.map +1 -1
- package/lib/module/classes/HMSPIPConfig.js.map +1 -1
- package/lib/module/classes/HMSPIPListenerActions.js +9 -0
- package/lib/module/classes/HMSPIPListenerActions.js.map +1 -1
- package/lib/module/classes/HMSPeer.js +149 -0
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPeerType.js +12 -1
- package/lib/module/classes/HMSPeerType.js.map +1 -1
- package/lib/module/classes/HMSRTMPConfig.js +14 -0
- package/lib/module/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/module/classes/HMSRole.js +17 -0
- package/lib/module/classes/HMSRole.js.map +1 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js +13 -0
- package/lib/module/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSSDK.js +1126 -248
- package/lib/module/classes/HMSSDK.js.map +1 -1
- package/lib/module/classes/HMSSessionStore.js +14 -15
- package/lib/module/classes/HMSSessionStore.js.map +1 -1
- package/lib/module/classes/HMSTrack.js +13 -0
- package/lib/module/classes/HMSTrack.js.map +1 -1
- package/lib/module/classes/HMSTrackSettings.js +10 -0
- package/lib/module/classes/HMSTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSTrackSettingsInitState.js +9 -0
- package/lib/module/classes/HMSTrackSettingsInitState.js.map +1 -1
- package/lib/module/classes/HMSTrackSource.js +10 -0
- package/lib/module/classes/HMSTrackSource.js.map +1 -1
- package/lib/module/classes/HMSTrackType.js +7 -0
- package/lib/module/classes/HMSTrackType.js.map +1 -1
- package/lib/module/classes/HMSUpdateListenerActions.js +42 -3
- package/lib/module/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/module/classes/HMSVideoTrack.js +17 -0
- package/lib/module/classes/HMSVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js +12 -2
- package/lib/module/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/module/classes/HmsView.js +43 -0
- package/lib/module/classes/HmsView.js.map +1 -1
- package/lib/typescript/classes/HMSAudioDevice.d.ts +14 -0
- package/lib/typescript/classes/HMSAudioMixingMode.d.ts +11 -0
- package/lib/typescript/classes/HMSAudioTrack.d.ts +9 -0
- package/lib/typescript/classes/HMSCameraFacing.d.ts +11 -0
- package/lib/typescript/classes/HMSConfig.d.ts +27 -0
- package/lib/typescript/classes/HMSException.d.ts +18 -0
- package/lib/typescript/classes/HMSHLSTimedMetadata.d.ts +12 -0
- package/lib/typescript/classes/HMSIOSAudioMode.d.ts +15 -0
- package/lib/typescript/classes/HMSLogAlarmManager.d.ts +12 -0
- package/lib/typescript/classes/HMSLogLevel.d.ts +12 -0
- package/lib/typescript/classes/HMSLogSettings.d.ts +14 -0
- package/lib/typescript/classes/HMSNetworkQuality.d.ts +11 -0
- package/lib/typescript/classes/HMSNoiseCancellationPlugin.d.ts +36 -6
- package/lib/typescript/classes/HMSPIPConfig.d.ts +37 -0
- package/lib/typescript/classes/HMSPIPListenerActions.d.ts +17 -0
- package/lib/typescript/classes/HMSPeer.d.ts +137 -0
- package/lib/typescript/classes/HMSPeerType.d.ts +11 -0
- package/lib/typescript/classes/HMSRTMPConfig.d.ts +14 -0
- package/lib/typescript/classes/HMSRole.d.ts +17 -0
- package/lib/typescript/classes/HMSRtmpVideoResolution.d.ts +13 -0
- package/lib/typescript/classes/HMSSDK.d.ts +1080 -235
- package/lib/typescript/classes/HMSSessionStore.d.ts +14 -15
- package/lib/typescript/classes/HMSTrack.d.ts +13 -0
- package/lib/typescript/classes/HMSTrackSettings.d.ts +10 -0
- package/lib/typescript/classes/HMSTrackSettingsInitState.d.ts +11 -0
- package/lib/typescript/classes/HMSTrackSource.d.ts +10 -0
- package/lib/typescript/classes/HMSTrackType.d.ts +7 -0
- package/lib/typescript/classes/HMSUpdateListenerActions.d.ts +290 -4
- package/lib/typescript/classes/HMSVideoTrack.d.ts +17 -0
- package/lib/typescript/classes/HMSVideoTrackSettings.d.ts +12 -2
- package/lib/typescript/classes/HmsView.d.ts +16 -0
- package/package.json +1 -1
- package/sdk-versions.json +2 -2
- package/src/classes/HMSAudioDevice.ts +18 -0
- package/src/classes/HMSAudioMixingMode.ts +11 -0
- package/src/classes/HMSAudioTrack.ts +9 -0
- package/src/classes/HMSCameraFacing.ts +11 -0
- package/src/classes/HMSConfig.ts +27 -0
- package/src/classes/HMSException.ts +18 -0
- package/src/classes/HMSHLSTimedMetadata.ts +12 -0
- package/src/classes/HMSIOSAudioMode.ts +15 -0
- package/src/classes/HMSLogAlarmManager.ts +12 -0
- package/src/classes/HMSLogLevel.ts +12 -0
- package/src/classes/HMSLogSettings.ts +14 -0
- package/src/classes/HMSNetworkQuality.ts +11 -0
- package/src/classes/HMSNoiseCancellationPlugin.ts +41 -10
- package/src/classes/HMSPIPConfig.ts +25 -8
- package/src/classes/HMSPIPListenerActions.ts +18 -0
- package/src/classes/HMSPeer.ts +137 -0
- package/src/classes/HMSPeerType.ts +13 -2
- package/src/classes/HMSRTMPConfig.ts +14 -0
- package/src/classes/HMSRole.ts +17 -0
- package/src/classes/HMSRtmpVideoResolution.ts +13 -0
- package/src/classes/HMSSDK.tsx +1182 -277
- package/src/classes/HMSSessionStore.ts +14 -15
- package/src/classes/HMSTrack.ts +13 -0
- package/src/classes/HMSTrackSettings.ts +10 -0
- package/src/classes/HMSTrackSettingsInitState.ts +11 -0
- package/src/classes/HMSTrackSource.ts +10 -0
- package/src/classes/HMSTrackType.ts +7 -0
- package/src/classes/HMSUpdateListenerActions.ts +312 -3
- package/src/classes/HMSVideoTrack.ts +17 -0
- package/src/classes/HMSVideoTrackSettings.ts +12 -2
- package/src/classes/HmsView.tsx +39 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSAudioDevice"],"sources":["HMSAudioDevice.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSAudioDevice"],"sources":["HMSAudioDevice.ts"],"sourcesContent":["/**\n * Enum for HMSAudioDevice types.\n *\n * This enum represents the different types of audio devices that can be used\n * in the context of the HMS SDK. It provides a way to specify the preferred\n * audio output device for audio playback.\n *\n * @enum {string}\n */\nexport enum HMSAudioDevice {\n /** Use the speakerphone for audio output. */\n SPEAKER_PHONE = 'SPEAKER_PHONE',\n\n /** Use a wired headset for audio output, if connected. */\n WIRED_HEADSET = 'WIRED_HEADSET',\n\n /** Use the earpiece for audio output. */\n EARPIECE = 'EARPIECE',\n\n /** Use a Bluetooth device for audio output, if connected. */\n BLUETOOTH = 'BLUETOOTH',\n\n /** Automatically select the best audio output device based on the current state. */\n AUTOMATIC = 'AUTOMATIC',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum for HMS Audio Mixing Mode options.
|
|
3
|
+
*
|
|
4
|
+
* Defines the modes available for audio mixing in a session. These modes determine how audio tracks are mixed and played back.
|
|
5
|
+
*
|
|
6
|
+
* - `TALK_ONLY`: Only the talk (voice) track is active, suitable for sessions focusing on voice communication.
|
|
7
|
+
* - `TALK_AND_MUSIC`: Both talk and music tracks are active, allowing for background music with clear voice overlay.
|
|
8
|
+
* - `MUSIC_ONLY`: Only the music track is active, ideal for sessions focusing on music playback.
|
|
9
|
+
*
|
|
10
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/local-audio-share
|
|
11
|
+
*/
|
|
1
12
|
export let HMSAudioMixingMode = /*#__PURE__*/function (HMSAudioMixingMode) {
|
|
2
13
|
HMSAudioMixingMode["TALK_ONLY"] = "TALK_ONLY";
|
|
3
14
|
HMSAudioMixingMode["TALK_AND_MUSIC"] = "TALK_AND_MUSIC";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSAudioMixingMode"],"sources":["HMSAudioMixingMode.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSAudioMixingMode"],"sources":["HMSAudioMixingMode.ts"],"sourcesContent":["/**\n * Enum for HMS Audio Mixing Mode options.\n *\n * Defines the modes available for audio mixing in a session. These modes determine how audio tracks are mixed and played back.\n *\n * - `TALK_ONLY`: Only the talk (voice) track is active, suitable for sessions focusing on voice communication.\n * - `TALK_AND_MUSIC`: Both talk and music tracks are active, allowing for background music with clear voice overlay.\n * - `MUSIC_ONLY`: Only the music track is active, ideal for sessions focusing on music playback.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/local-audio-share\n */\nexport enum HMSAudioMixingMode {\n TALK_ONLY = 'TALK_ONLY',\n TALK_AND_MUSIC = 'TALK_AND_MUSIC',\n MUSIC_ONLY = 'MUSIC_ONLY',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA","ignoreList":[]}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { HMSTrack } from './HMSTrack';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an audio track within the HMS (100ms) system.
|
|
4
|
+
*
|
|
5
|
+
* This class extends `HMSTrack` to provide functionalities specific to audio tracks. It includes a constructor
|
|
6
|
+
* that allows for the initialization of the audio track with various parameters such as track ID, source, description,
|
|
7
|
+
* mute state, ID, and type. These parameters provide detailed information about the audio track and its characteristics.
|
|
8
|
+
*
|
|
9
|
+
* @extends HMSTrack
|
|
10
|
+
*/
|
|
2
11
|
export class HMSAudioTrack extends HMSTrack {
|
|
3
12
|
constructor(params) {
|
|
4
13
|
if (params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSTrack","HMSAudioTrack","constructor","params"],"sources":["HMSAudioTrack.ts"],"sourcesContent":["import { HMSTrack } from './HMSTrack';\nimport type { HMSTrackSource } from './HMSTrackSource';\nimport type { HMSTrackType } from './HMSTrackType';\n\nexport class HMSAudioTrack extends HMSTrack {\n constructor(params?: {\n trackId: string;\n source?: HMSTrackSource;\n trackDescription?: string;\n isMute?: boolean;\n id: string;\n type?: HMSTrackType;\n }) {\n if (params) {\n super(params);\n }\n }\n}\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,YAAY;AAIrC,OAAO,MAAMC,aAAa,SAASD,QAAQ,CAAC;EAC1CE,WAAWA,CAACC,MAOX,EAAE;IACD,IAAIA,MAAM,EAAE;MACV,KAAK,CAACA,MAAM,CAAC;IACf;EACF;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["HMSTrack","HMSAudioTrack","constructor","params"],"sources":["HMSAudioTrack.ts"],"sourcesContent":["import { HMSTrack } from './HMSTrack';\nimport type { HMSTrackSource } from './HMSTrackSource';\nimport type { HMSTrackType } from './HMSTrackType';\n\n/**\n * Represents an audio track within the HMS (100ms) system.\n *\n * This class extends `HMSTrack` to provide functionalities specific to audio tracks. It includes a constructor\n * that allows for the initialization of the audio track with various parameters such as track ID, source, description,\n * mute state, ID, and type. These parameters provide detailed information about the audio track and its characteristics.\n *\n * @extends HMSTrack\n */\nexport class HMSAudioTrack extends HMSTrack {\n constructor(params?: {\n trackId: string;\n source?: HMSTrackSource;\n trackDescription?: string;\n isMute?: boolean;\n id: string;\n type?: HMSTrackType;\n }) {\n if (params) {\n super(params);\n }\n }\n}\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,YAAY;AAIrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,SAASD,QAAQ,CAAC;EAC1CE,WAAWA,CAACC,MAOX,EAAE;IACD,IAAIA,MAAM,EAAE;MACV,KAAK,CAACA,MAAM,CAAC;IACf;EACF;AACF","ignoreList":[]}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum for camera facing directions in a 100ms (HMS) application.
|
|
3
|
+
*
|
|
4
|
+
* This enumeration defines the possible camera facing options for video tracks in a 100ms (HMS) application, allowing developers to specify whether the front or back camera should be used during a video session.
|
|
5
|
+
* This can be particularly useful for applications that need to switch between cameras or provide users with the option to choose their preferred camera.
|
|
6
|
+
*
|
|
7
|
+
* @enum {string}
|
|
8
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/mute#switch-camera
|
|
9
|
+
*/
|
|
1
10
|
export let HMSCameraFacing = /*#__PURE__*/function (HMSCameraFacing) {
|
|
2
11
|
HMSCameraFacing["FRONT"] = "FRONT";
|
|
3
12
|
HMSCameraFacing["BACK"] = "BACK";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSCameraFacing"],"sources":["HMSCameraFacing.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSCameraFacing"],"sources":["HMSCameraFacing.ts"],"sourcesContent":["/**\n * Enum for camera facing directions in a 100ms (HMS) application.\n *\n * This enumeration defines the possible camera facing options for video tracks in a 100ms (HMS) application, allowing developers to specify whether the front or back camera should be used during a video session.\n * This can be particularly useful for applications that need to switch between cameras or provide users with the option to choose their preferred camera.\n *\n * @enum {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/mute#switch-camera\n */\nexport enum HMSCameraFacing {\n /** Represents the front camera on a device. */\n FRONT = 'FRONT',\n /** Represents the back camera on a device. */\n BACK = 'BACK',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
|
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
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; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
+
/**
|
|
5
|
+
* Represents the configuration needed to join a room in the HMS ecosystem.
|
|
6
|
+
*
|
|
7
|
+
* This class encapsulates all necessary details required to initiate a connection to a room, including user identification,
|
|
8
|
+
* authentication token, optional endpoint for different server connections, metadata for additional information about the connection,
|
|
9
|
+
* and a flag to capture network quality during the preview phase.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/join
|
|
13
|
+
*
|
|
14
|
+
* @param {Object} params - The configuration parameters.
|
|
15
|
+
* @param {string} params.username - The username of the participant.
|
|
16
|
+
* @param {string} params.authToken - The authentication token for room access.
|
|
17
|
+
* @param {string} [params.endpoint] - Optional. The endpoint URL for the connection.
|
|
18
|
+
* @param {string} [params.metadata] - Optional. Additional metadata associated with the Local Peer.
|
|
19
|
+
* @param {boolean} [params.captureNetworkQualityInPreview] - Optional. Flag to capture network quality in the preview phase.
|
|
20
|
+
* @constructor
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* const config = new HMSConfig({
|
|
24
|
+
* username: 'username',
|
|
25
|
+
* authToken: 'authToken',
|
|
26
|
+
* metadata: 'metadata',
|
|
27
|
+
* captureNetworkQualityInPreview: true,
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
4
31
|
export class HMSConfig {
|
|
5
32
|
constructor(params) {
|
|
6
33
|
_defineProperty(this, "username", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSConfig","constructor","params","_defineProperty","username","authToken","endpoint","metadata","captureNetworkQualityInPreview"],"sources":["HMSConfig.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSConfig","constructor","params","_defineProperty","username","authToken","endpoint","metadata","captureNetworkQualityInPreview"],"sources":["HMSConfig.ts"],"sourcesContent":["/**\n * Represents the configuration needed to join a room in the HMS ecosystem.\n *\n * This class encapsulates all necessary details required to initiate a connection to a room, including user identification,\n * authentication token, optional endpoint for different server connections, metadata for additional information about the connection,\n * and a flag to capture network quality during the preview phase.\n *\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/join\n *\n * @param {Object} params - The configuration parameters.\n * @param {string} params.username - The username of the participant.\n * @param {string} params.authToken - The authentication token for room access.\n * @param {string} [params.endpoint] - Optional. The endpoint URL for the connection.\n * @param {string} [params.metadata] - Optional. Additional metadata associated with the Local Peer.\n * @param {boolean} [params.captureNetworkQualityInPreview] - Optional. Flag to capture network quality in the preview phase.\n * @constructor\n *\n * @example\n * const config = new HMSConfig({\n * username: 'username',\n * authToken: 'authToken',\n * metadata: 'metadata',\n * captureNetworkQualityInPreview: true,\n * });\n *\n */\nexport class HMSConfig {\n username: string;\n authToken: string;\n endpoint?: string;\n metadata?: string;\n captureNetworkQualityInPreview?: boolean;\n\n constructor(params: {\n username: string;\n authToken: string;\n endpoint?: string;\n metadata?: string;\n captureNetworkQualityInPreview?: boolean;\n }) {\n this.username = params.username;\n this.authToken = params.authToken;\n this.endpoint = params.endpoint;\n this.metadata = params.metadata;\n this.captureNetworkQualityInPreview = params.captureNetworkQualityInPreview;\n }\n}\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,CAAC;EAOrBC,WAAWA,CAACC,MAMX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,QAAQ,GAAGF,MAAM,CAACE,QAAQ;IAC/B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,QAAQ,GAAGJ,MAAM,CAACI,QAAQ;IAC/B,IAAI,CAACC,QAAQ,GAAGL,MAAM,CAACK,QAAQ;IAC/B,IAAI,CAACC,8BAA8B,GAAGN,MAAM,CAACM,8BAA8B;EAC7E;AACF","ignoreList":[]}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
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; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
+
/**
|
|
5
|
+
* Represents an exception specific to the HMS SDK in a React Native context.
|
|
6
|
+
*
|
|
7
|
+
* This class encapsulates detailed information about errors that can occur while interacting with the HMS SDK.
|
|
8
|
+
* It includes a numeric code to identify the type of error, a human-readable description, and optionally,
|
|
9
|
+
* a message, name, and action that are primarily available on Android. Additionally, it indicates whether
|
|
10
|
+
* the error is terminal (i.e., cannot be recovered from) and whether a retry might be possible.
|
|
11
|
+
*
|
|
12
|
+
* @class HMSException
|
|
13
|
+
* @property {number} code - Numeric error code representing the type of error.
|
|
14
|
+
* @property {string} description - A brief, human-readable description of the error.
|
|
15
|
+
* @property {string} [message] - Additional message information about the error (Android only).
|
|
16
|
+
* @property {string} [name] - The name of the error (Android only).
|
|
17
|
+
* @property {string} [action] - The action during which the error occurred (Android only).
|
|
18
|
+
* @property {boolean} isTerminal - Indicates whether the error is terminal.
|
|
19
|
+
* @property {boolean} [canRetry] - Indicates whether the operation that caused the error can be retried (Android only).
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
4
22
|
export class HMSException {
|
|
5
23
|
// `canRetry` is available only on Android
|
|
6
24
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSException","constructor","params","_defineProperty","code","description","message","name","action","isTerminal","canRetry"],"sources":["HMSException.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSException","constructor","params","_defineProperty","code","description","message","name","action","isTerminal","canRetry"],"sources":["HMSException.ts"],"sourcesContent":["/**\n * Represents an exception specific to the HMS SDK in a React Native context.\n *\n * This class encapsulates detailed information about errors that can occur while interacting with the HMS SDK.\n * It includes a numeric code to identify the type of error, a human-readable description, and optionally,\n * a message, name, and action that are primarily available on Android. Additionally, it indicates whether\n * the error is terminal (i.e., cannot be recovered from) and whether a retry might be possible.\n *\n * @class HMSException\n * @property {number} code - Numeric error code representing the type of error.\n * @property {string} description - A brief, human-readable description of the error.\n * @property {string} [message] - Additional message information about the error (Android only).\n * @property {string} [name] - The name of the error (Android only).\n * @property {string} [action] - The action during which the error occurred (Android only).\n * @property {boolean} isTerminal - Indicates whether the error is terminal.\n * @property {boolean} [canRetry] - Indicates whether the operation that caused the error can be retried (Android only).\n *\n */\nexport class HMSException {\n code: number;\n description: string;\n message?: string; // `message` is available only on Android\n name?: string; // `name` is available only on Android\n action?: string; // `action` is available only on Android\n isTerminal: boolean;\n canRetry?: boolean; // `canRetry` is available only on Android\n\n constructor(params: {\n code: number;\n description: string;\n message?: string;\n name?: string;\n action?: string;\n isTerminal: boolean;\n canRetry?: boolean;\n }) {\n this.code = params.code;\n this.description = params.description;\n this.message = params.message;\n this.name = params.name;\n this.action = params.action;\n this.isTerminal = params.isTerminal;\n this.canRetry = params.canRetry;\n }\n}\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,YAAY,CAAC;EAOJ;;EAEpBC,WAAWA,CAACC,MAQX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAde;IAAAA,eAAA;IACH;IAAAA,eAAA;IACE;IAAAA,eAAA;IAAAA,eAAA;IAaf,IAAI,CAACC,IAAI,GAAGF,MAAM,CAACE,IAAI;IACvB,IAAI,CAACC,WAAW,GAAGH,MAAM,CAACG,WAAW;IACrC,IAAI,CAACC,OAAO,GAAGJ,MAAM,CAACI,OAAO;IAC7B,IAAI,CAACC,IAAI,GAAGL,MAAM,CAACK,IAAI;IACvB,IAAI,CAACC,MAAM,GAAGN,MAAM,CAACM,MAAM;IAC3B,IAAI,CAACC,UAAU,GAAGP,MAAM,CAACO,UAAU;IACnC,IAAI,CAACC,QAAQ,GAAGR,MAAM,CAACQ,QAAQ;EACjC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["HMSHLSTimedMetadata.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":[],"sources":["HMSHLSTimedMetadata.ts"],"sourcesContent":["/**\n * Defines the structure for HLS (HTTP Live Streaming) timed metadata.\n *\n * This interface is used to represent metadata that can be synchronized with HLS video playback.\n * The metadata includes a payload, which is the content of the metadata, and a duration, specifying how long (in seconds)\n * the metadata should be displayed during the stream.\n * This can be used for a variety of purposes such as displaying song titles, advertisements, or other relevant information at specific times during the stream.\n *\n * @interface HMSHLSTimedMetadata\n * @property {string} payload - The content of the metadata to be displayed.\n * @property {number} duration - The duration (in seconds) for which the metadata should be displayed.\n */\nexport interface HMSHLSTimedMetadata {\n payload: string;\n duration: number;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum for specifying the audio mode in an iOS environment within a 100ms (HMS) application.
|
|
3
|
+
*
|
|
4
|
+
* This enumeration provides options to configure the audio mode for an iOS application using the 100ms (HMS) SDK.
|
|
5
|
+
* It allows for the selection between `voice` and `music` modes, catering to different use cases such as
|
|
6
|
+
* prioritizing voice clarity or enhancing music quality during a session.
|
|
7
|
+
*
|
|
8
|
+
* @enum {string}
|
|
9
|
+
* @property {string} VOICE - Configures the audio session for optimized voice communication.
|
|
10
|
+
* This mode enhances voice clarity, making it suitable for calls or conferences.
|
|
11
|
+
* @property {string} MUSIC - Configures the audio session for music playback.
|
|
12
|
+
* This mode enhances music fidelity, making it suitable for streams or recordings that prioritize music quality.
|
|
13
|
+
*
|
|
14
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/configure-your-device/microphone/music-mode
|
|
15
|
+
*/
|
|
1
16
|
export let HMSIOSAudioMode = /*#__PURE__*/function (HMSIOSAudioMode) {
|
|
2
17
|
HMSIOSAudioMode["VOICE"] = "voice";
|
|
3
18
|
HMSIOSAudioMode["MUSIC"] = "music";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSIOSAudioMode"],"sources":["HMSIOSAudioMode.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSIOSAudioMode"],"sources":["HMSIOSAudioMode.ts"],"sourcesContent":["/**\n * Enum for specifying the audio mode in an iOS environment within a 100ms (HMS) application.\n *\n * This enumeration provides options to configure the audio mode for an iOS application using the 100ms (HMS) SDK.\n * It allows for the selection between `voice` and `music` modes, catering to different use cases such as\n * prioritizing voice clarity or enhancing music quality during a session.\n *\n * @enum {string}\n * @property {string} VOICE - Configures the audio session for optimized voice communication.\n * This mode enhances voice clarity, making it suitable for calls or conferences.\n * @property {string} MUSIC - Configures the audio session for music playback.\n * This mode enhances music fidelity, making it suitable for streams or recordings that prioritize music quality.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/configure-your-device/microphone/music-mode\n */\nexport enum HMSIOSAudioMode {\n VOICE = 'voice',\n MUSIC = 'music',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumeration for managing log alarm settings in HMS SDK for React Native applications. Android only.
|
|
3
|
+
*
|
|
4
|
+
* This enumeration defines constants used to configure the alarm manager for log files in the HMS SDK.
|
|
5
|
+
* It includes settings for the default directory size, default log file name, and maximum directory size,
|
|
6
|
+
* allowing for detailed control over how log files are managed and stored.
|
|
7
|
+
*
|
|
8
|
+
* @enum {string}
|
|
9
|
+
* @property {string} DEFAULT_DIR_SIZE - Represents the default size for the log directory.
|
|
10
|
+
* @property {string} DEFAULT_LOGS_FILE_NAME - Represents the default name for log files.
|
|
11
|
+
* @property {string} MAX_DIR_SIZE - Represents the maximum size for the log directory.
|
|
12
|
+
*/
|
|
1
13
|
export let HMSLogAlarmManager = /*#__PURE__*/function (HMSLogAlarmManager) {
|
|
2
14
|
HMSLogAlarmManager["DEFAULT_DIR_SIZE"] = "DEFAULT_DIR_SIZE";
|
|
3
15
|
HMSLogAlarmManager["DEFAULT_LOGS_FILE_NAME"] = "DEFAULT_LOGS_FILE_NAME";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLogAlarmManager"],"sources":["HMSLogAlarmManager.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSLogAlarmManager"],"sources":["HMSLogAlarmManager.ts"],"sourcesContent":["/**\n * Enumeration for managing log alarm settings in HMS SDK for React Native applications. Android only.\n *\n * This enumeration defines constants used to configure the alarm manager for log files in the HMS SDK.\n * It includes settings for the default directory size, default log file name, and maximum directory size,\n * allowing for detailed control over how log files are managed and stored.\n *\n * @enum {string}\n * @property {string} DEFAULT_DIR_SIZE - Represents the default size for the log directory.\n * @property {string} DEFAULT_LOGS_FILE_NAME - Represents the default name for log files.\n * @property {string} MAX_DIR_SIZE - Represents the maximum size for the log directory.\n */\nexport enum HMSLogAlarmManager {\n DEFAULT_DIR_SIZE = 'DEFAULT_DIR_SIZE',\n DEFAULT_LOGS_FILE_NAME = 'DEFAULT_LOGS_FILE_NAME',\n MAX_DIR_SIZE = 'MAX_DIR_SIZE',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA","ignoreList":[]}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumeration for defining log levels in the HMS SDK for React Native applications.
|
|
3
|
+
*
|
|
4
|
+
* This enumeration provides a set of predefined log levels that can be used to control the verbosity of logging
|
|
5
|
+
* within the HMS SDK. It allows developers to specify how much detail they want in their logs, which can be
|
|
6
|
+
* helpful for debugging or monitoring the application's behavior.
|
|
7
|
+
*
|
|
8
|
+
* @enum {string}
|
|
9
|
+
* @property {string} VERBOSE - Represents the most verbose log level, including detailed debug information.
|
|
10
|
+
* @property {string} WARNING - Represents a log level for warning messages that might indicate potential issues.
|
|
11
|
+
* @property {string} ERROR - Represents a log level for error messages indicating failures that need attention.
|
|
12
|
+
*/
|
|
1
13
|
export let HMSLogLevel = /*#__PURE__*/function (HMSLogLevel) {
|
|
2
14
|
HMSLogLevel["VERBOSE"] = "VERBOSE";
|
|
3
15
|
HMSLogLevel["WARNING"] = "WARNING";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLogLevel"],"sources":["HMSLogLevel.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSLogLevel"],"sources":["HMSLogLevel.ts"],"sourcesContent":["/**\n * Enumeration for defining log levels in the HMS SDK for React Native applications.\n *\n * This enumeration provides a set of predefined log levels that can be used to control the verbosity of logging\n * within the HMS SDK. It allows developers to specify how much detail they want in their logs, which can be\n * helpful for debugging or monitoring the application's behavior.\n *\n * @enum {string}\n * @property {string} VERBOSE - Represents the most verbose log level, including detailed debug information.\n * @property {string} WARNING - Represents a log level for warning messages that might indicate potential issues.\n * @property {string} ERROR - Represents a log level for error messages indicating failures that need attention.\n */\nexport enum HMSLogLevel {\n VERBOSE = 'VERBOSE',\n WARNING = 'WARNING',\n ERROR = 'ERROR',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
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; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
+
/**
|
|
5
|
+
* Represents the logging settings for the HMS SDK.
|
|
6
|
+
*
|
|
7
|
+
* This class encapsulates the settings related to logging within the HMS SDK, including the log level,
|
|
8
|
+
* whether log storage is enabled, and the maximum directory size for log storage.
|
|
9
|
+
* It is used to configure how logs are handled by the SDK, allowing for customization of log verbosity and storage requirements.
|
|
10
|
+
*
|
|
11
|
+
* @class HMSLogSettings
|
|
12
|
+
* @property {HMSLogLevel} level - The log level setting, determining the verbosity of the logs.
|
|
13
|
+
* @property {boolean} isLogStorageEnabled - Flag indicating whether log storage is enabled. Android only.
|
|
14
|
+
* @property {HMSLogAlarmManager} maxDirSizeInBytes - The maximum size of the log directory in bytes, managed by an instance of HMSLogAlarmManager. Android only.
|
|
15
|
+
*
|
|
16
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/debugging/logger
|
|
17
|
+
*/
|
|
4
18
|
export class HMSLogSettings {
|
|
5
19
|
constructor(params) {
|
|
6
20
|
_defineProperty(this, "level", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLogSettings","constructor","params","_defineProperty","level","isLogStorageEnabled","maxDirSizeInBytes"],"sources":["HMSLogSettings.ts"],"sourcesContent":["import type { HMSLogAlarmManager } from './HMSLogAlarmManager';\nimport type { HMSLogLevel } from './HMSLogLevel';\n\nexport class HMSLogSettings {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n\n constructor(params: {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n }) {\n this.level = params.level;\n this.isLogStorageEnabled = params.isLogStorageEnabled;\n this.maxDirSizeInBytes = params.maxDirSizeInBytes;\n }\n}\n"],"mappings":";;;AAGA,OAAO,MAAMA,cAAc,CAAC;EAK1BC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IACzB,IAAI,CAACC,mBAAmB,GAAGH,MAAM,CAACG,mBAAmB;IACrD,IAAI,CAACC,iBAAiB,GAAGJ,MAAM,CAACI,iBAAiB;EACnD;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["HMSLogSettings","constructor","params","_defineProperty","level","isLogStorageEnabled","maxDirSizeInBytes"],"sources":["HMSLogSettings.ts"],"sourcesContent":["import type { HMSLogAlarmManager } from './HMSLogAlarmManager';\nimport type { HMSLogLevel } from './HMSLogLevel';\n\n/**\n * Represents the logging settings for the HMS SDK.\n *\n * This class encapsulates the settings related to logging within the HMS SDK, including the log level,\n * whether log storage is enabled, and the maximum directory size for log storage.\n * It is used to configure how logs are handled by the SDK, allowing for customization of log verbosity and storage requirements.\n *\n * @class HMSLogSettings\n * @property {HMSLogLevel} level - The log level setting, determining the verbosity of the logs.\n * @property {boolean} isLogStorageEnabled - Flag indicating whether log storage is enabled. Android only.\n * @property {HMSLogAlarmManager} maxDirSizeInBytes - The maximum size of the log directory in bytes, managed by an instance of HMSLogAlarmManager. Android only.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/debugging/logger\n */\nexport class HMSLogSettings {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n\n constructor(params: {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n }) {\n this.level = params.level;\n this.isLogStorageEnabled = params.isLogStorageEnabled;\n this.maxDirSizeInBytes = params.maxDirSizeInBytes;\n }\n}\n"],"mappings":";;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,cAAc,CAAC;EAK1BC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IACzB,IAAI,CAACC,mBAAmB,GAAGH,MAAM,CAACG,mBAAmB;IACrD,IAAI,CAACC,iBAAiB,GAAGJ,MAAM,CAACI,iBAAiB;EACnD;AACF","ignoreList":[]}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
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; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
+
/**
|
|
5
|
+
* Represents the network quality of a connection in the HMS (100ms) system.
|
|
6
|
+
*
|
|
7
|
+
* This class encapsulates the network quality information, specifically focusing on the downlink quality of the connection.
|
|
8
|
+
* The downlink quality is represented as a numerical value, providing a quantifiable measure of the receiving end's network performance.
|
|
9
|
+
*
|
|
10
|
+
* @param {Object} params - The constructor parameters.
|
|
11
|
+
* @param {number} params.downlinkQuality - The downlink quality of the network connection.
|
|
12
|
+
*
|
|
13
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/measure-network-quality-and-performance/network-quality
|
|
14
|
+
*/
|
|
4
15
|
export class HMSNetworkQuality {
|
|
5
16
|
constructor(params) {
|
|
6
17
|
_defineProperty(this, "downlinkQuality", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSNetworkQuality","constructor","params","_defineProperty","downlinkQuality"],"sources":["HMSNetworkQuality.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSNetworkQuality","constructor","params","_defineProperty","downlinkQuality"],"sources":["HMSNetworkQuality.ts"],"sourcesContent":["/**\n * Represents the network quality of a connection in the HMS (100ms) system.\n *\n * This class encapsulates the network quality information, specifically focusing on the downlink quality of the connection.\n * The downlink quality is represented as a numerical value, providing a quantifiable measure of the receiving end's network performance.\n *\n * @param {Object} params - The constructor parameters.\n * @param {number} params.downlinkQuality - The downlink quality of the network connection.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/measure-network-quality-and-performance/network-quality\n */\nexport class HMSNetworkQuality {\n downlinkQuality: number;\n\n constructor(params: { downlinkQuality: number }) {\n this.downlinkQuality = params.downlinkQuality;\n }\n}\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,CAAC;EAG7BC,WAAWA,CAACC,MAAmC,EAAE;IAAAC,eAAA;IAC/C,IAAI,CAACC,eAAe,GAAGF,MAAM,CAACE,eAAe;EAC/C;AACF","ignoreList":[]}
|
|
@@ -6,18 +6,48 @@ import { HMSConstants } from './HMSConstants';
|
|
|
6
6
|
import { logger } from './HMSLogger';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Represents the HMS Noise Cancellation Plugin.
|
|
10
|
+
* This class encapsulates the functionality for managing noise cancellation within a room, including enabling, disabling, and checking the availability and current state of noise cancellation.
|
|
11
|
+
*
|
|
12
|
+
* @property {HMSNoiseCancellationModels} modelName - Specifies the model of noise cancellation to be used.
|
|
13
|
+
* This property determines the algorithm and intensity of noise cancellation, allowing for customization
|
|
14
|
+
* based on the requirements of the room or application.
|
|
15
|
+
*
|
|
16
|
+
* @property {HMSNoiseCancellationInitialState} initialState - Defines the initial state of noise cancellation
|
|
17
|
+
* when the plugin is instantiated. This can be either enabled or disabled, providing control over the
|
|
18
|
+
* noise cancellation feature's activation upon initialization.
|
|
19
|
+
*
|
|
20
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/extend-capabilities/noise-cancellation
|
|
11
21
|
*/
|
|
12
22
|
export class HMSNoiseCancellationPlugin {
|
|
13
23
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
24
|
+
* Constructs a new HMSNoiseCancellationPlugin instance with optional configuration settings.
|
|
25
|
+
* This constructor allows for the initialization of the plugin with specific noise cancellation
|
|
26
|
+
* model and initial state settings, providing flexibility in how noise cancellation is applied
|
|
27
|
+
* within the application.
|
|
28
|
+
*
|
|
29
|
+
* @param {Object} [config] - Optional configuration object for the plugin.
|
|
30
|
+
* @param {HMSNoiseCancellationModels} [config.modelName] - Specifies the noise cancellation model to be used.
|
|
31
|
+
* This determines the algorithm and intensity of noise cancellation. If not provided, a default
|
|
32
|
+
* model is used.
|
|
33
|
+
* @param {HMSNoiseCancellationInitialState} [config.initialState] - Sets the initial state of noise cancellation
|
|
34
|
+
* (enabled or disabled) when the plugin is instantiated. Defaults to disabled if not specified.
|
|
18
35
|
*/
|
|
19
36
|
constructor(config) {
|
|
37
|
+
/**
|
|
38
|
+
* The `modelName` property specifies the model of noise cancellation to be used within the HMS Noise Cancellation Plugin.
|
|
39
|
+
* This property determines the algorithm and intensity of noise cancellation, allowing for customization
|
|
40
|
+
* based on the specific requirements of the room or application. It is of type `HMSNoiseCancellationModels`,
|
|
41
|
+
* an enum that defines the available noise cancellation models.
|
|
42
|
+
*/
|
|
20
43
|
_defineProperty(this, "modelName", void 0);
|
|
44
|
+
/**
|
|
45
|
+
* Defines the initial state of noise cancellation when the plugin is instantiated.
|
|
46
|
+
* This property can be set to either `HMSNoiseCancellationInitialState.Enabled`
|
|
47
|
+
* or `HMSNoiseCancellationInitialState.Disabled`, determining whether noise cancellation should be active
|
|
48
|
+
* immediately upon the plugin's instantiation. This allows for control over the feature's initial activation state,
|
|
49
|
+
* catering to scenarios where noise cancellation needs to be either immediately available or manually activated later.
|
|
50
|
+
*/
|
|
21
51
|
_defineProperty(this, "initialState", void 0);
|
|
22
52
|
const data = {
|
|
23
53
|
modelName: HMSNoiseCancellationModels.SmallFullBand,
|
|
@@ -42,7 +72,7 @@ export class HMSNoiseCancellationPlugin {
|
|
|
42
72
|
};
|
|
43
73
|
logger === null || logger === void 0 || logger.verbose('#Function HMSNoiseCancellationPlugin#isNoiseCancellationAvailable', data);
|
|
44
74
|
try {
|
|
45
|
-
return HMSManagerModule.isNoiseCancellationPluginAvailable(data);
|
|
75
|
+
return await HMSManagerModule.isNoiseCancellationPluginAvailable(data);
|
|
46
76
|
} catch (e) {
|
|
47
77
|
logger === null || logger === void 0 || logger.error('#Error in #Function HMSNoiseCancellationPlugin#isNoiseCancellationAvailable ', e);
|
|
48
78
|
return Promise.reject(e);
|
|
@@ -59,7 +89,7 @@ export class HMSNoiseCancellationPlugin {
|
|
|
59
89
|
};
|
|
60
90
|
logger === null || logger === void 0 || logger.verbose('#Function HMSNoiseCancellationPlugin#enable', data);
|
|
61
91
|
try {
|
|
62
|
-
return HMSManagerModule.enableNoiseCancellationPlugin(data);
|
|
92
|
+
return await HMSManagerModule.enableNoiseCancellationPlugin(data);
|
|
63
93
|
} catch (e) {
|
|
64
94
|
logger === null || logger === void 0 || logger.error('#Error in #Function HMSNoiseCancellationPlugin#enable ', e);
|
|
65
95
|
return Promise.reject(e);
|
|
@@ -76,7 +106,7 @@ export class HMSNoiseCancellationPlugin {
|
|
|
76
106
|
};
|
|
77
107
|
logger === null || logger === void 0 || logger.verbose('#Function HMSNoiseCancellationPlugin#disable', data);
|
|
78
108
|
try {
|
|
79
|
-
return HMSManagerModule.disableNoiseCancellationPlugin(data);
|
|
109
|
+
return await HMSManagerModule.disableNoiseCancellationPlugin(data);
|
|
80
110
|
} catch (e) {
|
|
81
111
|
logger === null || logger === void 0 || logger.error('#Error in #Function HMSNoiseCancellationPlugin#disable ', e);
|
|
82
112
|
return Promise.reject(e);
|
|
@@ -93,7 +123,7 @@ export class HMSNoiseCancellationPlugin {
|
|
|
93
123
|
};
|
|
94
124
|
logger === null || logger === void 0 || logger.verbose('#Function HMSNoiseCancellationPlugin#isEnabled', data);
|
|
95
125
|
try {
|
|
96
|
-
return HMSManagerModule.isNoiseCancellationPluginEnabled(data);
|
|
126
|
+
return await HMSManagerModule.isNoiseCancellationPluginEnabled(data);
|
|
97
127
|
} catch (e) {
|
|
98
128
|
logger === null || logger === void 0 || logger.error('#Error in #Function HMSNoiseCancellationPlugin#isEnabled ', e);
|
|
99
129
|
return Promise.reject(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSManagerModule","HMSConstants","logger","HMSNoiseCancellationPlugin","constructor","config","_defineProperty","data","modelName","HMSNoiseCancellationModels","SmallFullBand","initialState","HMSNoiseCancellationInitialState","Disabled","isNoiseCancellationAvailable","id","DEFAULT_SDK_ID","verbose","isNoiseCancellationPluginAvailable","e","error","Promise","reject","enable","enableNoiseCancellationPlugin","disable","disableNoiseCancellationPlugin","isEnabled","isNoiseCancellationPluginEnabled"],"sources":["HMSNoiseCancellationPlugin.ts"],"sourcesContent":["import HMSManagerModule from '../modules/HMSManagerModule';\nimport { HMSConstants } from './HMSConstants';\nimport { logger } from './HMSLogger';\n\n/**\n *
|
|
1
|
+
{"version":3,"names":["HMSManagerModule","HMSConstants","logger","HMSNoiseCancellationPlugin","constructor","config","_defineProperty","data","modelName","HMSNoiseCancellationModels","SmallFullBand","initialState","HMSNoiseCancellationInitialState","Disabled","isNoiseCancellationAvailable","id","DEFAULT_SDK_ID","verbose","isNoiseCancellationPluginAvailable","e","error","Promise","reject","enable","enableNoiseCancellationPlugin","disable","disableNoiseCancellationPlugin","isEnabled","isNoiseCancellationPluginEnabled"],"sources":["HMSNoiseCancellationPlugin.ts"],"sourcesContent":["import HMSManagerModule from '../modules/HMSManagerModule';\nimport { HMSConstants } from './HMSConstants';\nimport { logger } from './HMSLogger';\n\n/**\n * Represents the HMS Noise Cancellation Plugin.\n * This class encapsulates the functionality for managing noise cancellation within a room, including enabling, disabling, and checking the availability and current state of noise cancellation.\n *\n * @property {HMSNoiseCancellationModels} modelName - Specifies the model of noise cancellation to be used.\n * This property determines the algorithm and intensity of noise cancellation, allowing for customization\n * based on the requirements of the room or application.\n *\n * @property {HMSNoiseCancellationInitialState} initialState - Defines the initial state of noise cancellation\n * when the plugin is instantiated. This can be either enabled or disabled, providing control over the\n * noise cancellation feature's activation upon initialization.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/extend-capabilities/noise-cancellation\n */\nexport class HMSNoiseCancellationPlugin {\n /**\n * The `modelName` property specifies the model of noise cancellation to be used within the HMS Noise Cancellation Plugin.\n * This property determines the algorithm and intensity of noise cancellation, allowing for customization\n * based on the specific requirements of the room or application. It is of type `HMSNoiseCancellationModels`,\n * an enum that defines the available noise cancellation models.\n */\n modelName: HMSNoiseCancellationModels;\n\n /**\n * Defines the initial state of noise cancellation when the plugin is instantiated.\n * This property can be set to either `HMSNoiseCancellationInitialState.Enabled`\n * or `HMSNoiseCancellationInitialState.Disabled`, determining whether noise cancellation should be active\n * immediately upon the plugin's instantiation. This allows for control over the feature's initial activation state,\n * catering to scenarios where noise cancellation needs to be either immediately available or manually activated later.\n */\n initialState: HMSNoiseCancellationInitialState;\n\n /**\n * Constructs a new HMSNoiseCancellationPlugin instance with optional configuration settings.\n * This constructor allows for the initialization of the plugin with specific noise cancellation\n * model and initial state settings, providing flexibility in how noise cancellation is applied\n * within the application.\n *\n * @param {Object} [config] - Optional configuration object for the plugin.\n * @param {HMSNoiseCancellationModels} [config.modelName] - Specifies the noise cancellation model to be used.\n * This determines the algorithm and intensity of noise cancellation. If not provided, a default\n * model is used.\n * @param {HMSNoiseCancellationInitialState} [config.initialState] - Sets the initial state of noise cancellation\n * (enabled or disabled) when the plugin is instantiated. Defaults to disabled if not specified.\n */\n constructor(config?: {\n modelName: HMSNoiseCancellationModels;\n initialState: HMSNoiseCancellationInitialState;\n }) {\n const data = {\n modelName: HMSNoiseCancellationModels.SmallFullBand,\n initialState: HMSNoiseCancellationInitialState.Disabled,\n ...config,\n };\n this.modelName = data.modelName;\n this.initialState = data.initialState;\n }\n\n /**\n * To make noise cancellation work your room needs to have noise cancellation feature enabled.\n *\n * Gets whether noise cancellation is available for your room.\n * @returns {boolean} True if noise cancellation is available, false otherwise.\n *\n * Note: You can call this API to check the state of noise cancellation only after successfully joining the room.\n */\n async isNoiseCancellationAvailable(): Promise<boolean> {\n const data = { id: HMSConstants.DEFAULT_SDK_ID };\n logger?.verbose(\n '#Function HMSNoiseCancellationPlugin#isNoiseCancellationAvailable',\n data\n );\n\n try {\n return await HMSManagerModule.isNoiseCancellationPluginAvailable(data);\n } catch (e) {\n logger?.error(\n '#Error in #Function HMSNoiseCancellationPlugin#isNoiseCancellationAvailable ',\n e\n );\n return Promise.reject(e);\n }\n }\n\n /**\n * Enables noise cancellation.\n * @returns {Promise<boolean>} A promise that resolves to true if noise cancellation is enabled, otherwise, rejected promise is returned\n */\n async enable(): Promise<boolean> {\n const data = { id: HMSConstants.DEFAULT_SDK_ID };\n logger?.verbose('#Function HMSNoiseCancellationPlugin#enable', data);\n\n try {\n return await HMSManagerModule.enableNoiseCancellationPlugin(data);\n } catch (e) {\n logger?.error(\n '#Error in #Function HMSNoiseCancellationPlugin#enable ',\n e\n );\n return Promise.reject(e);\n }\n }\n\n /**\n * Disables noise cancellation.\n * @returns {Promise<boolean>} A promise that resolves to true if noise cancellation is disabled, otherwise, rejected promise is returned\n */\n async disable(): Promise<boolean> {\n const data = { id: HMSConstants.DEFAULT_SDK_ID };\n logger?.verbose('#Function HMSNoiseCancellationPlugin#disable', data);\n\n try {\n return await HMSManagerModule.disableNoiseCancellationPlugin(data);\n } catch (e) {\n logger?.error(\n '#Error in #Function HMSNoiseCancellationPlugin#disable ',\n e\n );\n return Promise.reject(e);\n }\n }\n\n /**\n * Checks if noise cancellation is enabled.\n * @returns {boolean} true if noise cancellation is enabled, false otherwise.\n */\n async isEnabled(): Promise<boolean> {\n const data = { id: HMSConstants.DEFAULT_SDK_ID };\n logger?.verbose('#Function HMSNoiseCancellationPlugin#isEnabled', data);\n\n try {\n return await HMSManagerModule.isNoiseCancellationPluginEnabled(data);\n } catch (e) {\n logger?.error(\n '#Error in #Function HMSNoiseCancellationPlugin#isEnabled ',\n e\n );\n return Promise.reject(e);\n }\n }\n}\n\n/**\n * Enum for HMS Noise Cancellation Models.\n * @enum {String}\n */\nexport enum HMSNoiseCancellationModels {\n SmallFullBand = 'SMALL_FULL_BAND',\n}\n\n/**\n * Enum for HMS Noise Cancellation Initial State.\n * @enum {String}\n */\nexport enum HMSNoiseCancellationInitialState {\n Enabled = 'ENABLED',\n Disabled = 'DISABLED',\n}\n"],"mappings":";;;AAAA,OAAOA,gBAAgB,MAAM,6BAA6B;AAC1D,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,MAAM,QAAQ,aAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,0BAA0B,CAAC;EAkBtC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,WAAWA,CAACC,MAGX,EAAE;IAjCH;AACF;AACA;AACA;AACA;AACA;IALEC,eAAA;IAQA;AACF;AACA;AACA;AACA;AACA;AACA;IANEA,eAAA;IA0BE,MAAMC,IAAI,GAAG;MACXC,SAAS,EAAEC,0BAA0B,CAACC,aAAa;MACnDC,YAAY,EAAEC,gCAAgC,CAACC,QAAQ;MACvD,GAAGR;IACL,CAAC;IACD,IAAI,CAACG,SAAS,GAAGD,IAAI,CAACC,SAAS;IAC/B,IAAI,CAACG,YAAY,GAAGJ,IAAI,CAACI,YAAY;EACvC;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMG,4BAA4BA,CAAA,EAAqB;IACrD,MAAMP,IAAI,GAAG;MAAEQ,EAAE,EAAEd,YAAY,CAACe;IAAe,CAAC;IAChDd,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEe,OAAO,CACb,mEAAmE,EACnEV,IACF,CAAC;IAED,IAAI;MACF,OAAO,MAAMP,gBAAgB,CAACkB,kCAAkC,CAACX,IAAI,CAAC;IACxE,CAAC,CAAC,OAAOY,CAAC,EAAE;MACVjB,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEkB,KAAK,CACX,8EAA8E,EAC9ED,CACF,CAAC;MACD,OAAOE,OAAO,CAACC,MAAM,CAACH,CAAC,CAAC;IAC1B;EACF;;EAEA;AACF;AACA;AACA;EACE,MAAMI,MAAMA,CAAA,EAAqB;IAC/B,MAAMhB,IAAI,GAAG;MAAEQ,EAAE,EAAEd,YAAY,CAACe;IAAe,CAAC;IAChDd,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEe,OAAO,CAAC,6CAA6C,EAAEV,IAAI,CAAC;IAEpE,IAAI;MACF,OAAO,MAAMP,gBAAgB,CAACwB,6BAA6B,CAACjB,IAAI,CAAC;IACnE,CAAC,CAAC,OAAOY,CAAC,EAAE;MACVjB,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEkB,KAAK,CACX,wDAAwD,EACxDD,CACF,CAAC;MACD,OAAOE,OAAO,CAACC,MAAM,CAACH,CAAC,CAAC;IAC1B;EACF;;EAEA;AACF;AACA;AACA;EACE,MAAMM,OAAOA,CAAA,EAAqB;IAChC,MAAMlB,IAAI,GAAG;MAAEQ,EAAE,EAAEd,YAAY,CAACe;IAAe,CAAC;IAChDd,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEe,OAAO,CAAC,8CAA8C,EAAEV,IAAI,CAAC;IAErE,IAAI;MACF,OAAO,MAAMP,gBAAgB,CAAC0B,8BAA8B,CAACnB,IAAI,CAAC;IACpE,CAAC,CAAC,OAAOY,CAAC,EAAE;MACVjB,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEkB,KAAK,CACX,yDAAyD,EACzDD,CACF,CAAC;MACD,OAAOE,OAAO,CAACC,MAAM,CAACH,CAAC,CAAC;IAC1B;EACF;;EAEA;AACF;AACA;AACA;EACE,MAAMQ,SAASA,CAAA,EAAqB;IAClC,MAAMpB,IAAI,GAAG;MAAEQ,EAAE,EAAEd,YAAY,CAACe;IAAe,CAAC;IAChDd,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEe,OAAO,CAAC,gDAAgD,EAAEV,IAAI,CAAC;IAEvE,IAAI;MACF,OAAO,MAAMP,gBAAgB,CAAC4B,gCAAgC,CAACrB,IAAI,CAAC;IACtE,CAAC,CAAC,OAAOY,CAAC,EAAE;MACVjB,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEkB,KAAK,CACX,2DAA2D,EAC3DD,CACF,CAAC;MACD,OAAOE,OAAO,CAACC,MAAM,CAACH,CAAC,CAAC;IAC1B;EACF;AACF;;AAEA;AACA;AACA;AACA;AACA,WAAYV,0BAA0B,0BAA1BA,0BAA0B;EAA1BA,0BAA0B;EAAA,OAA1BA,0BAA0B;AAAA;;AAItC;AACA;AACA;AACA;AACA,WAAYG,gCAAgC,0BAAhCA,gCAAgC;EAAhCA,gCAAgC;EAAhCA,gCAAgC;EAAA,OAAhCA,gCAAgC;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["HMSPIPConfig.ts"],"sourcesContent":["import type { HMSVideoViewMode } from './HMSVideoViewMode';\n\nexport interface HMSPIPConfig {\n
|
|
1
|
+
{"version":3,"names":[],"sources":["HMSPIPConfig.ts"],"sourcesContent":["import type { HMSVideoViewMode } from './HMSVideoViewMode';\n\n/**\n * Configuration options for Picture-in-Picture (PIP) mode in a React Native application using HMS.\n *\n * This interface defines the settings available for customizing the PIP window that can appear when the app enters background mode.\n * It includes options for automatically entering PIP mode, adjusting the aspect ratio and scale type of the PIP window, and toggling\n * the visibility of various control buttons specific to Android or iOS platforms.\n *\n * @interface HMSPIPConfig\n * @property {boolean} [autoEnterPipMode] - Determines whether the app should automatically enter PIP mode when it goes into the background.\n * @property {[number, number]} [aspectRatio] - Sets the aspect ratio of the PIP window. Defaults are platform-specific: [16, 9] for Android and [9, 16] for iOS.\n * @property {HMSVideoViewMode} [scaleType] - Defines the scaling behavior of the video within the PIP window. Options are `ASPECT_FILL` (default), `ASPECT_FIT`, and `ASPECT_BALANCED`. Applies only to iOS.\n * @property {boolean} [useActiveSpeaker] - Whether the PIP window should automatically show the active speaker. Default is true. Applies only to iOS.\n * @property {boolean} [endButton] - Controls the visibility of the end call button within the PIP window. Default is true. Applies only to Android.\n * @property {boolean} [audioButton] - Controls the visibility of the audio mute/unmute button within the PIP window. Default is true. Applies only to Android.\n * @property {boolean} [videoButton] - Controls the visibility of the video mute/unmute button within the PIP window. Default is true. Applies only to Android.\n */\nexport interface HMSPIPConfig {\n /**\n * Whether to automatically enter PIP mode when app enters background.\n */\n autoEnterPipMode?: boolean;\n\n /**\n * The aspect ratio of the PIP window. Default is [16, 9] on Android & [9, 16] on iOS. Other values can be [3, 4], [1, 1], [4, 3], [16, 9].\n */\n aspectRatio?: [number, number];\n\n /**\n * The scale type of the PIP window. Default is ASPECT_FILL. Other values can be ASPECT_FIT, ASPECT_BALANCED. iOS Only.\n */\n scaleType?: HMSVideoViewMode;\n\n /**\n * Whether to show the Active Speaker in the PIP window. Default is true. iOS only.\n */\n useActiveSpeaker?: boolean;\n\n /**\n * Whether to show the end button in the PIP window. Default is true. Android only.\n */\n endButton?: boolean;\n\n /**\n * Whether to show the audio mute/unmute button in the PIP window. Default is true. Android only.\n */\n audioButton?: boolean;\n\n /**\n * Whether to show the video mute/unmute button in the PIP window. Default is true. Android only.\n */\n videoButton?: boolean;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum for HMS Picture-in-Picture (PIP) Listener Actions.
|
|
3
|
+
*
|
|
4
|
+
* This enum defines the types of actions/events related to the Picture-in-Picture (PIP) mode that can be listened to
|
|
5
|
+
* within the HMS SDK. These actions allow the application to respond to changes in PIP mode or when the room is left
|
|
6
|
+
* while in PIP mode.
|
|
7
|
+
*
|
|
8
|
+
* @enum {string}
|
|
9
|
+
*/
|
|
1
10
|
export let HMSPIPListenerActions = /*#__PURE__*/function (HMSPIPListenerActions) {
|
|
2
11
|
HMSPIPListenerActions["ON_PIP_MODE_CHANGED"] = "ON_PIP_MODE_CHANGED";
|
|
3
12
|
HMSPIPListenerActions["ON_PIP_ROOM_LEAVE"] = "ON_PIP_ROOM_LEAVE";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSPIPListenerActions"],"sources":["HMSPIPListenerActions.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSPIPListenerActions"],"sources":["HMSPIPListenerActions.ts"],"sourcesContent":["/**\n * Enum for HMS Picture-in-Picture (PIP) Listener Actions.\n *\n * This enum defines the types of actions/events related to the Picture-in-Picture (PIP) mode that can be listened to\n * within the HMS SDK. These actions allow the application to respond to changes in PIP mode or when the room is left\n * while in PIP mode.\n *\n * @enum {string}\n */\nexport enum HMSPIPListenerActions {\n /**\n * Action triggered when the Picture-in-Picture mode changes.\n * This can be used to handle UI changes or other logic when entering or exiting PIP mode.\n */\n ON_PIP_MODE_CHANGED = 'ON_PIP_MODE_CHANGED',\n\n /**\n * Action triggered when the room is left while in Picture-in-Picture mode. Android only.\n * This can be used to clean up resources or update the UI accordingly.\n */\n ON_PIP_ROOM_LEAVE = 'ON_PIP_ROOM_LEAVE',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA","ignoreList":[]}
|