@100mslive/react-native-hms 1.9.7 → 1.9.8
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 +1 -8
- package/ios/HMSHelper.swift +2 -2
- package/ios/HMSRNSDK.swift +12 -0
- package/package.json +1 -1
- package/sdk-versions.json +2 -2
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/jatinnagar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Hmssdk.xcodeproj/xcuserdata/jatinnagar.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
package/android/local.properties
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
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
|
|
1
|
+
sdk.dir=/Users/yogesh/Library/Android/sdk
|
package/ios/HMSHelper.swift
CHANGED
|
@@ -39,8 +39,8 @@ class HMSHelper: NSObject {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
iterator = hms.getPeerListIterator(options: HMSPeerListIteratorOptions(filterByPeerIds: [peerID], limit: 1))
|
|
42
|
-
iterator?.next { peers,
|
|
43
|
-
|
|
42
|
+
iterator?.next { peers, _ in
|
|
43
|
+
|
|
44
44
|
guard let nonnilPeers = peers, let firstPeer = nonnilPeers.first else {
|
|
45
45
|
completion(nil)
|
|
46
46
|
return
|
package/ios/HMSRNSDK.swift
CHANGED
|
@@ -45,11 +45,23 @@ class HMSRNSDK: HMSUpdateListener, HMSPreviewListener {
|
|
|
45
45
|
let audioSettings = HMSHelper.getLocalAudioSettings(trackSettings?.value(forKey: "audio") as? NSDictionary, sdk, self?.delegate, id)
|
|
46
46
|
sdk.trackSettings = HMSTrackSettings(videoSettings: videoSettings, audioSettings: audioSettings)
|
|
47
47
|
}
|
|
48
|
+
|
|
49
|
+
NotificationCenter.default.addObserver(forName: UIApplication.willTerminateNotification,
|
|
50
|
+
object: nil,
|
|
51
|
+
queue: .main) { [weak self] _ in
|
|
52
|
+
if self?.hms?.room != nil {
|
|
53
|
+
self?.hms?.leave()
|
|
54
|
+
}
|
|
55
|
+
}
|
|
48
56
|
}
|
|
49
57
|
self.delegate = manager
|
|
50
58
|
self.id = id
|
|
51
59
|
}
|
|
52
60
|
|
|
61
|
+
deinit {
|
|
62
|
+
NotificationCenter.default.removeObserver(self)
|
|
63
|
+
}
|
|
64
|
+
|
|
53
65
|
// MARK: - Prebuilt
|
|
54
66
|
|
|
55
67
|
func getRoomLayout(_ data: NSDictionary, _ resolve: RCTPromiseResolveBlock?, _ reject: RCTPromiseRejectBlock?) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/react-native-hms",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.8",
|
|
4
4
|
"description": "Integrate Real Time Audio and Video conferencing, Interactive Live Streaming, and Chat in your apps with 100ms React Native SDK. With support for HLS and RTMP Live Streaming and Recording, Picture-in-Picture (PiP), one-to-one Video Call Modes, Audio Rooms, Video Player and much more, add immersive real-time communications to your apps.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
package/sdk-versions.json
CHANGED
|
Binary file
|
package/ios/Hmssdk.xcodeproj/xcuserdata/jatinnagar.xcuserdatad/xcschemes/xcschememanagement.plist
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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>
|