Showing Cam recording stored in www in Lovelace

Hello,

I am working with Home Assistant for a couple of weeks and I am getting the hang of creating automations and getting things to work. Just like I got a local recording on my Pi 4 from my cam when a PIR is triggered.
If some one is walking up my front door it will trigger a 433 mhz PIR which starts the recording like so:

- service: camera.record
    data:
      entity_id: camera.foscam_camera
      filename: /config/www/rec.mp4

This works fine and I will get a Local file called rec.mp4 which is around 30 sec big

In my config I created a generic cam like so:

- platform: generic
    still_image_url: 'https://xxx.duckdns.org:8123/local/rec.jpg'
    stream_source: 'https://xxx.duckdns.org:8123/local/rec.mp4'
    name: Snapshot

I can now add this to my UI but the problem is that the still and the stream get cached and the stream most of the times is only 11 seconds big. If I open the link in the browser then i can see the whole video.

Can / or do I need to approach this differently?