Initial changes for to be ready for Frigate 0.9.0 .

This commit is contained in:
Dermot Duffy
2021-08-22 21:08:33 -07:00
parent 70ca219268
commit ced7dc9604
+2 -2
View File
@@ -606,7 +606,7 @@ export class FrigateCard extends LitElement {
if (!event.has_clip) { if (!event.has_clip) {
return null; return null;
} }
return `${this.config.frigate_url}/clips/${event.camera}-${event.id}.mp4`; return `${this.config.frigate_url}/vod/event/${event.id}/index.m3u8`
} }
protected _getSnapshotURLFromEvent(event: FrigateEvent): string | null { protected _getSnapshotURLFromEvent(event: FrigateEvent): string | null {
@@ -667,7 +667,7 @@ export class FrigateCard extends LitElement {
}} }}
?autoplay="${autoplay}" ?autoplay="${autoplay}"
> >
<source src="${clipURL}" type="video/mp4" /> <source src="${clipURL}" type="application/x-mpegURL" />
</video> </video>
`; `;
} }