Skip to content

Commit

Permalink
Add new camera models
Browse files Browse the repository at this point in the history
New camera models #135 #123
  • Loading branch information
Carlos Carrillo Boj committed Feb 20, 2024
1 parent 56aa12a commit 8418bbd
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/Web/control-plane-ui/src/app/cameras/AddCameraModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import Loading from '../components/icons/Loading';
const RTSP_MODEL_TEMPLATE: { [key: string]: string, default: string } = {
default: 'rtsp://{authentication}{ip}:8554',
'Xingtera XTEE5021': 'rtsp://{authentication}{ip}:554/main',
'RTSP Stream Container': 'rtsp://{authentication}{ip}:8554/video'
'RTSP Stream Container': 'rtsp://{authentication}{ip}:8554/video',
'Amcrest 4MP ProHD Indoor WiFi/Ethernet': 'rtsp://{authentication}{ip}:554/cam/realmonitor?channel=1&subtype=0',
'Amcrest 5MP Turret IP Ethernet Camera': 'rtsp://{authentication}{ip}:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif'
}

export type AddCameraModalProps = {
Expand Down Expand Up @@ -189,6 +191,21 @@ export const AddCameraModal = ({
type: [
CameraType.Container
]
},
{
id: 'Amcrest 4MP ProHD Indoor WiFi/Ethernet',
name: 'Amcrest 4MP ProHD Indoor WiFi/Ethernet',
type: [
CameraType.Wifi,
CameraType.Ethernet,
]
},
{
id: 'Amcrest 5MP Turret IP Ethernet Camera',
name: 'Amcrest 5MP Turret IP Ethernet Camera',
type: [
CameraType.Ethernet,
]
}]
.filter(x => x.type.includes(camera.type as CameraType))
.map(x => ({ id: x.id, name: x.name }))
Expand Down

0 comments on commit 8418bbd

Please sign in to comment.