mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +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
|
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")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue