• Creates Camera stream instance in Camera addon and saves it to database. Returns error in case of the camera stream already exists
Edit
Edit
params type description
streamId string stream id, must be unique
streamName string name for the camera
rtspUrl string rtsp link for reading stream from physical camera. Example
description string optional, describes the camera for user
Edit
  • none.
Edit
				
					local cameras = require("cameras")

cameras.add_camera_stream( "588b7eb528b12d03be86f36f", 
                           "Camera Name",
                           "rtsp://admin:719347a355d0031f4000153a0230b122702fd144@192.168.33.101:554/ISAPI/Streaming/channels/1",
                           "Hall camera"           
)