Skip to content

Commit decdfec

Browse files
committed
fix demo present
1 parent bd472f4 commit decdfec

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Example/VPInterfaceControllerDemo/VPLiveSelectStatusViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ - (IBAction)presetButtonDidClicked:(UIButton *)sender {
103103
- (IBAction)portraitButtonDidClicked:(UIButton *)sender {
104104
[PrivateConfig shareConfig].verticalFullScreen = YES;
105105
VPSinglePlayerViewController *playerVC = [[VPSinglePlayerViewController alloc] initWithUrlString:@"http://qa-video.oss-cn-beijing.aliyuncs.com/mp4/mby02.mp4" platformUserID:[PrivateConfig shareConfig].identifier isLive:YES];
106+
playerVC.modalPresentationStyle = UIModalPresentationFullScreen;
106107
[self presentViewController:playerVC animated:YES completion:nil];
107108
}
108109

Example/VPInterfaceControllerDemo/VPLiveTypeSelectViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ - (IBAction)anchorButtonDidClicked:(UIButton *)sender {
461461
- (IBAction)audienceButtonDidClicked:(UIButton *)sender {
462462
[PrivateConfig shareConfig].anchor = NO;
463463
VPSinglePlayerViewController *playerVC = [[VPSinglePlayerViewController alloc] initWithUrlString:@"http://qa-video.oss-cn-beijing.aliyuncs.com/mp4/mby02.mp4" platformUserID:[PrivateConfig shareConfig].identifier isLive:YES];
464+
playerVC.modalPresentationStyle = UIModalPresentationFullScreen;
464465
[self presentViewController:playerVC animated:YES completion:nil];
465466
}
466467

Example/VPInterfaceControllerDemo/VPSinglePlayerViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ - (void)vp_requireLogin:(void (^)(VPIUserInfo *userInfo))completeBlock {
579579
VPIUserInfo *userInfo = [self userLogin];
580580
completeBlock(userInfo);
581581
};
582+
loginViewController.modalPresentationStyle = UIModalPresentationFullScreen;
582583
[self presentViewController:loginViewController animated:YES completion:nil];
583584
});
584585
}
@@ -619,6 +620,7 @@ - (void)initInterfaceController {
619620
if ([VPSinglePlayerViewController isIPHONEX]) {
620621
videoPlayerSize.portraitSmallScreenOriginY = 44.0;
621622
}
623+
[VPIConfigSDK setIdentity:[NSString stringWithFormat:@"%d", rand()]];
622624
_interfaceController = [[VPInterfaceController alloc] initWithFrame:self.view.bounds config:config videoPlayerSize:videoPlayerSize];
623625
_interfaceController.delegate = self;
624626
_interfaceController.userDelegate = self;
@@ -663,6 +665,7 @@ - (void)openWebViewWithUrl:(NSString *)url {
663665
[strongSelf->_interfaceController platformCloseActionWebView];
664666
[strongSelf->_interfaceController playVideoAd];
665667
}];
668+
webViewController.modalPresentationStyle = UIModalPresentationFullScreen;
666669
[[VPUPTopViewController topViewController] presentViewController:webViewController animated:YES completion:nil];
667670
}
668671

0 commit comments

Comments
 (0)