Playing Video in the Background on iPhone
iOS automatically pauses video playback when you lock your device to save battery and comply with app guidelines. If you want to listen to audio from a video while your screen is locked — say, watching a music video or podcast while walking — you need to enable background audio mode in your player app….
