Skip to content

Commit

Permalink
Update http.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ailike authored Nov 21, 2019
1 parent f49fa4f commit 4aeecdb
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions E2/protocol/http.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Based on Z CAM E2 (firmware 0.83 or above).
# Content

[Basic of API](#Basic)

Expand Down Expand Up @@ -36,6 +36,11 @@ Based on Z CAM E2 (firmware 0.83 or above).

[Examples](#Examples)

## Must read !!!

- Based on Z CAM E2 (firmware 0.93 or above)
- This document is not update to day, please check the /www/html/controller.html for the latest command and config key.

## Basic
```HTTP
GET /url
Expand Down Expand Up @@ -131,6 +136,7 @@ GET /ctrl/mode?action=query
| pb | playback mode |
| cap | still capture (not in E2) |
| cap_burst | burst still capture (not in E2) |
| standby | standby |

*_ing means it's recording or playbacking video

Expand All @@ -145,6 +151,18 @@ Switch to playback mode
GET /ctrl/mode?action=to_pb
```

Switch to standby
```HTTP
GET /ctrl/mode?action=to_standby
```

Any command to /ctrl/* will exit the standby mode.

Exit standby
```HTTP
GET /ctrl/mode?action=exit_standby
```

## Video record control
It will start video record/video timelapse record
```HTTP
Expand Down Expand Up @@ -270,8 +288,8 @@ GET /ctrl/set?action=clear
#### Video
| key | type | description |
| :--- |:---- |:---- |
| ~~movfmt | choice | 4KP30/4KP60/...~~ |
| ~~resolution | choice | 4K/C4K/...~~ |
| ~~movfmt~~ | choice | 4KP30/4KP60/... |
| ~~resolution~~ | choice | 4K/C4K/... |
| project_fps | choice | 23.98/24/... |
| record_file_format| choice | MOV/MP4 |
| rec_proxy_file | choice | Record the proxy file |
Expand Down

0 comments on commit 4aeecdb

Please sign in to comment.