mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +00:00
Update VideoPlayer.swift
This commit is contained in:
parent
44195d0d87
commit
e784b666c5
1 changed files with 3 additions and 2 deletions
|
|
@ -201,8 +201,9 @@ class VideoPlayerViewController: UIViewController {
|
|||
seasonNumber: seasonNumber
|
||||
)
|
||||
|
||||
if try await activity.prepareForActivation() {
|
||||
await showSharePlayPrompt()
|
||||
let result = try await activity.prepareForActivation()
|
||||
if result == .activationPreferred {
|
||||
showSharePlayPrompt()
|
||||
}
|
||||
} catch {
|
||||
Logger.shared.log("SharePlay preparation failed: \(error)", type: "Error")
|
||||
|
|
|
|||
Loading…
Reference in a new issue