Audio interruptions (such as receiving a phone call, opening Siri) will pause the song. If you press "play" again after an interruption, the song suddenly skips forward (leading sometimes to a song ending too early / skipped parts).
EDIT: It will skip exactly the amount of how long Siri was open.
Reproduction:
Run the Example on a Phone, and play the Soundbite song. Now open Siri (by holding the home button or voice command) and notice the song will pause. After Siri closes, press play and notice the song is suddenly skipping many seconds forward.
Expected behavior:
After an audio interruption, pressing play should play from the position where the song paused. Besides that, normally the song should be auto-playing again (instead of having to manually press play again), but I guess this is because AVAudioEngine was used? (AVPlayer handles toggling pause/play automatically after an interruption)
Audio interruptions (such as receiving a phone call, opening Siri) will pause the song. If you press "play" again after an interruption, the song suddenly skips forward (leading sometimes to a song ending too early / skipped parts).
EDIT: It will skip exactly the amount of how long Siri was open.
Reproduction: Run the Example on a Phone, and play the Soundbite song. Now open Siri (by holding the home button or voice command) and notice the song will pause. After Siri closes, press play and notice the song is suddenly skipping many seconds forward.
Expected behavior: After an audio interruption, pressing play should play from the position where the song paused. Besides that, normally the song should be auto-playing again (instead of having to manually press play again), but I guess this is because AVAudioEngine was used? (AVPlayer handles toggling pause/play automatically after an interruption)