@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
  [![quality](https://img.shields.io/npms-io/quality-score/@100mslive/react-native-hms)](https://www.npmjs.com/package/@100mslive/react-native-hms)
9
9
  [![collaborators](https://img.shields.io/npm/collaborators/@100mslive/react-native-hms)](https://www.npmjs.com/package/@100mslive/react-native-hms)
10
10
  [![Documentation](https://img.shields.io/badge/Read-Documentation-blue)](https://docs.100ms.live/react-native/v2/foundation/basics)
11
- [![Discord](https://img.shields.io/discord/843749923060711464?label=Join%20on%20Discord)](https://100ms.live/discord)
12
11
  [![Firebase](https://img.shields.io/badge/Download%20Android-Firebase-green)](https://appdistribution.firebase.dev/i/7b7ab3b30e627c35)
13
12
  [![TestFlight](https://img.shields.io/badge/Download%20iOS-TestFlight-blue)](https://testflight.apple.com/join/v4bSIPad)
14
13
  [![Activity](https://img.shields.io/github/commit-activity/m/100mslive/react-native-hms.svg)](https://github.com/100mslive/react-native-hms/projects/1)
@@ -49,6 +49,7 @@ def safeExtGet(prop, fallback) {
49
49
  }
50
50
 
51
51
  android {
52
+ namespace 'com.reactnativehmssdk'
52
53
  compileSdkVersion safeExtGet('Hmssdk_compileSdkVersion', 31)
53
54
  defaultConfig {
54
55
  minSdkVersion safeExtGet('Hmssdk_minSdkVersion', 21)
@@ -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.10.9",
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",
package/sdk-versions.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "ios": "1.15.0",
2
+ "ios": "1.16.5",
3
3
  "iOSBroadcastExtension": "0.0.9",
4
4
  "iOSHMSHLSPlayer": "0.0.2",
5
5
  "iOSNoiseCancellationModels": "1.0.0",
6
- "android": "2.9.64"
6
+ "android": "2.9.69"
7
7
  }