@100mslive/react-native-hms 1.10.9 → 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
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
[](https://www.npmjs.com/package/@100mslive/react-native-hms)
|
|
9
9
|
[](https://www.npmjs.com/package/@100mslive/react-native-hms)
|
|
10
10
|
[](https://docs.100ms.live/react-native/v2/foundation/basics)
|
|
11
|
-
[](https://100ms.live/discord)
|
|
12
11
|
[](https://appdistribution.firebase.dev/i/7b7ab3b30e627c35)
|
|
13
12
|
[](https://testflight.apple.com/join/v4bSIPad)
|
|
14
13
|
[](https://github.com/100mslive/react-native-hms/projects/1)
|
package/android/build.gradle
CHANGED
|
@@ -76,7 +76,13 @@ class HMSManager(
|
|
|
76
76
|
) {
|
|
77
77
|
reactAppContext?.currentActivity?.window?.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
|
|
78
78
|
emitPipEvent(true)
|
|
79
|
-
reactAppContext?.currentActivity?.enterPictureInPictureMode(pipParams)
|
|
79
|
+
val success = reactAppContext?.currentActivity?.enterPictureInPictureMode(pipParams)
|
|
80
|
+
success?.let {
|
|
81
|
+
if (!it) {
|
|
82
|
+
reactAppContext?.currentActivity?.window?.clearFlags(WindowManager.LayoutParams.FLAG_SECURE)
|
|
83
|
+
emitPipEvent(false)
|
|
84
|
+
}
|
|
85
|
+
}
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
88
|
}
|
|
@@ -1093,6 +1099,7 @@ class HMSManager(
|
|
|
1093
1099
|
activity.setPictureInPictureParams(pipParams)
|
|
1094
1100
|
return true
|
|
1095
1101
|
} catch (e: Exception) {
|
|
1102
|
+
Log.e("HMSManager", "Error setting PictureInPictureParams: ${e.message}")
|
|
1096
1103
|
return false
|
|
1097
1104
|
}
|
|
1098
1105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/react-native-hms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
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",
|