How-To: Remote Control the Robin
Robin Tech Note
Recording feature - HTTP commands
The recording feature of the Robin can be controlled using HTTP commands.
The Robin will answer to these commands in JSON.
video_list
The ‘video_list’ call retrieves a list with all recorded videos. Each entry contains the following fields:
•
time: start time of the video (unix timestamp)
•
duration: in seconds
•
id: video id, a unique string for this video
•
url: the url of the videostream
•
event_data: the event data of the event that triggered the recording
Arguments:
•
button: filters on button number (optional)
Command:
curl -u admin:<password> “http://<address>/api/v1/video_list?button=3”
Goal:
Retrieve the video list for a specific button - in this case button 3
Answer:
{
“ok”: true,“rv”: {“video_list”: [
{“call_ids”: [
“c3aa4538”
],
“time”: 1394113333,
“id”: “2”,
“duration”: 300,
“url” : “/recording/video-2.m3u8”,
“event_data”: {
“button”: 3,
“type”: “button”},
{
“call_ids”: [
“970fdfe9”
],
“time”: 1394113375,
“id”: “5”,
“duration”: 300,
“url” : “/recording/video-5.m3u8”,
“event_data”: {
“button”: 3,
“type”: “button”}
]