Enumeration Case

AVAudioSession.ErrorCode.cannotStartPlaying

An error code that indicates an attempt to start audio playback when it wasn’t allowed.

Declaration

case cannotStartPlaying = 561015905

Discussion

This error type can occur if the app’s Information property list doesn’t permit audio use. It can also occur if the app is in the background and using a category that doesn’t allow background audio.