@stream-io/video-react-native-sdk 1.0.0-rc2.0 → 1.0.1

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +14 -83
  2. package/dist/commonjs/components/Call/CallContent/CallContent.js +10 -5
  3. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
  4. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +109 -0
  5. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -0
  6. package/dist/commonjs/components/Call/CallContent/index.js +11 -0
  7. package/dist/commonjs/components/Call/CallContent/index.js.map +1 -1
  8. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +4 -3
  9. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  10. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +4 -3
  11. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  12. package/dist/commonjs/hooks/useAutoEnterPiPEffect.js +3 -3
  13. package/dist/commonjs/hooks/useAutoEnterPiPEffect.js.map +1 -1
  14. package/dist/commonjs/hooks/useIsInPiPMode.js +4 -4
  15. package/dist/commonjs/hooks/useIsInPiPMode.js.map +1 -1
  16. package/dist/commonjs/providers/StreamCall.js +5 -2
  17. package/dist/commonjs/providers/StreamCall.js.map +1 -1
  18. package/dist/commonjs/utils/internal/shouldDisableIOSLocalVideoOnBackground.js +10 -0
  19. package/dist/commonjs/utils/internal/shouldDisableIOSLocalVideoOnBackground.js.map +1 -0
  20. package/dist/commonjs/version.js +1 -1
  21. package/dist/commonjs/version.js.map +1 -1
  22. package/dist/module/components/Call/CallContent/CallContent.js +10 -5
  23. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  24. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +101 -0
  25. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -0
  26. package/dist/module/components/Call/CallContent/index.js +1 -0
  27. package/dist/module/components/Call/CallContent/index.js.map +1 -1
  28. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +4 -3
  29. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  30. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +4 -3
  31. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  32. package/dist/module/hooks/useAutoEnterPiPEffect.js +3 -3
  33. package/dist/module/hooks/useAutoEnterPiPEffect.js.map +1 -1
  34. package/dist/module/hooks/useIsInPiPMode.js +4 -4
  35. package/dist/module/hooks/useIsInPiPMode.js.map +1 -1
  36. package/dist/module/providers/StreamCall.js +5 -2
  37. package/dist/module/providers/StreamCall.js.map +1 -1
  38. package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js +4 -0
  39. package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js.map +1 -0
  40. package/dist/module/version.js +1 -1
  41. package/dist/module/version.js.map +1 -1
  42. package/dist/typescript/components/Call/CallContent/CallContent.d.ts +6 -1
  43. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
  44. package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts +7 -0
  45. package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -0
  46. package/dist/typescript/components/Call/CallContent/index.d.ts +1 -0
  47. package/dist/typescript/components/Call/CallContent/index.d.ts.map +1 -1
  48. package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts +2 -2
  49. package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
  50. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +2 -2
  51. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
  52. package/dist/typescript/hooks/useAutoEnterPiPEffect.d.ts +1 -1
  53. package/dist/typescript/hooks/useAutoEnterPiPEffect.d.ts.map +1 -1
  54. package/dist/typescript/hooks/useIsInPiPMode.d.ts +1 -1
  55. package/dist/typescript/hooks/useIsInPiPMode.d.ts.map +1 -1
  56. package/dist/typescript/providers/StreamCall.d.ts.map +1 -1
  57. package/dist/typescript/utils/internal/shouldDisableIOSLocalVideoOnBackground.d.ts +4 -0
  58. package/dist/typescript/utils/internal/shouldDisableIOSLocalVideoOnBackground.d.ts.map +1 -0
  59. package/dist/typescript/version.d.ts +1 -1
  60. package/dist/typescript/version.d.ts.map +1 -1
  61. package/ios/PictureInPicture/SampleBufferVideoCallView.swift +52 -0
  62. package/ios/PictureInPicture/StreamAVPictureInPictureVideoCallViewController.swift +83 -0
  63. package/ios/PictureInPicture/StreamBufferTransformer.swift +96 -0
  64. package/ios/PictureInPicture/StreamPictureInPictureController.swift +185 -0
  65. package/ios/PictureInPicture/StreamPictureInPictureTrackStateAdapter.swift +68 -0
  66. package/ios/PictureInPicture/StreamPictureInPictureVideoRenderer.swift +250 -0
  67. package/ios/PictureInPicture/StreamPixelBufferPool.swift +118 -0
  68. package/ios/PictureInPicture/StreamPixelBufferRepository.swift +98 -0
  69. package/ios/PictureInPicture/StreamRTCYUVBuffer.swift +249 -0
  70. package/ios/PictureInPicture/StreamYUVToARGBConversion.swift +128 -0
  71. package/ios/PictureInPicture/WindowSizePolicy/StreamPictureInPictureAdaptiveWindowSizePolicy.swift +25 -0
  72. package/ios/PictureInPicture/WindowSizePolicy/StreamPictureInPictureFixedWindowSizePolicy.swift +29 -0
  73. package/ios/PictureInPicture/WindowSizePolicy/StreamPictureInPictureWindowSizePolicy.swift +14 -0
  74. package/ios/PictureInPicture/YpCbCrPixelRange+Default.swift +32 -0
  75. package/ios/RTCViewPip.swift +69 -0
  76. package/ios/RTCViewPipManager.mm +16 -0
  77. package/ios/RTCViewPipManager.swift +34 -0
  78. package/ios/StreamVideoReactNative-Bridging-Header.h +11 -0
  79. package/package.json +4 -4
  80. package/src/components/Call/CallContent/CallContent.tsx +58 -40
  81. package/src/components/Call/CallContent/RTCViewPipIOS.tsx +138 -0
  82. package/src/components/Call/CallContent/index.ts +1 -0
  83. package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +7 -3
  84. package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +7 -3
  85. package/src/hooks/useAutoEnterPiPEffect.tsx +7 -3
  86. package/src/hooks/useIsInPiPMode.tsx +6 -4
  87. package/src/providers/StreamCall.tsx +5 -2
  88. package/src/utils/internal/shouldDisableIOSLocalVideoOnBackground.ts +3 -0
  89. package/src/version.ts +1 -1
  90. package/stream-video-react-native.podspec +27 -4
  91. package/ios/StreamVideoReactNative.xcodeproj/project.pbxproj +0 -274
  92. package/ios/StreamVideoReactNative.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  93. package/ios/StreamVideoReactNative.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
