Mr-Dsg

Results 12 comments of Mr-Dsg

ZFPlayerControlView.m中,408行,滑动之后,finished返回了NO,导致sliderChangeEnded方法不执行,滑杆的isdragging一直是YES,导致- (void)videoPlayer:(ZFPlayerController *)videoPlayer currentTime:(NSTimeInterval)currentTime totalTime:(NSTimeInterval)totalTime该方法不能刷新进度。 考虑将408行 if (finished) { 和 417行 } 注释掉解决当前问题

ZFPlayerControlView.m中,408行,滑动之后,finished返回了NO,导致sliderChangeEnded方法不执行,滑杆的isdragging一直是YES,导致- (void)videoPlayer:(ZFPlayerController *)videoPlayer currentTime:(NSTimeInterval)currentTime totalTime:(NSTimeInterval)totalTime该方法不能刷新进度。 考虑将408行 if (finished) { 和 417行 } 注释掉解决当前问题

ZFPlayerControlView.m中,408行,滑动之后,finished返回了NO,导致sliderChangeEnded方法不执行,滑杆的isdragging一直是YES,导致- (void)videoPlayer:(ZFPlayerController *)videoPlayer currentTime:(NSTimeInterval)currentTime totalTime:(NSTimeInterval)totalTime该方法不能刷新进度。 考虑将408行 if (finished) { 和 417行 } 注释掉解决当前问题

方法一:在**ZFPortraitControlView**的**164**行找到下面方法 - (void)fullScreenButtonClickAction:(UIButton *)sender { if(ISLandscape){ //当前是横屏,手动调整屏幕全屏。(判断当前是横屏的方法自己百度) [self.player rotateToOrientation:UIInterfaceOrientationLandscapeRight animated:YES];//当前方向和旋转方向相反,否则没有响应 return; } [self.player enterFullScreen:YES animated:YES]; }

方法二:找到**ZFLandscapeRotationManager_iOS15.m**第61行,添加一行代码: - (void)interfaceOrientation:(UIInterfaceOrientation)orientation completion:(void(^ __nullable)(void))completion { ... if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)]) { ... } **[self.landscapeViewController viewWillTransitionToSize:self.landscapeViewController.view.frame.size withTransitionCoordinator:self.landscapeViewController.transitionCoordinator];** [UIViewController attemptRotationToDeviceOrientation]; }

看看是不是进来之前就是横屏,如果是看看 #1390

找到:ZFLandscapeRotationManager_iOS16 在68行之后添加一个隐藏window的判断,暂时解决这个问题 - (void)interfaceOrientation:(UIInterfaceOrientation)orientation completion:(void(^ __nullable)(void))completion { ... if (fromOrientation == UIInterfaceOrientationPortrait || self.contentView.superview != self.landscapeViewController.view) { ... if (!self.window.isKeyWindow) { ... } if(toOrientation == UIInterfaceOrientationPortrait){ self.window.hidden = YES; }...