AVAudioPlayer is Not playing iOS swift 3
Not able to play the sound when try to play the sound using below code
player.play()
You must have to set the delegate to the player.
player.delegate = self
player.play()
Because if you set the delegate then only you can get the delegate methods for that to play the audio.Otherwise it will not be able to get the playing options from the device.
player.play()
Because if you set the delegate then only you can get the delegate methods for that to play the audio.Otherwise it will not be able to get the playing options from the device.
Comments
Post a Comment