Support live JSMPEG view.
This commit is contained in:
+11
-2
@@ -60,7 +60,7 @@ export const frigateCardConfigSchema = z.object({
|
||||
.transform((val) => Number(val)),
|
||||
)
|
||||
.optional().default(180),
|
||||
live_provider: z.enum(['frigate', 'webrtc']).default('frigate'),
|
||||
live_provider: z.enum(['frigate', 'frigate-jsmpeg', 'webrtc']).default('frigate'),
|
||||
webrtc: z.object({}).passthrough().optional(),
|
||||
label: z.string().optional(),
|
||||
zone: z.string().optional(),
|
||||
@@ -96,6 +96,10 @@ export interface MenuButton {
|
||||
emphasize?: boolean;
|
||||
}
|
||||
|
||||
export interface ExtendedHomeAssistant {
|
||||
hassUrl(path?): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Media Browser API types.
|
||||
*/
|
||||
@@ -143,4 +147,9 @@ export interface BrowseMediaNeighbors {
|
||||
|
||||
next: BrowseMediaSource | null;
|
||||
nextIndex: number | null;
|
||||
}
|
||||
}
|
||||
|
||||
export const signedPathSchema = z.object({
|
||||
path: z.string(),
|
||||
});
|
||||
export type SignedPath = z.infer<typeof signedPathSchema>;
|
||||
|
||||
Reference in New Issue
Block a user