Skip to content

Commit 436f764

Browse files
committed
Update LoopingPlayerProtocol.swift
1 parent b20dfb0 commit 436f764

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/swiftui-loop-videoplayer/protocol/view/LoopingPlayerProtocol.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ extension LoopingPlayerProtocol {
9696

9797
player?.replaceCurrentItem(with: newItem)
9898

99+
loop()
100+
99101
// Seek to the beginning of the item if you want to start from the start
100102
player?.seek(to: .zero, completionHandler: { _ in
101103
// Resume playing if the player was playing before

0 commit comments

Comments
 (0)