Picture in Picture stops audio when phone locked

AVPlayerViewController has the functionality to keep playing the audio when the app is backgrounded or the device is locked.

Obviously picture in picture improves this when the app is backgrounded but we lose the functionality when the device is locked as it stops the audio. The user can hit play on the lock-screen to continue playing but doesn't seem to be ideal.

Is there any way around this or is the expected behaviour?
Since AVPlayerViewController is part of AVKit, you'll likely have better luck asking the question in the AVKit part of the forums.
Picture in Picture stops audio when phone locked
 
 
Q