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 |
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"
)