Roger,
Can you give me any more details?
There are 2 possible issues that I can think of:
- Unsupported file format - here is a list of most supported (can’t confirm this is all of the supported codecs):
- AAC (M4A, M4B, M4P)
- MP3
- WAV
- AA (audible.com spoken word, formats 2, 3, and 4)
- AIFF
- If you are using one of the file formats listed above, then the File URL might not be loading properly. In
ViewController.swift
in the project, check that this lineaudioFileURL = Bundle.main.url(forResource: "Intro", withExtension: "mp4")
is creating theaudioFileURL
.
The way the sample app is setup, it expects the audio file to be in the app bundle. Check that your audiobook file is being copied into your app bundle in “Copy Bundle Resources” section of Build Phases.
Let me know if these suggestions do not work for you.
Scott