@apirtc/expo-apirtc-options-plugin 0.0.8 → 0.0.9

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.
@@ -11,4 +11,5 @@
11
11
 
12
12
  @interface RCT_EXTERN_MODULE(ReactNativeApiRTC_RPK, RCTEventEmitter)
13
13
  RCT_EXTERN_METHOD(sendBroadcastNeedToBeStopped)
14
+ RCT_EXTERN_METHOD(showVideoEffectsUI)
14
15
  @end
@@ -9,6 +9,7 @@ import Foundation
9
9
  import ReplayKit
10
10
  import Photos
11
11
  import UIKit
12
+ import AVFoundation
12
13
  import React
13
14
 
14
15
  @objc(ReactNativeApiRTC_RPK)
@@ -63,6 +64,15 @@ class ReactNativeApiRTC_RPK: RCTEventEmitter {
63
64
  status = "Empty"
64
65
  }
65
66
 
67
+ @objc
68
+ func showVideoEffectsUI() {
69
+ if #available(iOS 15.4, *) {
70
+ DispatchQueue.main.async {
71
+ AVCaptureDevice.showSystemUserInterface(.videoEffects)
72
+ }
73
+ }
74
+ }
75
+
66
76
  //This function is used to send a notification to the extension to stop the broadcast
67
77
  @objc
68
78
  func sendBroadcastNeedToBeStopped() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apirtc/expo-apirtc-options-plugin",
3
- "version": "0.0.8",
4
- "description": "Plugin Expo pour ajouter les features apiRTC dans une application React Native",
3
+ "version": "0.0.9",
4
+ "description": "Expo Plugin to add apiRTC features in a React Native application",
5
5
  "main": "index.js",
6
6
  "keywords": [
7
7
  "expo",