Commit Graph
37 Commits
Author SHA1 Message Date
Dermot Duffy 95b85bf608 fix: Send the WebRTC player's error text to the media_unavailable notification (#2741)
- Closes: #2723
2026-08-30 19:08:03 -07:00
Dermot Duffy 80ec92e3b2 refactor: Replace Rollup with Vite (#2656)
This is a high risk change: every byte the card ships is emitted by a
different bundler, minified by a different minifier, and every
stylesheet is compiled by a different sass. The intent is that the
card's behaviour is unchanged.

**Significant development win**: Build time drops from 24s to 1.1s 🎉 

Also adds a test suite ('dist') that runs against the built bundle.
2026-08-04 15:00:13 -07:00
Dermot Duffy 448fa2d9f1 feat: Surface the provider's error cause in the media_unavailable notification (#2599)
- Closes: #2592
2026-07-22 20:45:49 -07:00
Dermot Duffy 8c36637092 fix: Only report a live error from the visible ha-camera-stream player (#2596)
- Closes: #2583
2026-07-22 13:45:46 -07:00
Dermot Duffy c02c692f68 feat: Add experimental rewrite of go2rtc live provider (MSE/WebRTC/MP4/MJPEG) (#2580)
- Closes #2556
- Closes #2450

**Key intended features:**
 - go2rtc compatible
- 100% test coverage to significantly improve ability to test, maintain
and work around browser weirdnesses (e.g. Safari).
 - Written from the ground up in the style of the rest of the project.

**To use:**
 - Change `live_provider` from `go2rtc` to `go2rtc-experimental`.
2026-07-14 14:22:41 -07:00
Dermot Duffy 7dc29865b8 chore: Enforce consistent type imports via @typescript-eslint/consistent-type-imports (#2545) 2026-06-30 17:45:13 -07:00
Dermot Duffy a96dc2e863 chore: Enforce import order via @ianvs/prettier-plugin-sort-imports (#2542) 2026-06-30 17:45:13 -07:00
Dermot Duffy 921d45e577 chore: Enforce a few house rules via eslint (#2539) 2026-06-30 17:45:13 -07:00
Dermot Duffy bc366626f1 refactor: Refactor media loading manager for improved robustness (#2464) 2026-06-30 17:45:12 -07:00
Dermot Duffy 47bcce93d3 feat: Add hardened error handling and retries (#2451)
- Closes #1830
 - Closes #2099
2026-06-30 17:45:12 -07:00
Dermot Duffy 0a67df9a25 refactor: Convert protected methods to private (#2358) 2026-02-19 20:47:59 -08:00
Dermot Duffy 1e821f09c6 fix: Improve 2-way audio detection (#2293)
- For Frigate cameras, you must be running at least [integration
v5.12.0](https://github.com/blakeblackshear/frigate-hass-integration/releases/tag/v5.12.0).
 - Closes: #2191 

Includes a significant refactor of cameras, and the introduction of a
`2-way-audio` capability that is dynamically fetched from `go2rtc`. One
gotcha is if you previously had a substream with 2-way audio, you may
need to modify

```yaml
 - camera_entity: camera.foo
    capabilities:
      disable_except:
        - substream
```

... to ...

```yaml
 - camera_entity: camera.foo
    capabilities:
      disable_except:
        - substream
        - 2-way-audio
```
2025-12-20 13:06:09 -08:00
Dermot Duffy f50bef7446 fix: Fix audio issue triggered by HA 2025.11 (#2237)
- Closes: #2235
2025-11-09 14:43:08 -08:00
Dermot Duffy 54ee1e1cf3 fix: Improve reliability of connection cleanup (#2009)
- Closes #1992
2025-04-14 16:58:17 +01:00
Dermot Duffy 3b77b11196 fix: Increase reliability of media auto actions (e.g. play) (#1934)
Refactors media player handling entirely to make the code more
consistent and less boilerplate. Add testing for media player actions.

- Closes #1921
- Closes #1916
2025-03-03 20:59:01 -08:00
Dermot Duffy cc376a8be1 feat: Rename the card to advanced-camera-card (#1873)
Whilst the Frigate support in this card is the best among camera
engines, the name incorrectly suggests that Frigate is a requirement.
Instead, to broaden the appeal, change to more camera agnostic name.
This does not suggest any change in priority, role or support for
Frigate.

This change is likely to be bug prone, due to the size of the rename --
the code contains 1500+ references to "Frigate" most of which make sense
to rename, some which do not, all of which needed human assessment.

- Closes #1298


BREAKING CHANGE: References to `frigate-card` in all kinds of
configuration need to be updated to `advanced-camera-card`. An automated
config upgrade should take care of the majority of usecases (click `Edit
-> Upgrade -> Save`), though may not be perfect.
2025-02-06 19:32:32 -08:00
Dermot Duffy 3e8e688b36 feat: Add basic fullscreen support for iPhone (#1857)
- Closes #1444
2025-01-27 07:23:07 -08:00
Dermot Duffy 092c050a17 fix: Fix certain webrtc streams that were not loading correctly (#1766) 2024-12-15 21:16:36 -08:00
Dermot Duffy dab9ff3045 fix: Substantially reduce cases where errors block whole card (#1764) 2024-12-15 20:39:18 -08:00
Dermot Duffy e503f0e429 Initial version of status bar. 2024-08-16 20:08:21 -07:00
Felipe Santos fccb4c9afd Bump prettier to v3 and format all files 2024-06-10 00:29:50 -03:00
Dermot Duffy 39b985b4df Add screenshot support. 2023-06-16 19:36:45 -07:00
Dermot Duffy 5a67c8bc2e Fix zoom in Firefox and Safari. 2023-05-22 20:37:18 -07:00
Dermot Duffy 972a0999fb Allow default media controls to be hidden. 2023-05-14 20:00:23 -07:00
Dermot Duffy 8365b43c04 Add play/pause/mute/unmute Frigate card commands. 2023-05-11 20:25:40 -07:00
Dermot Duffy d63a1de042 Only show the microphone button when the loaded media supports 2-way audio. 2023-05-07 16:47:02 -07:00
Dermot Duffy 705afaca99 Add initial zoom support. 2023-04-22 16:32:11 -07:00
Dermot Duffy e1d74dc35a Enable smooth panning between past/live. 2023-04-09 19:23:34 -07:00
Dermot Duffy 732099b6d0 Automatically mute if autoplay is blocked. 2023-02-18 14:28:59 -08:00
Dermot Duffy cebdf9a789 Add hiding controls to native webrtc player (oops) 2022-10-11 22:00:22 -07:00
Dermot Duffy a9c600523c Add ability to change media layout. 2022-08-11 21:29:04 -07:00
Dermot Duffy ffa31c05ed Clean lit-plugin warnings 2022-06-19 07:30:08 +00:00
Dermot Duffy 7ebada9aa5 Initial draft of recordings support. 2022-06-04 11:04:38 -07:00
Dermot Duffy 6b30487229 Initial common.js refactor. 2022-05-12 20:42:02 -07:00
Dermot Duffy cf87e8543a Don't use createRef for patched players. 2022-05-10 12:38:05 -07:00
Felipe Santos 07636710c8 Refresh dependencies and fix warnings 2022-03-06 17:40:46 -03:00
Dermot Duffy 1ee4f07714 Add support for the new HA native WebRTC. 2022-02-06 21:30:27 -08:00