I'm doing a project using Ionic + Cordova and wanted to know if it's possible on the iPhone to leave a Youtube video running in the background while blocking the screen. By default devices with iOS pause the video when it enters the background.
I'm doing a project using Ionic + Cordova and wanted to know if it's possible on the iPhone to leave a Youtube video running in the background while blocking the screen. By default devices with iOS pause the video when it enters the background.
Not possible.
The reason is, iOS does not allow you to run video, or anything else related to the interface, while your app is in the background.
iOS allows you to play background audio tracks seamlessly, but since you're plastered to YouTube, that's not going to work either, since YT prohibits extracting audio to play it separately from the video.