We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d3c50 commit d48dc08Copy full SHA for d48dc08
Sources/swiftui-loop-videoplayer/protocol/view/LoopingPlayerProtocol.swift
@@ -78,14 +78,13 @@ internal extension LoopingPlayerProtocol {
78
let wasPlaying = player.rate != 0
79
80
if wasPlaying {
81
- player.pause()
+ pause()
82
}
83
84
// Cleaning
85
unloop()
86
clearPlayerQueue()
87
removeAllFilters()
88
-
89
90
// Replace the current item
91
let newItem = AVPlayerItem(asset: asset)
@@ -215,9 +214,10 @@ internal extension LoopingPlayerProtocol {
215
214
216
217
player = nil
+ delegate = nil
218
219
#if DEBUG
220
- print("Cleaned up AVPlayer and observers.") // Debug log for confirming cleanup.
+ print("Cleaned up Player!")
221
#endif
222
223
0 commit comments