Add support for go2rtc for non-Frigate cameras

This commit is contained in:
Dermot Duffy
2023-10-07 23:27:10 -07:00
parent db50e36c76
commit b43389ed5b
14 changed files with 409 additions and 62 deletions
@@ -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', () => {