AVAudioPlayer Loop Playback on Swift

Asked 2 years ago, Updated 2 years ago, 29 views

I don't know how to play the loop in AVAudioPlayer.
Does anyone know?

ios swift

2022-09-29 21:21

1 Answers

If you set a value for the AVAudioPlayer's numberOfLoops property, you can play the loop.

If you want an infinite loop, you can set the numberOfLoops value to -1.


2022-09-29 21:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.