You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks so much for such a nice library.
Is it possible to do something like numberOfLoops from AVAudioPlayer? For both modes — repeatOne and repeatAll?
The text was updated successfully, but these errors were encountered:
@Shishani58 Sorry for the late replay.
It looks hard to do something like numberOfLoops at the moment.
To support this, RxMusicPlayer should implement the numberOfLoops for repeatOne, like the below.
diff --git a/RxMusicPlayer/RxMusicPlayer.swift b/RxMusicPlayer/RxMusicPlayer.swift
index c0dc8ce..6ce6f2b 100644
--- a/RxMusicPlayer/RxMusicPlayer.swift+++ b/RxMusicPlayer/RxMusicPlayer.swift@@ -87,7 +87,7 @@ open class RxMusicPlayer: NSObject {
*/
public enum RepeatMode: Equatable {
case none
- case one+ case one(numberOfLoops: Int)
case all
}
If you like it, I can accept your PR. Or I try to implement It when I have time.
Thanks so much for such a nice library.
Is it possible to do something like numberOfLoops from AVAudioPlayer? For both modes — repeatOne and repeatAll?
The text was updated successfully, but these errors were encountered: