@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.
|
@@ -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.
|
|
4
|
-
"description": "
|
|
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",
|