diff --git a/Shared/Defaults.swift b/Shared/Defaults.swift index 0a7a3d95..e34291cf 100644 --- a/Shared/Defaults.swift +++ b/Shared/Defaults.swift @@ -5,6 +5,12 @@ import Foundation #endif extension Defaults.Keys { + #if os(tvOS) + static let defaultForPauseOnHidingPlayer = true + #else + static let defaultForPauseOnHidingPlayer = false + #endif + static let kavinPipedInstanceID = "kavin-piped" static let instances = Key<[Instance]>("instances", default: [ .init( @@ -49,7 +55,7 @@ extension Defaults.Keys { #if !os(tvOS) static let commentsPlacement = Key("commentsPlacement", default: .separate) #endif - static let pauseOnHidingPlayer = Key("pauseOnHidingPlayer", default: true) + static let pauseOnHidingPlayer = Key("pauseOnHidingPlayer", default: defaultForPauseOnHidingPlayer) static let closePiPOnNavigation = Key("closePiPOnNavigation", default: false) static let closePiPOnOpeningPlayer = Key("closePiPOnOpeningPlayer", default: false)