nativescript-camera-plus icon indicating copy to clipboard operation
nativescript-camera-plus copied to clipboard

Help/guidance with circular buffered recording

Open grancola opened this issue 5 years ago • 0 comments

Hello, I'm using this plugin and works great but I wonder if I can get any assistance on how to get circular buffer implemented with camera-plus, and store 10 seconds before and after an event is picked up by the phone (sound)

A typical use-case for this sort of storage is security applications where one wishes to detect motion and only record to disk the video where motion was detected. This example keeps 20 seconds of video in memory until the event is detected (sound) Once the event is detected, the script waits 10 more seconds (so that the buffer contains 10 seconds of video from before the event, and 10 seconds after) and writes the resulting video to disk before going back to waiting

Any ideas? thanks

grancola avatar Jul 27 '20 12:07 grancola