question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Live Always Loads

See original GitHub issue

I am using v4.0.0-rc.2.

Is it possible for the card to only load the live feed of the camera when it is tapped to open full screen? Then show a snapshot of the camera that updates every 10 seconds? I tried using the view of the most recent snapshot but on mobile it’s not actually visually appealing and there’s no ability to click to live stream still to my knowledge.

The “on selection” doesn’t work to prevent pre-loading when using single cards by themselves. The reason I want to prevent pre-loading is that the Dashboard and I think even the web UI all together locks up as a result of trying to load 3 simultaneous streams. When I had these 3 cameras on the dashboard as seen in the screenshot preloading I repeatedly lost access to the UI for a few minutes on the companion app, browser and even through the nabucasa url. No errors in the logs as to where it came from. I removed the cameras and it was fine. It also slows the ability to edit the cards with them all live at once.

Mobile Dashboard:

Screenshot_20220718-081224_Home Assistant

Using view most recent snapshot a circle appears that blocks the full image: Screenshot_20220718-081550_Home Assistant

Current Code:

type: horizontal-stack
cards:
  - type: custom:frigate-card
    cameras:
      - camera_entity: camera.outdoor_4
        live_provider: frigate-jsmpeg
    menu:
      style: none
    live:
      preload: true
      auto_play: visible
      draggable: false
      actions:
        tap_action:
          - action: custom:frigate-card-action
            frigate_card_action: fullscreen
          - action: custom:frigate-card-action
            frigate_card_action: live
    dimensions:
      aspect_ratio_mode: static
      aspect_ratio: '5:4'
    image:
      mode: camera
      refresh_seconds: 10
    view:
      default: live
  - type: custom:frigate-card
    cameras:
      - camera_entity: camera.outdoor_3
        live_provider: frigate-jsmpeg
    menu:
      style: none
    live:
      preload: true
      auto_play: visible
      draggable: false
      actions:
        tap_action:
          - action: custom:frigate-card-action
            frigate_card_action: fullscreen
          - action: custom:frigate-card-action
            frigate_card_action: live
    dimensions:
      aspect_ratio_mode: static
      aspect_ratio: '5:4'
    image:
      mode: camera
      refresh_seconds: 10
    view:
      default: live
  - type: custom:frigate-card
    cameras:
      - camera_entity: camera.outdoor_2
        live_provider: frigate-jsmpeg
    menu:
      style: none
    live:
      preload: true
      auto_play: visible
      draggable: false
      actions:
        tap_action:
          - action: custom:frigate-card-action
            frigate_card_action: fullscreen
          - action: custom:frigate-card-action
            frigate_card_action: live
    dimensions:
      aspect_ratio_mode: static
      aspect_ratio: '5:4'
    image:
      mode: camera
      refresh_seconds: 10
    view:
      default: live

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dermotduffycommented, Jul 22, 2022
  • You are incorrectly listing the actions under live, when you want them to work when you’re in the media viewer (not live).
  • Setting thumbnails -> mode to none will cause the thumbnail drawer to disappear (the 3 lines).

This is what the media_viewer section should look like:

media_viewer:
  controls:
    next_previous:
      style: none
    thumbnails:
      mode: none
  actions:
    tap_action:
      - action: custom:frigate-card-action
        frigate_card_action: live
      - action: custom:frigate-card-action
        frigate_card_action: fullscreen

I can’t easily exactly test your config, but here is the full version that I’d guess should work:

type: horizontal-stack
cards:
  - type: custom:frigate-card
    cameras:
      - camera_entity: camera.outdoor_4
        live_provider: frigate-jsmpeg
    menu:
      style: none
    live:
      preload: false
      auto_play: never
      draggable: false
    dimensions:
      aspect_ratio_mode: static
      aspect_ratio: '5:4'
    image:
      mode: camera
      refresh_seconds: 10
    view:
      default: snapshot
    media_viewer:
      controls:
        next_previous:
          style: none
        thumbnails:
          mode: none
      actions:
        tap_action:
          - action: custom:frigate-card-action
            frigate_card_action: live
          - action: custom:frigate-card-action
            frigate_card_action: fullscreen
1reaction
Daniel-dev22commented, Jul 18, 2022

Thank you for the quick response. I will take another look at the docs later today. To see what I need to change and report back if I’m successful. The card is great otherwise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is a Live Load in Trucking? - Freight Course
A live load happens when a truck delivers a container and waits for it to be fully ... However, this is not always...
Read more >
LIVE LOADS VS. DEAD LOADS IN STRUCTURAL DESIGN
From the general concept of “load” comes two major categories: dead loads and live loads. How do they differ?
Read more >
What Does Live Load Mean in Construction?
The live load on a structure is any loading that is not always consistently exerted on the structure. For example the occupants of...
Read more >
Live Load Vs Dead Load | What Is Load in Civil - Civiljungle
Live loads refer to the transient forces that move through a building or act on any of its structural elements. They include the...
Read more >
Live view just keeps loading (spinning) : r/Ring - Reddit
Finally I tried loading the live view on the Ring webpage on my phone (in safari), and it worked perfectly. The iOS app...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found