Update MediaInfoView.swift

This commit is contained in:
Francesco 2025-06-03 20:28:12 +02:00
parent fa65ff7740
commit 479e83420e

View file

@ -1373,7 +1373,7 @@ struct MediaInfoView: View {
videoPlayerViewController.mediaTitle = title
videoPlayerViewController.subtitles = subtitles ?? ""
videoPlayerViewController.aniListID = itemID ?? 0
videoPlayerViewController.modalPresentationStyle = .overFullScreen
videoPlayerViewController.modalPresentationStyle = .fullScreen
presentPlayerWithDetachedContext(videoPlayerViewController: videoPlayerViewController)
return
@ -1410,7 +1410,7 @@ struct MediaInfoView: View {
episodeImageUrl: selectedEpisodeImage,
headers: headers ?? nil
)
customMediaPlayer.modalPresentationStyle = .overFullScreen
customMediaPlayer.modalPresentationStyle = .fullScreen
Logger.shared.log("Opening custom media player with stream URL: \(url), and subtitles URL: \(String(describing: subtitles))", type: "Stream")
presentPlayerWithDetachedContext(customMediaPlayer: customMediaPlayer)