diff --git a/Sources/VelociPlayer/Source/VelociPlayer+Observation.swift b/Sources/VelociPlayer/Source/VelociPlayer+Observation.swift index 6c31256..d1c72ba 100644 --- a/Sources/VelociPlayer/Source/VelociPlayer+Observation.swift +++ b/Sources/VelociPlayer/Source/VelociPlayer+Observation.swift @@ -13,8 +13,10 @@ import Combine extension VelociPlayer { // MARK: - Player Observation internal func onPlayerTimeChanged(time: VPTime) { - Task.detached { - await self.updateCaptions(time: time) + if allCaptions != nil { + Task.detached { + await self.updateCaptions(time: time) + } } guard !time.seconds.isNaN && !duration.seconds.isNaN && !duration.seconds.isZero else { self.progress = 0