Recorded Camera Clip Streaming lags

Hello,

I’m experiencing heavy lag when streaming recorded clips from my surveillance cameras via the Home Assistant companion app.

Setup:

  • Home Assistant on Raspberry Pi 4
  • Home Assistant companion app on Android with remote access via Nabu Casa
  • Reolink cameras record short clips on person detection and upload them to an FTP server (Home Assistant FTP add-on)
  • Dashboard contains a media card that plays the recorded clip; I open it after receiving a mobile notification

Problem

  • The recorded clip takes a long time to start and then stalls every few seconds (buffering) before resuming.
  • If I open the same dashboard in Firefox on my phone, the clip loads quickly and plays smoothly.
  • Live camera feeds using WebRTC load instantly and smoothly in both the companion app and the browser.

Any ideas on how to solve this issue are very welcome. Thanks for your help.

Any capacity issues? Network bandwidth, traffic volumes, error retries, memory, processor, resolution? ISP bandwidth congestion? Android open apps?
Do you have the latest Android updates for your phone as well as apps?
Do any of your dashboards have hidden portions that still load the data even if it is not displayed?
Where is your FTP server located? Locally or remote?