Skip to main content
Skip table of contents

Connecting multi-sensor cameras

The process of connecting a multi-sensor camera is the same as for regular cameras, but if you want to stream and record simultaneously from all sensors, there should be several camera instances created on the cloud side. There are two steps:

  1. Add the same camera several times.

Create several duplicates of the camera using the Direct Onvif option the same way as usual, using the same IP, ports and camera credentials. Number of duplicates = number of lenses (sensors)

  1. Change streaming profiles on the cameras to make them stream from different lenses.

Request the list of profiles from the camera using GET/cameras​/{CAMID}​/media_streams​/, for example:

CODE
curl -X GET "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v2/cameras/6780/media_streams/" -H "accept: application/json" -H "Authorization: LKey co.5cf95254ffdca9647e13"

Set the "live_ms_id" and "rec_ms_id" (live and recording media streams) to the profile streaming from another lens using PUT​/cameras​/{CAMID}​/media_streams​/, for example:

CODE
curl -X PUT "https://web.vxgdemo.vxgdemo.cloud-vms.com/api/v2/cameras/6780/media_streams/" -H "accept: application/json" -H "Authorization: LKey co.5cf95254ffdca9647e13" -H "Content-Type: application/json" -d "{ \"live_ms_id\": \"profile-2-h264\", \"rec_ms_id\": \"profile-2-h264\"}"

Repeat step 2 for other camera instances switching them to streaming profiles corresponding to other lenses.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.