Video Playback Stops After 1 Second in Photo App

I’m experiencing an issue with Nextcloud that when I try to play any videos in the Photo app, the playback stops after 1 second. When pressing play again it runs for another second and stops (it is not freezing, it just stops as if you would hit the pause button). The same happens for any video file, long and short. Have anyone experienced anything similar or have any idea what might cause this? I’m not sure if this is something that has started happening recently or if the issue has been there all along as I have not been playing much video in Nextcloud.

Btw. I’m running Nextcloud in Docker.