Add support for go2rtc for non-Frigate cameras

This commit is contained in:
Dermot Duffy committed 2023-10-07 23:27:10 -07:00
1 parent db50e36c76
commit b43389ed5b
14 files changed
+409 -62

No files matched your search

@@ -191,25 +191,6 @@ describe('getCameraEndpoints', () => {
}),
);
});
it('when remote with superfluous slashes', () => {
const endpoints = createEngine().getCameraEndpoints(
createFrigateCameraConfig({
go2rtc: {
url: 'https://my.custom.go2rtc///',
},
}),
);
expect(endpoints).toEqual(
expect.objectContaining({
go2rtc: {
endpoint: 'https://my.custom.go2rtc/api/ws?src=camera-1',
sign: false,
},
}),
);
});
});
it('should not set webrtc_card endpoint without camera name', () => {