diff --git a/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapper.swift b/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapper.swift index d17c936..a9f7c95 100755 --- a/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapper.swift +++ b/SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapper.swift @@ -133,10 +133,12 @@ class AVPlayerWrapper: AVPlayerWrapperProtocol { } func play() { + _playWhenReady = true avPlayer.play() } func pause() { + _playWhenReady = false avPlayer.pause() }