Issue with Video Playback in Capacitor App on iOS

Hello everyone,

I’m experiencing an issue with video playback in my JavaScript (SvelteKit) application using Capacitor. The video plays and loops correctly on Android and web browsers but stops unexpectedly after a few iterations on iOS.

Code Snippet:

<video src={videoPath} autoplay muted loop playsinline
  class="h-auto w-full max-w-full object-cover"></video>

Has anyone encountered a similar issue or have insights into what might be causing this behavior on iOS?
Any suggestions or workarounds would be greatly appreciated. Maybe it has something to do with the ios power saving policy?

Thank you in advance for your help!