Hello, Could someone provide a sample SwiftUI code for using AVPlayerLooper?
Codes I see aren't for SwiftUI
My only request would be the ability to toggle auto-repeat on and off.
AVPlayer can be replaced by AVQueuePlayer, but it does not loop.
I'm interested in these
Using SwiftUI, you can loop video You may be able to disable looping by using AVPlayerLooper's disableLooping() function. Is there a way to turn it back on? There is no enableLooping(). Or does it need a new instance? since i am new to iOS, the code there are all linked to no swift ui code so I have no clue (sorry) the equivalent of them in SwiftUI Thoughts?