From 68b50fa81d04baf343ddfffcb35fb329b8cc5cd4 Mon Sep 17 00:00:00 2001 From: Dustin Bahr Date: Wed, 29 Apr 2020 11:00:02 -0600 Subject: [PATCH] Set _playWhenReady in play and pause. --- SwiftAudio/Classes/AVPlayerWrapper/AVPlayerWrapper.swift | 2 ++ 1 file changed, 2 insertions(+) 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() }