Update VideoPlayer.swift

This commit is contained in:
cranci1 2025-06-16 11:19:14 +02:00
parent 44195d0d87
commit e784b666c5

View file

@ -201,8 +201,9 @@ class VideoPlayerViewController: UIViewController {
seasonNumber: seasonNumber seasonNumber: seasonNumber
) )
if try await activity.prepareForActivation() { let result = try await activity.prepareForActivation()
await showSharePlayPrompt() if result == .activationPreferred {
showSharePlayPrompt()
} }
} catch { } catch {
Logger.shared.log("SharePlay preparation failed: \(error)", type: "Error") Logger.shared.log("SharePlay preparation failed: \(error)", type: "Error")