@byteplus/react-native-live-pull 1.2.0-rc.0 → 1.2.0-rc.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.
@@ -158,12 +158,18 @@ NSString *const kObserverKey = @"pip-observer";
158
158
  }
159
159
 
160
160
  - (void)updatePipController:(nullable void (^)(void))completion {
161
+ VeLivePlayerVideoStreamInfo *info = [self.player getVideoStreamInfo];
162
+
163
+ if (!CGSizeEqualToSize(CGSizeZero, CGSizeMake(info.width, info.height))) {
164
+ [self.pipController setVideoSize:CGSizeMake(info.width, info.height) completion:nil];
165
+ }
166
+
161
167
  [self.pipController setContentView:self.contentView
162
168
  completion:^{
163
169
  if (completion) {
164
170
  completion();
165
171
  }
166
- }];
172
+ }];
167
173
  }
168
174
 
169
175
  // Notify all observers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/react-native-live-pull",
3
- "version": "1.2.0-rc.0",
3
+ "version": "1.2.0-rc.1",
4
4
  "peerDependencies": {
5
5
  "react": "*",
6
6
  "react-native": "*"