@100mslive/react-native-hms 1.9.5 → 1.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/local.properties +8 -1
- package/android/src/main/java/com/reactnativehmssdk/HMSAudioshareActivity.kt +0 -2
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +57 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSHLSPlayer.kt +2 -1
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +1 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +33 -7
- package/android/src/main/java/com/reactnativehmssdk/HmsScreenshareActivity.kt +0 -2
- package/ios/HMSDecoder.swift +2 -0
- package/ios/HMSHLSPlayerManager.swift +1 -1
- package/ios/HMSHelper.swift +4 -2
- package/ios/HMSRNSDK.swift +38 -19
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/jatinnagar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Hmssdk.xcodeproj/xcuserdata/jatinnagar.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/lib/commonjs/classes/HMSAudioMixerSource.js +2 -2
- package/lib/commonjs/classes/HMSAudioNode.js +2 -2
- package/lib/commonjs/classes/HMSAudioNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioSettings.js +2 -2
- package/lib/commonjs/classes/HMSAudioTrackSettings.js +2 -2
- package/lib/commonjs/classes/HMSBrowserRecordingState.js +2 -2
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js +2 -2
- package/lib/commonjs/classes/HMSConfig.js +2 -2
- package/lib/commonjs/classes/HMSEncoder.js +2 -2
- package/lib/commonjs/classes/HMSEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSException.js +2 -2
- package/lib/commonjs/classes/HMSHLSConfig.js +2 -2
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js +2 -2
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js +2 -2
- package/lib/commonjs/classes/HMSHLSRecordingState.js +2 -2
- package/lib/commonjs/classes/HMSHLSStreamingState.js +2 -2
- package/lib/commonjs/classes/HMSHLSVariant.js +2 -2
- package/lib/commonjs/classes/HMSLocalAudioStats.js +2 -2
- package/lib/commonjs/classes/HMSLocalAudioTrack.js +2 -2
- package/lib/commonjs/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalPeer.js +2 -2
- package/lib/commonjs/classes/HMSLocalPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoStats.js +2 -2
- package/lib/commonjs/classes/HMSLocalVideoTrack.js +2 -2
- package/lib/commonjs/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js +2 -2
- package/lib/commonjs/classes/HMSLogger.js +2 -2
- package/lib/commonjs/classes/HMSLogger.js.map +1 -1
- package/lib/commonjs/classes/HMSMessage.js +2 -2
- package/lib/commonjs/classes/HMSMessageRecipient.js +2 -2
- package/lib/commonjs/classes/HMSNativeEventEmitter.js +2 -2
- package/lib/commonjs/classes/HMSNativeEventEmitter.js.map +1 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js +2 -2
- package/lib/commonjs/classes/HMSPIPConfig.js +0 -2
- package/lib/commonjs/classes/HMSPIPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSPeer.js +2 -2
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerListIterator.js +2 -2
- package/lib/commonjs/classes/HMSPeerListIterator.js.map +1 -1
- package/lib/commonjs/classes/HMSPeersCache.js +2 -2
- package/lib/commonjs/classes/HMSPeersCache.js.map +1 -1
- package/lib/commonjs/classes/HMSPermissions.js +2 -2
- package/lib/commonjs/classes/HMSPublishSettings.js +2 -2
- package/lib/commonjs/classes/HMSQualityLimitationReasons.js +2 -2
- package/lib/commonjs/classes/HMSRTCStats.js +2 -2
- package/lib/commonjs/classes/HMSRTCStatsReport.js +2 -2
- package/lib/commonjs/classes/HMSRTMPConfig.js +2 -2
- package/lib/commonjs/classes/HMSRemoteAudioStats.js +2 -2
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js +2 -2
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRemotePeer.js +2 -2
- package/lib/commonjs/classes/HMSRemotePeer.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoStats.js +2 -2
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js +2 -2
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +2 -2
- package/lib/commonjs/classes/HMSRoleChangeRequest.js +2 -2
- package/lib/commonjs/classes/HMSRoom.js +9 -2
- package/lib/commonjs/classes/HMSRoom.js.map +1 -1
- package/lib/commonjs/classes/HMSRoomCache.js +2 -2
- package/lib/commonjs/classes/HMSRoomCache.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js +2 -2
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js +2 -2
- package/lib/commonjs/classes/HMSSDK.js +2 -2
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js +2 -2
- package/lib/commonjs/classes/HMSSessionStore.js +3 -3
- package/lib/commonjs/classes/HMSSessionStore.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerDefinition.js +2 -2
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js +2 -2
- package/lib/commonjs/classes/HMSSimulcastLayerSettingsPolicy.js +2 -2
- package/lib/commonjs/classes/HMSSimulcastSettings.js +2 -2
- package/lib/commonjs/classes/HMSSimulcastSettingsPolicy.js +2 -2
- package/lib/commonjs/classes/HMSSpeaker.js +2 -2
- package/lib/commonjs/classes/HMSSubscribeDegradationPolicy.js +2 -2
- package/lib/commonjs/classes/HMSSubscribeSettings.js +2 -2
- package/lib/commonjs/classes/HMSTrack.js +2 -2
- package/lib/commonjs/classes/HMSTrackSettings.js +2 -2
- package/lib/commonjs/classes/HMSVideoResolution.js +2 -2
- package/lib/commonjs/classes/HMSVideoSettings.js +2 -2
- package/lib/commonjs/classes/HMSVideoTrack.js +2 -2
- package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +2 -2
- package/lib/commonjs/components/HMSHLSPlayer/HMSHLSPlayer.js.map +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/hooks.js.map +1 -1
- package/lib/commonjs/hooks/hmsviews.js.map +1 -1
- package/lib/commonjs/index.js +23 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stores/hms-store.js.map +1 -1
- package/lib/commonjs/stores/types.js +0 -9
- package/lib/commonjs/stores/types.js.map +1 -1
- package/lib/commonjs/utils/emitter/EventEmitter.js +2 -2
- package/lib/commonjs/utils/emitter/EventEmitter.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EmitterSubscription.js +2 -2
- package/lib/commonjs/utils/emitter/_EmitterSubscription.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EventSubscription.js +2 -2
- package/lib/commonjs/utils/emitter/_EventSubscriptionVendor.js +2 -2
- package/lib/commonjs/utils/keyboard.js +2 -6
- package/lib/commonjs/utils/keyboard.js.map +1 -1
- package/lib/module/classes/HMSAudioMixerSource.js +2 -2
- package/lib/module/classes/HMSAudioNode.js +2 -2
- package/lib/module/classes/HMSAudioSettings.js +2 -2
- package/lib/module/classes/HMSAudioTrackSettings.js +2 -2
- package/lib/module/classes/HMSBrowserRecordingState.js +2 -2
- package/lib/module/classes/HMSChangeTrackStateRequest.js +2 -2
- package/lib/module/classes/HMSConfig.js +2 -2
- package/lib/module/classes/HMSEncoder.js +2 -2
- package/lib/module/classes/HMSException.js +2 -2
- package/lib/module/classes/HMSHLSConfig.js +2 -2
- package/lib/module/classes/HMSHLSMeetingURLVariant.js +2 -2
- package/lib/module/classes/HMSHLSRecordingConfig.js +2 -2
- package/lib/module/classes/HMSHLSRecordingState.js +2 -2
- package/lib/module/classes/HMSHLSStreamingState.js +2 -2
- package/lib/module/classes/HMSHLSVariant.js +2 -2
- package/lib/module/classes/HMSLocalAudioStats.js +2 -2
- package/lib/module/classes/HMSLocalAudioTrack.js +2 -2
- package/lib/module/classes/HMSLocalPeer.js +2 -2
- package/lib/module/classes/HMSLocalVideoStats.js +2 -2
- package/lib/module/classes/HMSLocalVideoTrack.js +2 -2
- package/lib/module/classes/HMSLogSettings.js +2 -2
- package/lib/module/classes/HMSLogger.js +2 -2
- package/lib/module/classes/HMSMessage.js +2 -2
- package/lib/module/classes/HMSMessageRecipient.js +2 -2
- package/lib/module/classes/HMSNativeEventEmitter.js +2 -2
- package/lib/module/classes/HMSNetworkQuality.js +2 -2
- package/lib/module/classes/HMSPIPConfig.js +1 -1
- package/lib/module/classes/HMSPIPConfig.js.map +1 -1
- package/lib/module/classes/HMSPeer.js +2 -2
- package/lib/module/classes/HMSPeerListIterator.js +2 -2
- package/lib/module/classes/HMSPeersCache.js +2 -2
- package/lib/module/classes/HMSPermissions.js +2 -2
- package/lib/module/classes/HMSPublishSettings.js +2 -2
- package/lib/module/classes/HMSQualityLimitationReasons.js +2 -2
- package/lib/module/classes/HMSRTCStats.js +2 -2
- package/lib/module/classes/HMSRTCStatsReport.js +2 -2
- package/lib/module/classes/HMSRTMPConfig.js +2 -2
- package/lib/module/classes/HMSRemoteAudioStats.js +2 -2
- package/lib/module/classes/HMSRemoteAudioTrack.js +2 -2
- package/lib/module/classes/HMSRemotePeer.js +2 -2
- package/lib/module/classes/HMSRemoteVideoStats.js +2 -2
- package/lib/module/classes/HMSRemoteVideoTrack.js +2 -2
- package/lib/module/classes/HMSRole.js +2 -2
- package/lib/module/classes/HMSRoleChangeRequest.js +2 -2
- package/lib/module/classes/HMSRoom.js +9 -2
- package/lib/module/classes/HMSRoom.js.map +1 -1
- package/lib/module/classes/HMSRoomCache.js +2 -2
- package/lib/module/classes/HMSRtmpStreamingState.js +2 -2
- package/lib/module/classes/HMSRtmpVideoResolution.js +2 -2
- package/lib/module/classes/HMSSDK.js +2 -2
- package/lib/module/classes/HMSServerRecordingState.js +2 -2
- package/lib/module/classes/HMSSessionStore.js +3 -3
- package/lib/module/classes/HMSSessionStore.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerDefinition.js +2 -2
- package/lib/module/classes/HMSSimulcastLayerSettings.js +2 -2
- package/lib/module/classes/HMSSimulcastLayerSettingsPolicy.js +2 -2
- package/lib/module/classes/HMSSimulcastSettings.js +2 -2
- package/lib/module/classes/HMSSimulcastSettingsPolicy.js +2 -2
- package/lib/module/classes/HMSSpeaker.js +2 -2
- package/lib/module/classes/HMSSubscribeDegradationPolicy.js +2 -2
- package/lib/module/classes/HMSSubscribeSettings.js +2 -2
- package/lib/module/classes/HMSTrack.js +2 -2
- package/lib/module/classes/HMSTrackSettings.js +2 -2
- package/lib/module/classes/HMSVideoResolution.js +2 -2
- package/lib/module/classes/HMSVideoSettings.js +2 -2
- package/lib/module/classes/HMSVideoTrack.js +2 -2
- package/lib/module/classes/HMSVideoTrackSettings.js +2 -2
- package/lib/module/components/HMSHLSPlayer/HMSHLSPlayer.js.map +1 -1
- package/lib/module/components/HMSHLSPlayer/hooks.js.map +1 -1
- package/lib/module/hooks/hmsviews.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stores/hms-store.js.map +1 -1
- package/lib/module/stores/types.js +0 -9
- package/lib/module/stores/types.js.map +1 -1
- package/lib/module/utils/emitter/EventEmitter.js +2 -2
- package/lib/module/utils/emitter/_EmitterSubscription.js +2 -2
- package/lib/module/utils/emitter/_EventSubscription.js +2 -2
- package/lib/module/utils/emitter/_EventSubscriptionVendor.js +2 -2
- package/lib/module/utils/keyboard.js +2 -5
- package/lib/module/utils/keyboard.js.map +1 -1
- package/lib/typescript/classes/HMSRoom.d.ts +1 -0
- package/lib/typescript/classes/HMSSessionStore.d.ts +10 -8
- package/lib/typescript/index.d.ts +3 -1
- package/package.json +1 -1
- package/sdk-versions.json +2 -2
- package/src/classes/HMSPIPConfig.ts +1 -1
- package/src/classes/HMSRoom.ts +13 -0
- package/src/classes/HMSSessionStore.ts +19 -18
- package/src/components/HMSHLSPlayer/HMSHLSPlayer.tsx +3 -2
- package/src/components/HMSHLSPlayer/hooks.ts +1 -2
- package/src/hooks/hmsviews.ts +3 -1
- package/src/index.ts +6 -1
- package/src/stores/hms-store.ts +1 -1
- package/src/stores/types.ts +4 -2
- package/src/utils/keyboard.ts +5 -5
package/android/local.properties
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
+
# as it contains information specific to your local configuration.
|
|
3
|
+
#
|
|
4
|
+
# Location of the SDK. This is only used by Gradle.
|
|
5
|
+
# For customization when using a Version Control System, please read the
|
|
6
|
+
# header note.
|
|
7
|
+
#Mon Nov 14 20:51:00 IST 2022
|
|
8
|
+
sdk.dir=/Users/jatinnagar/Library/Android/sdk
|
|
@@ -23,7 +23,6 @@ class HMSAudioshareActivity : ComponentActivity() {
|
|
|
23
23
|
override fun onError(error: HMSException) {
|
|
24
24
|
finish()
|
|
25
25
|
HMSManager.hmsCollection[id]?.audioshareCallback?.reject(error)
|
|
26
|
-
HMSManager.hmsCollection[id]?.emitHMSError(error)
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
override fun onSuccess() {
|
|
@@ -48,7 +47,6 @@ class HMSAudioshareActivity : ComponentActivity() {
|
|
|
48
47
|
"RESULT_CANCELED",
|
|
49
48
|
)
|
|
50
49
|
HMSManager.hmsCollection[id]?.audioshareCallback?.reject(error)
|
|
51
|
-
HMSManager.hmsCollection[id]?.emitHMSError(error)
|
|
52
50
|
finish()
|
|
53
51
|
}
|
|
54
52
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
package com.reactnativehmssdk
|
|
2
2
|
|
|
3
3
|
import com.facebook.react.bridge.*
|
|
4
|
+
import com.google.gson.JsonArray
|
|
5
|
+
import com.google.gson.JsonObject
|
|
4
6
|
import live.hms.video.connection.degredation.QualityLimitationReasons
|
|
5
7
|
import live.hms.video.connection.stats.*
|
|
6
8
|
import live.hms.video.connection.stats.quality.HMSNetworkQuality
|
|
@@ -144,6 +146,8 @@ object HMSDecoder {
|
|
|
144
146
|
room.putInt("peerCount", it)
|
|
145
147
|
}
|
|
146
148
|
}
|
|
149
|
+
|
|
150
|
+
room.putBoolean("isLargeRoom", hmsRoom.isLargeRoom)
|
|
147
151
|
}
|
|
148
152
|
return room
|
|
149
153
|
}
|
|
@@ -975,4 +979,57 @@ object HMSDecoder {
|
|
|
975
979
|
hmsSimulcastLayerDefinitions.forEach { simulcastLayerDefinitions.pushMap(getSimulcastLayerDefinition(it)) }
|
|
976
980
|
return simulcastLayerDefinitions
|
|
977
981
|
}
|
|
982
|
+
|
|
983
|
+
fun getReadableArrayFromJsonArray(jsonArray: JsonArray): WritableArray {
|
|
984
|
+
val writableArray: WritableArray = Arguments.createArray()
|
|
985
|
+
|
|
986
|
+
jsonArray.forEach { ele ->
|
|
987
|
+
if (ele.isJsonPrimitive) {
|
|
988
|
+
val primitiveEle = ele.asJsonPrimitive
|
|
989
|
+
if (primitiveEle.isNumber) {
|
|
990
|
+
writableArray.pushDouble(primitiveEle.asDouble)
|
|
991
|
+
} else if (primitiveEle.isBoolean) {
|
|
992
|
+
writableArray.pushBoolean(primitiveEle.asBoolean)
|
|
993
|
+
} else {
|
|
994
|
+
writableArray.pushString(primitiveEle.asString)
|
|
995
|
+
}
|
|
996
|
+
} else if (ele.isJsonArray) {
|
|
997
|
+
writableArray.pushArray(getReadableArrayFromJsonArray(ele.asJsonArray))
|
|
998
|
+
} else if (ele.isJsonObject) {
|
|
999
|
+
writableArray.pushMap(getReadableMapFromJsonObject(ele.asJsonObject))
|
|
1000
|
+
} else {
|
|
1001
|
+
writableArray.pushNull()
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
return writableArray
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
fun getReadableMapFromJsonObject(jsonObject: JsonObject): WritableMap {
|
|
1009
|
+
val writableMap: WritableMap = Arguments.createMap()
|
|
1010
|
+
|
|
1011
|
+
jsonObject.keySet().forEach { key ->
|
|
1012
|
+
val jsonEle = jsonObject.get(key)
|
|
1013
|
+
|
|
1014
|
+
if (jsonEle.isJsonObject) {
|
|
1015
|
+
writableMap.putMap(key, getReadableMapFromJsonObject(jsonEle.asJsonObject))
|
|
1016
|
+
} else if (jsonEle.isJsonArray) {
|
|
1017
|
+
writableMap.putArray(key, getReadableArrayFromJsonArray(jsonEle.asJsonArray))
|
|
1018
|
+
} else if (jsonEle.isJsonPrimitive) {
|
|
1019
|
+
val primitiveEle = jsonEle.asJsonPrimitive
|
|
1020
|
+
|
|
1021
|
+
if (primitiveEle.isBoolean) {
|
|
1022
|
+
writableMap.putBoolean(key, primitiveEle.asBoolean)
|
|
1023
|
+
} else if (primitiveEle.isNumber) {
|
|
1024
|
+
writableMap.putDouble(key, primitiveEle.asDouble)
|
|
1025
|
+
} else {
|
|
1026
|
+
writableMap.putString(key, primitiveEle.asString)
|
|
1027
|
+
}
|
|
1028
|
+
} else {
|
|
1029
|
+
writableMap.putNull(key)
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
return writableMap
|
|
1034
|
+
}
|
|
978
1035
|
}
|
|
@@ -18,6 +18,7 @@ import live.hms.stats.PlayerStatsListener
|
|
|
18
18
|
import live.hms.stats.model.PlayerStatsModel
|
|
19
19
|
import live.hms.video.error.HMSException
|
|
20
20
|
import live.hms.video.sdk.HMSSDK
|
|
21
|
+
import live.hms.video.sdk.models.enums.HMSStreamingState
|
|
21
22
|
import java.util.concurrent.TimeUnit
|
|
22
23
|
|
|
23
24
|
@SuppressLint("ViewConstructor")
|
|
@@ -178,7 +179,7 @@ class HMSHLSPlayer(context: ReactContext) : FrameLayout(context) {
|
|
|
178
179
|
|
|
179
180
|
val defaultURL: String? =
|
|
180
181
|
hlsStreamingState?.let {
|
|
181
|
-
if (it.
|
|
182
|
+
if (it.state == HMSStreamingState.STARTED) {
|
|
182
183
|
it.variants?.get(0)?.hlsStreamUrl
|
|
183
184
|
} else {
|
|
184
185
|
null
|
|
@@ -1900,6 +1900,9 @@ class HMSRNSDK(
|
|
|
1900
1900
|
"hlsRecordingState" -> {
|
|
1901
1901
|
data.putMap("hlsRecordingState", HMSDecoder.getHMSHlsRecordingState(hmsRoom.hlsRecordingState))
|
|
1902
1902
|
}
|
|
1903
|
+
"isLargeRoom" -> {
|
|
1904
|
+
data.putBoolean("isLargeRoom", hmsRoom.isLargeRoom)
|
|
1905
|
+
}
|
|
1903
1906
|
}
|
|
1904
1907
|
|
|
1905
1908
|
return data
|
|
@@ -2170,7 +2173,6 @@ class HMSRNSDK(
|
|
|
2170
2173
|
val requiredKeys = HMSHelper.getUnavailableRequiredKey(data, arrayOf(Pair("key", "String")))
|
|
2171
2174
|
if (requiredKeys === null) {
|
|
2172
2175
|
val key = data.getString("key")!!
|
|
2173
|
-
val value = data.getString("value")
|
|
2174
2176
|
|
|
2175
2177
|
sessionStore.let {
|
|
2176
2178
|
if (it === null) {
|
|
@@ -2179,18 +2181,27 @@ class HMSRNSDK(
|
|
|
2179
2181
|
return
|
|
2180
2182
|
}
|
|
2181
2183
|
|
|
2184
|
+
val value: Any? =
|
|
2185
|
+
when (data.getType("value")) {
|
|
2186
|
+
ReadableType.Boolean -> data.getBoolean("value")
|
|
2187
|
+
ReadableType.Map -> data.getMap("value")?.toHashMap()
|
|
2188
|
+
ReadableType.String -> data.getString("value")
|
|
2189
|
+
ReadableType.Array -> data.getArray("value")?.toArrayList()
|
|
2190
|
+
ReadableType.Number -> data.getDouble("value")
|
|
2191
|
+
ReadableType.Null -> null
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2182
2194
|
it.set(
|
|
2183
2195
|
value, // data/value
|
|
2184
2196
|
key, // key
|
|
2185
2197
|
object : HMSActionResultListener {
|
|
2186
2198
|
override fun onError(error: HMSException) {
|
|
2187
|
-
promise?.reject(error.code.toString(), error.
|
|
2199
|
+
promise?.reject(error.code.toString(), error.description)
|
|
2188
2200
|
}
|
|
2189
2201
|
|
|
2190
2202
|
override fun onSuccess() {
|
|
2191
2203
|
val result: WritableMap = Arguments.createMap()
|
|
2192
2204
|
result.putBoolean("success", true)
|
|
2193
|
-
result.putString("finalValue", value)
|
|
2194
2205
|
promise?.resolve(result)
|
|
2195
2206
|
}
|
|
2196
2207
|
},
|
|
@@ -2230,9 +2241,13 @@ class HMSRNSDK(
|
|
|
2230
2241
|
promise?.resolve(null)
|
|
2231
2242
|
} else {
|
|
2232
2243
|
if (sm.isJsonPrimitive) {
|
|
2233
|
-
promise?.resolve(sm
|
|
2244
|
+
promise?.resolve(sm)
|
|
2234
2245
|
} else if (sm.isJsonNull) {
|
|
2235
2246
|
promise?.resolve(null)
|
|
2247
|
+
} else if (sm.isJsonArray) {
|
|
2248
|
+
promise?.resolve(HMSDecoder.getReadableArrayFromJsonArray(sm.asJsonArray))
|
|
2249
|
+
} else if (sm.isJsonObject) {
|
|
2250
|
+
promise?.resolve(HMSDecoder.getReadableMapFromJsonObject(sm.asJsonObject))
|
|
2236
2251
|
} else {
|
|
2237
2252
|
promise?.resolve(sm.toString())
|
|
2238
2253
|
}
|
|
@@ -2276,12 +2291,23 @@ class HMSRNSDK(
|
|
|
2276
2291
|
|
|
2277
2292
|
value.let { sm ->
|
|
2278
2293
|
if (sm == null) {
|
|
2279
|
-
map.
|
|
2294
|
+
map.putNull("value")
|
|
2280
2295
|
} else {
|
|
2281
2296
|
if (sm.isJsonPrimitive) {
|
|
2282
|
-
|
|
2297
|
+
val primitive = sm.asJsonPrimitive
|
|
2298
|
+
if (primitive.isBoolean) {
|
|
2299
|
+
map.putBoolean("value", primitive.asBoolean)
|
|
2300
|
+
} else if (primitive.isNumber) {
|
|
2301
|
+
map.putDouble("value", primitive.asDouble)
|
|
2302
|
+
} else {
|
|
2303
|
+
map.putString("value", sm.asString)
|
|
2304
|
+
}
|
|
2283
2305
|
} else if (sm.isJsonNull) {
|
|
2284
|
-
map.
|
|
2306
|
+
map.putNull("value")
|
|
2307
|
+
} else if (sm.isJsonArray) {
|
|
2308
|
+
map.putArray("value", HMSDecoder.getReadableArrayFromJsonArray(sm.asJsonArray))
|
|
2309
|
+
} else if (sm.isJsonObject) {
|
|
2310
|
+
map.putMap("value", HMSDecoder.getReadableMapFromJsonObject(sm.asJsonObject))
|
|
2285
2311
|
} else {
|
|
2286
2312
|
map.putString("value", sm.toString())
|
|
2287
2313
|
}
|
|
@@ -22,7 +22,6 @@ class HmsScreenshareActivity : ComponentActivity() {
|
|
|
22
22
|
override fun onError(error: HMSException) {
|
|
23
23
|
finish()
|
|
24
24
|
HMSManager.hmsCollection[id]?.screenshareCallback?.reject(error)
|
|
25
|
-
HMSManager.hmsCollection[id]?.emitHMSError(error)
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
override fun onSuccess() {
|
|
@@ -45,7 +44,6 @@ class HmsScreenshareActivity : ComponentActivity() {
|
|
|
45
44
|
"RESULT_CANCELED",
|
|
46
45
|
)
|
|
47
46
|
HMSManager.hmsCollection[id]?.screenshareCallback?.reject(error)
|
|
48
|
-
HMSManager.hmsCollection[id]?.emitHMSError(error)
|
|
49
47
|
finish()
|
|
50
48
|
}
|
|
51
49
|
}
|
package/ios/HMSDecoder.swift
CHANGED
|
@@ -149,7 +149,7 @@ class HMSHLSPlayer: UIView {
|
|
|
149
149
|
return
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
if hlsStreamingState.
|
|
152
|
+
if hlsStreamingState.state == .started && !hlsStreamingState.variants.isEmpty {
|
|
153
153
|
hmsHLSPlayer.play(hlsStreamingState.variants[0].meetingURL)
|
|
154
154
|
}
|
|
155
155
|
}
|
package/ios/HMSHelper.swift
CHANGED
|
@@ -3,6 +3,7 @@ import Foundation
|
|
|
3
3
|
|
|
4
4
|
class HMSHelper: NSObject {
|
|
5
5
|
static var audioMixerSourceHashMap: [String: HMSAudioNode]?
|
|
6
|
+
static var iterator: HMSPeerListIterator?
|
|
6
7
|
|
|
7
8
|
static func getUnavailableRequiredKey(_ data: NSDictionary, _ requiredKeys: [String]) -> String {
|
|
8
9
|
for (key) in requiredKeys {
|
|
@@ -37,8 +38,9 @@ class HMSHelper: NSObject {
|
|
|
37
38
|
return
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
iterator = hms.getPeerListIterator(options: HMSPeerListIteratorOptions(filterByPeerIds: [peerID], limit: 1))
|
|
42
|
+
iterator?.next { peers, error in
|
|
43
|
+
|
|
42
44
|
guard let nonnilPeers = peers, let firstPeer = nonnilPeers.first else {
|
|
43
45
|
completion(nil)
|
|
44
46
|
return
|
package/ios/HMSRNSDK.swift
CHANGED
|
@@ -1281,6 +1281,9 @@ class HMSRNSDK: HMSUpdateListener, HMSPreviewListener {
|
|
|
1281
1281
|
case "hlsRecordingState":
|
|
1282
1282
|
return ["hlsRecordingState": HMSDecoder.getHlsRecordingState(hmsRoom.hlsRecordingState)]
|
|
1283
1283
|
|
|
1284
|
+
case "isLargeRoom":
|
|
1285
|
+
return ["isLargeRoom": hmsRoom.isLarge]
|
|
1286
|
+
|
|
1284
1287
|
default:
|
|
1285
1288
|
return nil
|
|
1286
1289
|
}
|
|
@@ -1742,15 +1745,22 @@ class HMSRNSDK: HMSUpdateListener, HMSPreviewListener {
|
|
|
1742
1745
|
return
|
|
1743
1746
|
}
|
|
1744
1747
|
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
resolve?(stringValue)
|
|
1748
|
-
} else {
|
|
1749
|
-
let errorMessage = "\(#function) Session Store value for the key: \(key) is not of String Type. Value: \(value)"
|
|
1750
|
-
reject?("6004", errorMessage, nil)
|
|
1751
|
-
}
|
|
1752
|
-
} else {
|
|
1748
|
+
switch value {
|
|
1749
|
+
case .none:
|
|
1753
1750
|
resolve?(nil)
|
|
1751
|
+
case let boolValue as Bool:
|
|
1752
|
+
resolve?(boolValue)
|
|
1753
|
+
case let doubleValue as Double:
|
|
1754
|
+
resolve?(doubleValue)
|
|
1755
|
+
case let dictValue as [AnyHashable: Any]:
|
|
1756
|
+
resolve?(dictValue)
|
|
1757
|
+
case let arrayValue as [Any]:
|
|
1758
|
+
resolve?(arrayValue)
|
|
1759
|
+
case let stringValue as String:
|
|
1760
|
+
resolve?(stringValue)
|
|
1761
|
+
default:
|
|
1762
|
+
let errorMessage = "\(#function) Session Store value for the key: \(key) is not of valid type. Value: \(String(describing: value))"
|
|
1763
|
+
reject?("6004", errorMessage, nil)
|
|
1754
1764
|
}
|
|
1755
1765
|
}
|
|
1756
1766
|
}
|
|
@@ -1777,14 +1787,13 @@ class HMSRNSDK: HMSUpdateListener, HMSPreviewListener {
|
|
|
1777
1787
|
|
|
1778
1788
|
let valueToBeSet = data["value"] as Any
|
|
1779
1789
|
|
|
1780
|
-
store.set(valueToBeSet, forKey: key) {
|
|
1790
|
+
store.set(valueToBeSet, forKey: key) { _, error in
|
|
1781
1791
|
|
|
1782
1792
|
if let error = error {
|
|
1783
|
-
|
|
1784
|
-
reject?("6004", errorMessage, nil)
|
|
1793
|
+
reject?("6004", error.localizedDescription, nil)
|
|
1785
1794
|
return
|
|
1786
1795
|
}
|
|
1787
|
-
resolve?(["success": true
|
|
1796
|
+
resolve?(["success": true])
|
|
1788
1797
|
}
|
|
1789
1798
|
}
|
|
1790
1799
|
}
|
|
@@ -1829,13 +1838,23 @@ class HMSRNSDK: HMSUpdateListener, HMSPreviewListener {
|
|
|
1829
1838
|
|
|
1830
1839
|
data["key"] = key
|
|
1831
1840
|
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1841
|
+
switch value {
|
|
1842
|
+
case .none:
|
|
1843
|
+
data["value"] = nil
|
|
1844
|
+
case let boolValue as Bool:
|
|
1845
|
+
data["value"] = boolValue
|
|
1846
|
+
case let doubleValue as Double:
|
|
1847
|
+
data["value"] = doubleValue
|
|
1848
|
+
case let dictValue as [AnyHashable: Any]:
|
|
1849
|
+
data["value"] = dictValue
|
|
1850
|
+
case let arrayValue as [Any]:
|
|
1851
|
+
data["value"] = arrayValue
|
|
1852
|
+
case let stringValue as String:
|
|
1853
|
+
data["value"] = stringValue
|
|
1854
|
+
default:
|
|
1855
|
+
let message = "\(#function) Session Store value for the key: \(key) is not of valid type. Value: \(String(describing: value))"
|
|
1856
|
+
print(message)
|
|
1857
|
+
data["value"] = nil
|
|
1839
1858
|
}
|
|
1840
1859
|
self?.delegate?.emitEvent(HMSConstants.ON_SESSION_STORE_CHANGED, data)
|
|
1841
1860
|
|
|
Binary file
|
package/ios/Hmssdk.xcodeproj/xcuserdata/jatinnagar.xcuserdatad/xcschemes/xcschememanagement.plist
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Hmssdk.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSAudioMixerSource = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
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
10
|
class HMSAudioMixerSource {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "node", void 0);
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.HMSAudioNode = void 0;
|
|
7
7
|
var _HMSConstants = require("./HMSConstants");
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
function _toPropertyKey(
|
|
10
|
-
function _toPrimitive(
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
10
|
+
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); }
|
|
11
11
|
class HMSAudioNode {
|
|
12
12
|
constructor(name) {
|
|
13
13
|
_defineProperty(this, "name", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_HMSConstants","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","
|
|
1
|
+
{"version":3,"names":["_HMSConstants","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","HMSAudioNode","constructor","name","HMSConstants","DEFAULT_SDK_ID","toString","exports"],"sources":["HMSAudioNode.ts"],"sourcesContent":["import { HMSConstants } from './HMSConstants';\n\nexport class HMSAudioNode {\n name: string;\n sdkId: string = HMSConstants.DEFAULT_SDK_ID;\n\n constructor(name: string) {\n this.name = name;\n }\n\n toString(): string {\n return this.name;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA8C,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAEvC,MAAMW,YAAY,CAAC;EAIxBC,WAAWA,CAACC,IAAY,EAAE;IAAAvB,eAAA;IAAAA,eAAA,gBAFVwB,0BAAY,CAACC,cAAc;IAGzC,IAAI,CAACF,IAAI,GAAGA,IAAI;EAClB;EAEAG,QAAQA,CAAA,EAAW;IACjB,OAAO,IAAI,CAACH,IAAI;EAClB;AACF;AAACI,OAAA,CAAAN,YAAA,GAAAA,YAAA"}
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSAudioSettings = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
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
10
|
class HMSAudioSettings {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "bitRate", void 0);
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSAudioTrackSettings = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
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
10
|
/**
|
|
11
11
|
* Customize local peer's Audio track settings before Joining the Room.
|
|
12
12
|
*
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSBrowserRecordingState = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
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
10
|
class HMSBrowserRecordingState {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "initialising", void 0);
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSChangeTrackStateRequest = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
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
10
|
class HMSChangeTrackStateRequest {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "requestedBy", void 0);
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSConfig = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
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
10
|
class HMSConfig {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "username", void 0);
|
|
@@ -47,8 +47,8 @@ var _HMSQualityLimitationReasons = require("./HMSQualityLimitationReasons");
|
|
|
47
47
|
var _HMSTrackType = require("./HMSTrackType");
|
|
48
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
49
49
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
50
|
-
function _toPropertyKey(
|
|
51
|
-
function _toPrimitive(
|
|
50
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
51
|
+
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); }
|
|
52
52
|
class HMSEncoder {
|
|
53
53
|
static clearData() {
|
|
54
54
|
this.data = {
|