SwiftAudio
SwiftAudio copied to clipboard
Player state not updated after triggering the play()
Describe the bug / To Reproduce
try? player.load(item: audioItem, playWhenReady: false)
player.play()
print(player.playerState == AudioPlayerState.playing) // false but should be true technically
Expected behavior
When using the function player.play()
, I believe it supposed to change the player.playerState
to .playing
and not stay on .loading
Smartphone (please complete the following information):
- Device: Simulator iPhone 11 Pro Max
- OS: iOS 13.5
Thanks! :)