I am building a Capacitor app that includes media playback (YouTube embeds and standard <video> tags). However, as soon as the app is minimized or the screen is locked, the playback stops immediately.
I’ve noticed this happens with both YouTube iframe embeds and local/remote files in the <video> tag.
My Questions:
Is there a way to prevent the Webview from suspending when media is playing?
Are there specific Capacitor plugins or native configurations (Xcode/Android Manifest) required to enable “Background Audio” or “Background Media” support?