Closed ahmetcumhurarslan closed 3 years ago
i am listening motion detection event to start recording. but when camera disconnects and reconnects i cannot understand this and continue to listen for nothing. is there any callback or way to detect the camera connection?
You can listen for the 'connect' event on your cam object:
var cam = new Cam({...options}); cam.on('connect', () => { console.log('Connected') });
i am listening motion detection event to start recording. but when camera disconnects and reconnects i cannot understand this and continue to listen for nothing. is there any callback or way to detect the camera connection?