private void handleMediaFileSelected(object sender, FileSelectedEventArgs args) { NavigationController.PopToViewController(this, true); try { MPMoviePlayerController player = new MPMoviePlayerController(); player = new MPMoviePlayerController(NSUrl.FromFilename(args.File)); player.AllowsAirPlay = true; this.View.AddSubview(player.View); player.SetFullscreen(true, true); player.PrepareToPlay(); player.Play(); } catch (Exception ex) { string message = string.Format("Error during playback of {0}: {1}", Path.GetFileName(args.File), ErrorHandling.GetExceptionDetailedText(ex)); logMessage(message); } }