diff --git a/Yattee/Services/Player/PlayerService.swift b/Yattee/Services/Player/PlayerService.swift index fadeef90..03458105 100644 --- a/Yattee/Services/Player/PlayerService.swift +++ b/Yattee/Services/Player/PlayerService.swift @@ -940,7 +940,7 @@ final class PlayerService { func openVideo(_ video: Video, startTime: TimeInterval? = nil) { // Check if MPV PiP is active - if so, don't expand the player - #if os(iOS) + #if os(iOS) || os(macOS) let mpvPiPActive = (currentBackend as? MPVBackend)?.isPiPActive ?? false #else let mpvPiPActive = false @@ -993,7 +993,7 @@ final class PlayerService { /// - captions: Optional array of external captions (e.g., from WebDAV subtitle files) func openVideo(_ video: Video, stream: Stream, audioStream: Stream? = nil, download: Download? = nil, captions: [Caption] = []) { // Check if MPV PiP is active - if so, don't expand the player - #if os(iOS) + #if os(iOS) || os(macOS) let mpvPiPActive = (currentBackend as? MPVBackend)?.isPiPActive ?? false #else let mpvPiPActive = false diff --git a/Yattee/YatteeApp.swift b/Yattee/YatteeApp.swift index c98cdfe1..ff0fcdf9 100644 --- a/Yattee/YatteeApp.swift +++ b/Yattee/YatteeApp.swift @@ -761,7 +761,7 @@ struct YatteeApp: App { // Always expand player after handoff (unless PiP is active) // We add a small delay to ensure ContentView has set up its .onChange observers // (during app launch via Handoff, the trigger can fire before the view is ready) - #if os(iOS) + #if os(iOS) || os(macOS) let isPiPActive = appEnvironment.playerService.state.pipState == .active #else let isPiPActive = false