From 6bf3837059aa4bf96ea23e28c31f701ba85d0088 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Mon, 24 Apr 2023 06:24:00 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index aa39417e..e9ca1f1b 100644 --- a/README.md +++ b/README.md @@ -515,6 +515,7 @@ live: | Option | Default | Overridable | Description | | - | - | - | - | +| `mode` | `none` | :white_check_mark: | Whether to show the thumbnail carousel `below` the media, `above` the media, in a drawer to the `left` or `right` of the media or to hide it entirely (`none`).| | `style` | `ribbon` | :white_check_mark: | Whether the timeline should show events as a single flat `ribbon` or a `stack` of events that are clustered using the `clustering_threshold` (below). | | `window_seconds` | `3600` | :white_check_mark: | The length of the default timeline in seconds. By default, 1 hour (`3600` seconds) is shown in the timeline. | | `clustering_threshold` | `3` | :white_check_mark: | The minimum number of overlapping events to allow prior to clustering/grouping them. Higher numbers cause clustering to happen less frequently. Depending on the timescale/zoom of the timeline, the underlying timeline library may still allow overlaps for low values of this parameter -- for a fully "flat" timeline use the `ribbon` style. `0` disables clustering entirely. Only used in the `stack` style of timeline. | @@ -612,6 +613,7 @@ media_viewer: | Option | Default | Overridable | Description | | - | - | - | - | +| `mode` | `none` | :heavy_multiplication_x: | Whether to show the thumbnail carousel `below` the media, `above` the media, in a drawer to the `left` or `right` of the media or to hide it entirely (`none`).| | `style` | `ribbon` | :heavy_multiplication_x: | Whether the timeline should show events as a single flat `ribbon` or a `stack` of events that are clustered using the `clustering_threshold` (below). | | `window_seconds` | `3600` | :heavy_multiplication_x: | The length of the default timeline in seconds. By default, 1 hour (`3600` seconds) is shown in the timeline. | | `clustering_threshold` | `3` | :heavy_multiplication_x: | The minimum number of overlapping events to allow prior to clustering/grouping them. Higher numbers cause clustering to happen less frequently. Depending on the timescale/zoom of the timeline, the underlying timeline library may still allow overlaps for low values of this parameter -- for a fully "flat" timeline use the `ribbon` style. `0` disables clustering entirely. Only used in the `stack` style of timeline. | From c3ca2fc348ffc609c835a90341965ea3760f2297 Mon Sep 17 00:00:00 2001 From: Anand Patel Date: Tue, 2 May 2023 21:48:50 +0000 Subject: [PATCH 2/2] Initialize media players if they have not been initialized. --- src/card.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/card.ts b/src/card.ts index 1b7ace09..d4c48fba 100644 --- a/src/card.ts +++ b/src/card.ts @@ -1224,7 +1224,7 @@ class FrigateCard extends LitElement { return; } - if (!this._initializer.isInitialized(InitializationAspect.MEDIA_PLAYERS)) { + if (this._initializer.isInitialized(InitializationAspect.MEDIA_PLAYERS)) { return; }