feat: Add support for Frigate reviews / detections [initial PR] (#2315)
- Add support for Frigate reviews / detections. - Add support for GenAI metadata. - Significant internal refactor to more flexible "UnifiedQuery" to allow mixing cameras with simple metadata and review metadata (e.g. a timeline view of a Frigate camera with reviews, and a Reolink camera with simple metadata). - Add support for folder media as camera media. There are a few more PRs to commit prior to this going live, but commiting this for now due to the scale of the change. BREAKING CHANGE: `media_type` and `events_type` are retired under `live`, `viewer` and `timeline` configuration sections, instead media type is associated (once) with the camera under `media`.
This commit is contained in:
@@ -183,16 +183,20 @@ describe('TriggersManager', () => {
|
||||
|
||||
describe('media', () => {
|
||||
it.each([
|
||||
[false, false, null],
|
||||
[false, true, 'clip' as const],
|
||||
[true, false, 'snapshot' as const],
|
||||
[true, true, 'clip' as const],
|
||||
// [review, snapshot, clip, expectedView]
|
||||
[false, false, false, null],
|
||||
[false, false, true, 'clip' as const],
|
||||
[false, true, false, 'snapshot' as const],
|
||||
[false, true, true, 'clip' as const],
|
||||
[true, false, false, 'review' as const],
|
||||
[true, true, true, 'review' as const],
|
||||
])(
|
||||
'with snapshot %s and clip %s',
|
||||
'with review %s, snapshot %s and clip %s',
|
||||
async (
|
||||
hasReview: boolean,
|
||||
hasSnapshot: boolean,
|
||||
hasClip: boolean,
|
||||
viewName: 'clip' | 'snapshot' | null,
|
||||
viewName: 'review' | 'clip' | 'snapshot' | null,
|
||||
) => {
|
||||
const api = createTriggerAPI({
|
||||
config: {
|
||||
@@ -209,6 +213,7 @@ describe('TriggersManager', () => {
|
||||
cameraID: 'camera_1',
|
||||
type: 'new',
|
||||
fidelity: 'high',
|
||||
review: hasReview,
|
||||
snapshot: hasSnapshot,
|
||||
clip: hasClip,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user