@@ -1,274 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXCopyFilesBuildPhase section */
10
- 58B511D91A9E6C8500147676 /* CopyFiles */ = {
11
- isa = PBXCopyFilesBuildPhase;
12
- buildActionMask = 2147483647;
13
- dstPath = "include/$(PRODUCT_NAME)";
14
- dstSubfolderSpec = 16;
15
- files = (
16
- );
17
- runOnlyForDeploymentPostprocessing = 0;
18
- };
19
- /* End PBXCopyFilesBuildPhase section */
20
-
21
- /* Begin PBXFileReference section */
22
- 134814201AA4EA6300B7C361 /* libStreamVideoReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libStreamVideoReactNative.a; sourceTree = BUILT_PRODUCTS_DIR; };
23
- B3E7B5891CC2AC0600A0062D /* StreamVideoReactNative.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = StreamVideoReactNative.m; sourceTree = "<group>"; };
24
- D7A6507C28C3C54500AC4DB2 /* StreamVideoReactNative.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StreamVideoReactNative.h; sourceTree = "<group>"; };
25
- F4FF95D5245B92E700C19C63 /* StreamVideoReactNative-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "StreamVideoReactNative-Bridging-Header.h"; sourceTree = "<group>"; };
26
- /* End PBXFileReference section */
27
-
28
- /* Begin PBXFrameworksBuildPhase section */
29
- 58B511D81A9E6C8500147676 /* Frameworks */ = {
30
- isa = PBXFrameworksBuildPhase;
31
- buildActionMask = 2147483647;
32
- files = (
33
- );
34
- runOnlyForDeploymentPostprocessing = 0;
35
- };
36
- /* End PBXFrameworksBuildPhase section */
37
-
38
- /* Begin PBXGroup section */
39
- 134814211AA4EA7D00B7C361 /* Products */ = {
40
- isa = PBXGroup;
41
- children = (
42
- 134814201AA4EA6300B7C361 /* libStreamVideoReactNative.a */,
43
- );
44
- name = Products;
45
- sourceTree = "<group>";
46
- };
47
- 58B511D21A9E6C8500147676 = {
48
- isa = PBXGroup;
49
- children = (
50
- B3E7B5891CC2AC0600A0062D /* StreamVideoReactNative.m */,
51
- D7A6507C28C3C54500AC4DB2 /* StreamVideoReactNative.h */,
52
- F4FF95D5245B92E700C19C63 /* StreamVideoReactNative-Bridging-Header.h */,
53
- 134814211AA4EA7D00B7C361 /* Products */,
54
- );
55
- sourceTree = "<group>";
56
- };
57
- /* End PBXGroup section */
58
-
59
- /* Begin PBXNativeTarget section */
60
- 58B511DA1A9E6C8500147676 /* StreamVideoReactNative */ = {
61
- isa = PBXNativeTarget;
62
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "StreamVideoReactNative" */;
63
- buildPhases = (
64
- 58B511D71A9E6C8500147676 /* Sources */,
65
- 58B511D81A9E6C8500147676 /* Frameworks */,
66
- 58B511D91A9E6C8500147676 /* CopyFiles */,
67
- );
68
- buildRules = (
69
- );
70
- dependencies = (
71
- );
72
- name = StreamVideoReactNative;
73
- productName = RCTDataManager;
74
- productReference = 134814201AA4EA6300B7C361 /* libStreamVideoReactNative.a */;
75
- productType = "com.apple.product-type.library.static";
76
- };
77
- /* End PBXNativeTarget section */
78
-
79
- /* Begin PBXProject section */
80
- 58B511D31A9E6C8500147676 /* Project object */ = {
81
- isa = PBXProject;
82
- attributes = {
83
- LastUpgradeCheck = 0920;
84
- ORGANIZATIONNAME = Facebook;
85
- TargetAttributes = {
86
- 58B511DA1A9E6C8500147676 = {
87
- CreatedOnToolsVersion = 6.1.1;
88
- };
89
- };
90
- };
91
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "StreamVideoReactNative" */;
92
- compatibilityVersion = "Xcode 3.2";
93
- developmentRegion = English;
94
- hasScannedForEncodings = 0;
95
- knownRegions = (
96
- English,
97
- en,
98
- );
99
- mainGroup = 58B511D21A9E6C8500147676;
100
- productRefGroup = 58B511D21A9E6C8500147676;
101
- projectDirPath = "";
102
- projectRoot = "";
103
- targets = (
104
- 58B511DA1A9E6C8500147676 /* StreamVideoReactNative */,
105
- );
106
- };
107
- /* End PBXProject section */
108
-
109
- /* Begin PBXSourcesBuildPhase section */
110
- 58B511D71A9E6C8500147676 /* Sources */ = {
111
- isa = PBXSourcesBuildPhase;
112
- buildActionMask = 2147483647;
113
- files = (
114
- );
115
- runOnlyForDeploymentPostprocessing = 0;
116
- };
117
- /* End PBXSourcesBuildPhase section */
118
-
119
- /* Begin XCBuildConfiguration section */
120
- 58B511ED1A9E6C8500147676 /* Debug */ = {
121
- isa = XCBuildConfiguration;
122
- buildSettings = {
123
- ALWAYS_SEARCH_USER_PATHS = NO;
124
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
125
- CLANG_CXX_LIBRARY = "libc++";
126
- CLANG_ENABLE_MODULES = YES;
127
- CLANG_ENABLE_OBJC_ARC = YES;
128
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
129
- CLANG_WARN_BOOL_CONVERSION = YES;
130
- CLANG_WARN_COMMA = YES;
131
- CLANG_WARN_CONSTANT_CONVERSION = YES;
132
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
133
- CLANG_WARN_EMPTY_BODY = YES;
134
- CLANG_WARN_ENUM_CONVERSION = YES;
135
- CLANG_WARN_INFINITE_RECURSION = YES;
136
- CLANG_WARN_INT_CONVERSION = YES;
137
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
138
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
139
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
140
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
141
- CLANG_WARN_STRICT_PROTOTYPES = YES;
142
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
143
- CLANG_WARN_UNREACHABLE_CODE = YES;
144
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
145
- COPY_PHASE_STRIP = NO;
146
- ENABLE_STRICT_OBJC_MSGSEND = YES;
147
- ENABLE_TESTABILITY = YES;
148
- GCC_C_LANGUAGE_STANDARD = gnu99;
149
- GCC_DYNAMIC_NO_PIC = NO;
150
- GCC_NO_COMMON_BLOCKS = YES;
151
- GCC_OPTIMIZATION_LEVEL = 0;
152
- GCC_PREPROCESSOR_DEFINITIONS = (
153
- "DEBUG=1",
154
- "$(inherited)",
155
- );
156
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
157
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
158
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
159
- GCC_WARN_UNDECLARED_SELECTOR = YES;
160
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
161
- GCC_WARN_UNUSED_FUNCTION = YES;
162
- GCC_WARN_UNUSED_VARIABLE = YES;
163
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
164
- MTL_ENABLE_DEBUG_INFO = YES;
165
- ONLY_ACTIVE_ARCH = YES;
166
- SDKROOT = iphoneos;
167
- };
168
- name = Debug;
169
- };
170
- 58B511EE1A9E6C8500147676 /* Release */ = {
171
- isa = XCBuildConfiguration;
172
- buildSettings = {
173
- ALWAYS_SEARCH_USER_PATHS = NO;
174
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
175
- CLANG_CXX_LIBRARY = "libc++";
176
- CLANG_ENABLE_MODULES = YES;
177
- CLANG_ENABLE_OBJC_ARC = YES;
178
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
179
- CLANG_WARN_BOOL_CONVERSION = YES;
180
- CLANG_WARN_COMMA = YES;
181
- CLANG_WARN_CONSTANT_CONVERSION = YES;
182
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
183
- CLANG_WARN_EMPTY_BODY = YES;
184
- CLANG_WARN_ENUM_CONVERSION = YES;
185
- CLANG_WARN_INFINITE_RECURSION = YES;
186
- CLANG_WARN_INT_CONVERSION = YES;
187
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
188
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
189
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
190
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
191
- CLANG_WARN_STRICT_PROTOTYPES = YES;
192
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
193
- CLANG_WARN_UNREACHABLE_CODE = YES;
194
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
195
- COPY_PHASE_STRIP = YES;
196
- ENABLE_NS_ASSERTIONS = NO;
197
- ENABLE_STRICT_OBJC_MSGSEND = YES;
198
- GCC_C_LANGUAGE_STANDARD = gnu99;
199
- GCC_NO_COMMON_BLOCKS = YES;
200
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
201
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
202
- GCC_WARN_UNDECLARED_SELECTOR = YES;
203
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
204
- GCC_WARN_UNUSED_FUNCTION = YES;
205
- GCC_WARN_UNUSED_VARIABLE = YES;
206
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
207
- MTL_ENABLE_DEBUG_INFO = NO;
208
- SDKROOT = iphoneos;
209
- VALIDATE_PRODUCT = YES;
210
- };
211
- name = Release;
212
- };
213
- 58B511F01A9E6C8500147676 /* Debug */ = {
214
- isa = XCBuildConfiguration;
215
- buildSettings = {
216
- HEADER_SEARCH_PATHS = (
217
- "$(inherited)",
218
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
219
- "$(SRCROOT)/../../../React/**",
220
- "$(SRCROOT)/../../react-native/React/**",
221
- );
222
- LIBRARY_SEARCH_PATHS = "$(inherited)";
223
- OTHER_LDFLAGS = "-ObjC";
224
- PRODUCT_NAME = StreamVideoReactNative;
225
- SKIP_INSTALL = YES;
226
- SWIFT_OBJC_BRIDGING_HEADER = "StreamVideoReactNative-Bridging-Header.h";
227
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
228
- SWIFT_VERSION = 5.0;
229
- };
230
- name = Debug;
231
- };
232
- 58B511F11A9E6C8500147676 /* Release */ = {
233
- isa = XCBuildConfiguration;
234
- buildSettings = {
235
- HEADER_SEARCH_PATHS = (
236
- "$(inherited)",
237
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
238
- "$(SRCROOT)/../../../React/**",
239
- "$(SRCROOT)/../../react-native/React/**",
240
- );
241
- LIBRARY_SEARCH_PATHS = "$(inherited)";
242
- OTHER_LDFLAGS = "-ObjC";
243
- PRODUCT_NAME = StreamVideoReactNative;
244
- SKIP_INSTALL = YES;
245
- SWIFT_OBJC_BRIDGING_HEADER = "StreamVideoReactNative-Bridging-Header.h";
246
- SWIFT_VERSION = 5.0;
247
- };
248
- name = Release;
249
- };
250
- /* End XCBuildConfiguration section */
251
-
252
- /* Begin XCConfigurationList section */
253
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "StreamVideoReactNative" */ = {
254
- isa = XCConfigurationList;
255
- buildConfigurations = (
256
- 58B511ED1A9E6C8500147676 /* Debug */,
257
- 58B511EE1A9E6C8500147676 /* Release */,
258
- );
259
- defaultConfigurationIsVisible = 0;
260
- defaultConfigurationName = Release;
261
- };
262
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "StreamVideoReactNative" */ = {
263
- isa = XCConfigurationList;
264
- buildConfigurations = (
265
- 58B511F01A9E6C8500147676 /* Debug */,
266
- 58B511F11A9E6C8500147676 /* Release */,
267
- );
268
- defaultConfigurationIsVisible = 0;
269
- defaultConfigurationName = Release;
270
- };
271
- /* End XCConfigurationList section */
272
- };
273
- rootObject = 58B511D31A9E6C8500147676 /* Project object */;
274
- }
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "self:">
6
- </FileRef>
7
- </Workspace>
@@ -1,8 +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>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>