In my iPhone application I want to keep play video when application enter in background mode.
I am using AVPlayer and not finding any way to play video in background
The above answers pause the video for a second when the app enters background, but by using the method mentioned below it keeps the video playing while app goes to background without any glitch.
If the AVPlayer's current item is displaying video on the device's display, playback of the AVPlayer is automatically paused when the app is sent to the background. There are two ways to prevent this pause:
REFERENCE
Playing media while in the background using AV Foundation on iOS