Ответ 1
- Эта проблема не появляется в каких-либо текущих версиях iOS, поэтому мое первое предложение - обновить.
- Если вы должны использовать iOS 9.2, я бы предложил играть пустой звуковой файл в течение 2 секунд, а затем запустить полный аудиофайл.
Пример кода:
audioPlayer.actionAtItemEnd = AVPlayerActionAtItemEndNone;
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(playEnded:)
name:AVPlayerItemDidPlayToEndTimeNotification
object:[audioPlayer currentItem]];
- (void)playEnded:(NSNotification *)notification
{
// Start the full audio file here
}