File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Sources/swiftui-loop-videoplayer/protocol/player Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,6 @@ extension AbstractPlayer{
151151 player? . pause ( )
152152 }
153153
154-
155-
156154 /// Sets up an observer for the status of the provided `AVPlayerItem`.
157155 ///
158156 /// This method observes changes in the status of `newItem` and triggers the provided callback
@@ -178,6 +176,7 @@ extension AbstractPlayer{
178176 }
179177 }
180178
179+ /// Clear status observer
181180 func clearStatusObserver( ) {
182181 statusObserver? . invalidate ( )
183182 statusObserver = nil
@@ -205,14 +204,7 @@ extension AbstractPlayer{
205204 }
206205 }
207206
208- guard playerLooper == nil else {
209- setupStateItemStatusObserver ( newItem: currentItem, callback: callback)
210- return
211- }
212-
213- let settings = currentSettings//.GetSettingsWithNotAutoPlay
214- update ( asset: currentAsset, settings: settings, callback: callback)
215- return
207+ setupStateItemStatusObserver ( newItem: currentItem, callback: callback)
216208 }
217209
218210 delegate? . didSeek ( value: false , currentTime: time)
You can’t perform that action at this time.
0 commit comments