I tried this to get the current view controller and check if its a kind of class of MPMoviePlayerController or not but it always returns the last view controller before the MPMoviePlayerController.
[self.window.rootViewController.presentedViewController.childViewControllers firstObject]
so how to check if the presented controller is a MPMoviePlayerController?