Flussonic Media Server documentation

DVR API

Status report Anchor Anchor x2

You can request recording status using URL like this:

curl http://192.168.2.3:8080/ort/recording_status.json?from=1399909200&to=1400055600
[{"stream":"hik2","ranges":[{"from":1399917362,"duration":65},{"from":1399926545,"duration":102},{"from":1399965549,"duration":350}],
"brief_thumbnails":[1399917362,1399917373,1399917385,1399917397,1399917409,1399917421,1399926545]}]
As you can see, this JSON contains zones of continuous recording and UTC time of thumbnails.

DVR Lock Anchor Anchor x2

You can lock record to revert autodelete it from archive. This can be useful for the organization user nPVR or save important records.

curl -u flussonic:letmein! --data '{"stream":"ort","from":1483971680,"duration":1000}' http://192.168.2.3:8080/flussonic/api/dvr/lock

Where 1483971680 - start time in unix time, 1000 - duration in seconds.

You can request locks from API using URL like this:

curl http://192.168.2.3:8080/ort/recording_status.json?from=1483970680\&to=now\&request=ranges,locks
[{"stream":"ort","ranges":[{"duration":3687,"from":1483970675},{"duration":56758,"from":1483974376},{"duration":332,"from":1484031143}],"locks":[{"duration":1004,"from":1483971680}]}]