Enumeration Case

AVAudioSession.ErrorCode.cannotStartPlaying

An attempt was made to start audio playback, but playback is not allowed.

Declaration

case cannotStartPlaying = 561015905

Discussion

This error type can occur if the app’s Information property list does not permit audio use, or if the app is in the background and using a category which does not allow background audio.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software