Search code examples
iosmusicsequence

iOS MusicSequence: MusicPlayerStart() failed, return error code: -66720


I searched this error code, that means kAudioToolboxError_NoTrackDestination.

I want to know how to figure it out


Solution

  • The "audio" of background mode must be allowed, or MusicTrackDestinationCreate will return this error.