dermotduffy / frigate-hass-card

A Lovelace card for Frigate in Home Assistant
MIT License
477 stars 53 forks source link

Displaying still image and loading icon when changing to a substream #1363

Open felipecrs opened 3 months ago

felipecrs commented 3 months ago

Is your feature request related to a problem? Please describe. When the card is loading for the first time, or when I switch between cameras, I have such elegant still image and the loading icon while the stream is not fully connected:

image

However, I believe there are some circunstances where such still image and loading icon should be shown as well:

  1. When switching between substreams of the camera

    https://github.com/dermotduffy/frigate-hass-card/assets/29582865/d4b99610-72c8-4d8b-9332-4a88eda4fddf

  2. When unmuting the microphone with always_connected: false

  3. When resuming an idle tab:

    https://github.com/dermotduffy/frigate-hass-card/assets/29582865/04b06b46-5bf1-4a2a-8c8b-d0463c59c666

Describe the solution you'd like

I believe it would be super nice to apply such "loading experience" to every occasion where the camera live stream is loading.

What do you think?

Describe alternatives you've considered N/A

Additional context

Depending on the context, this may not seem to be a big deal. For example, the stream loads very fast in my powerful computer. However, for some devices in my home, like my kitchen tablet, it takes a handful amount of seconds in such black screen.