Skip to content

[BUG] [WEB] Video previews in Gridview keep downloading, even if they are not visible anymore (reopen) #958

Closed

Description

@akoyaxd

Describe the bug
If I scroll through my assets and hover over an video, it starts to download and preview it, which is a great feature.

The Prolbem is, that it does not stop to download the video, even, if I scrolled away from that video, which makes previewing images very slow, since it blocks my bandwidth.

To Reproduce
Steps to reproduce the behavior:

  1. I installed Immich through docker-compose
  2. Placed an Nginx reverse proxy for ssl in front of it.
  3. Upload assets from my phone
  4. In Web: Hover over an video and scroll down. Keep an eye on networktraffic of my machine.

Expected behavior
The download of the video stops, as soon as I stop hovering with my mouse over an video (or at least as soon, as it is no longer visible in the browser through scrolling.

Screenshots
If applicable, add screenshots to help explain your problem.

System

  • Server Version: <1.35>
  • Mobile App Version: <1.35>

Additional context
Browser is Firefox on MacOS 13

This is a reopened Ticket for #875

Activity

  1. alextran1502 commented on Nov 11, 2022

    @alextran1502
    Member

    This might be the Firefox problem only. I've tested on Chrome and Brave, and I cannot reproduce this issue. Hmm. Can you help check the network tab of Firefox?

  2. akoyaxd commented on Nov 11, 2022

    @akoyaxd
    Author

    Sure! I'm not sure what I am looking for though.

    I can see these GETs for media as soon as I scroll over them:
    grafik

    Maybe it's worth to mention, that they are h265 files, that can not be played in the browser..

  3. akoyaxd commented on Nov 11, 2022

    @akoyaxd
    Author

    I can also still reproduce this on Chromium and Safari.

    In the video I hover over a bunch of videos and scroll down. On the right you can see, that chromium does not stop to download the videos in the background.

    Untitled.mov

    Edit: The recording was made on Chromium

  4. alextran1502 commented on Nov 11, 2022

    @alextran1502
    Member

    H.265 can now be played in Chrome. They added that feature sometime last week, I believe. It still cannot be played on Firefox, though.

    I see you have a group of videos you hovered over, correct? My test was conducted on a single photo hovering action.

  5. akoyaxd commented on Nov 11, 2022

    @akoyaxd
    Author

    Yes it was a group of videos. Sorry I didn't consider this to have an impact. ^^

    Yea, Firefox does not support it because of the royalty fees.
    Plain Chromium does not support it as well, for the same reason. I try to avoid Google as much as I can, that's why I do not use Chrome.

    Paitently waiting for #203 because of this :)

  6. alextran1502 commented on Nov 11, 2022

    @alextran1502
    Member

    Yes it was a group of videos. Sorry I didn't consider this to have an impact. ^^

    Yea, Firefox does not support it because of the royalty fees. Plain Chromium does not support it as well, for the same reason. I try to avoid Google as much as I can, that's why I do not use Chrome.

    Paitently waiting for #203 because of this :)

    Got it! I will try to reproduce the scenario and get back to you on the fix

  7. akoyaxd commented on Dec 14, 2022

    @akoyaxd
    Author

    To help reproducing:

    Chromium seems to work correctly now (1.38.2). My h265 Files (not playable in open source chromium) are not downloading anymore (only a few megs). Same goes for large and small Files (av01 tested) that are playable after hovering over.

    Firefox keeps loading the h265 files for 30 seconds after it breaks up. It does not seem to download the hole file. The large av01 file behaves the same. After hovering over it, it keeps downloading the file for 30 seconds until it stops.
    The small 720p file behaves accordingly, as it stops loading more or less directly after stopping the hover. The large av01 file keeps loading for about 30 Seconds like the h265 files.

    Internet Speed 100 Mbit/s
    The av01 Videos are downloaded from Youtube.

    File Firefox download time after hover Chromium download time after hove
    h265 Video length: 4 Minutes, size: 1,4GB 30 Seconds ~3 Second
    av01 8k length: 14 Minutes, size: 3GB 30 Seconds ~3 Second
    av01 720p length: 14 Minutes, size: 93MB ~3 Seconds ~3 Seconds

    Conclusion: The codec does not seem to make a difference. It's more about the file size (or more probably the bitrate).
    Maybe Firefox wants to buffer a specific amount of time?

  8. akoyaxd commented on Feb 5, 2023

    @akoyaxd
    Author

    What about a setting to disable video previews?
    Not as a fix but as a workaround since a low bandwidth mode would be nice as well.

  9. Ensber commented on Apr 18, 2026

    @Ensber

    I just noticed that this problem still exists in v2.7.5.

    When i move my mouse over manny videos in the timeline, each starts the download of the complete video, and it does not cancel after i dont hover over it anymore.
    this results in manny long running requests, where only 6 are processed in the case of http1.1 and this makes the UI not do anything:

    • preview images dont load when scrolling down
    • when i click on a image/video the UI hangs, until it can finish that request, that is blocked by the downloading of the videos

    I tested this on Firefox/Chromium

  10. akoyaxd commented on Apr 19, 2026

    @akoyaxd
    Author

    Can confirm, The issue is back for me as well.

    From my first look, it seems it only affects videos, that started buffering through a mouse hover, but did not start yet playing, while scrolling further down the timeline.

  11. VerstandInvictus commented on May 27, 2026

    @VerstandInvictus

    This still happens for me as well. It causes the entire UI to lock up and refuse to load thumbnails (because maxconns on the server/proxy are saturated by streaming motion photos) when served remotely and scrolling through the gallery. "mouse hover" includes "it was under your mouse for a millisecond while scrolling the gallery".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions