Revert "Update CustomPlayer.swift"

This reverts commit c59462f42d.
This commit is contained in:
Francesco 2025-06-03 15:24:15 +02:00
parent 7e1d10aa08
commit 03a6f5c79e

View file

@ -1839,7 +1839,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() {