Pick the fix
Picture in Picture never starts in your custom player. Most likely fix?
Hint 1 of 1
What does the system need to keep playing outside the app?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Set the audio session category to .playback and enable the Audio, AirPlay and Picture in Picture background mode
Correct. PiP needs both.
Why not the others?
- B Switch from HLS to MP4. The format isn't the problem.
- C Call play() twice. It doesn't affect PiP eligibility.
- D Use a UIImageView to show frames. PiP works with AVPlayerLayer, not images.