diff --git a/Front Row/Support/PlayEngine.swift b/Front Row/Support/PlayEngine.swift index d3cbfbd..1eb1f66 100644 --- a/Front Row/Support/PlayEngine.swift +++ b/Front Row/Support/PlayEngine.swift @@ -301,7 +301,7 @@ import SwiftUI } func goToTime(_ timecode: String) async { - guard let item = player.currentItem else { return } + guard isLoaded, let item = player.currentItem else { return } let split = Array(timecode.split(separator: ":").reversed()) @@ -326,7 +326,7 @@ import SwiftUI @MainActor func frameStep(_ byCount: Int) { - guard let item = player.currentItem else { return } + guard isLoaded, let item = player.currentItem else { return } item.step(byCount: byCount) }