问题原因:
视频全屏播放,在转屏状态下,toast提示的方向不对
解决思路:
将屏幕横转过来时,不展示toast提示
解决代码:
- (
BOOL
)isNotFullScreenPlayer
{
doctorAppDelegate *appDelegate =( doctorAppDelegate *)[ UIApplication sharedApplication ]. delegate ;
HDFNavigationController *currentViewCtrl = appDelegate. tabBarController . selectedViewController ;
if ([currentViewCtrl. topViewController isKindOfClass :[ HDFVideoPlayerLandscapeViewController class ]] ||([currentViewCtrl. topViewController isKindOfClass :[ HDFVideoPlayerViewController class ]] && [[ UIApplication sharedApplication ] statusBarOrientation ]!= UIInterfaceOrientationPortrait ))
{
// 横屏播放页不展示 hud
return NO ;
}
else
{
// 其他页面默认展示 hud
return YES ;
}
doctorAppDelegate *appDelegate =( doctorAppDelegate *)[ UIApplication sharedApplication ]. delegate ;
HDFNavigationController *currentViewCtrl = appDelegate. tabBarController . selectedViewController ;
if ([currentViewCtrl. topViewController isKindOfClass :[ HDFVideoPlayerLandscapeViewController class ]] ||([currentViewCtrl. topViewController isKindOfClass :[ HDFVideoPlayerViewController class ]] && [[ UIApplication sharedApplication ] statusBarOrientation ]!= UIInterfaceOrientationPortrait ))
{
// 横屏播放页不展示 hud
return NO ;
}
else
{
// 其他页面默认展示 hud
return YES ;
}
}