File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
Example/VPInterfaceControllerDemo Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments