Revert "Update CustomPlayer.swift"

This reverts commit c59462f42d.
This commit is contained in:
Francesco 2025-06-03 18:04:53 +02:00
parent 7e9336d55b
commit 50640acb19

View file

@ -1838,7 +1838,11 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
}
@objc func dismissTapped() {
dismiss(animated: true, completion: nil)
if let presentingViewController = self.presentingViewController {
presentingViewController.dismiss(animated: true, completion: nil)
} else {
dismiss(animated: true, completion: nil)
}
}
@objc func watchNextTapped() {