In the application Delegate file.
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
if ([NSStringFromClass([[self.window.rootViewController presentedViewController] class]) isEqualToString:@"MPInlineVideoFullscreenViewController"]&&[self.window.rootViewController presentedViewController].isBeingDismissed)
{
return UIInterfaceOrientationMaskPortrait;
}
if ([NSStringFromClass([[self.window.rootViewController presentedViewController] class]) isEqualToString:@"MPInlineVideoFullscreenViewController"])
return UIInterfaceOrientationMaskAll;
else
return UIInterfaceOrientationMaskPortrait;
}
https://github.com/YK-Unit/AppRTCDemo
ReplyDeletehttps://github.com/otalk/iOS-demo
ReplyDelete