mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-03 09:10:38 +08:00
Allow web command to be reactive when camera streaming is on
This commit is contained in:
parent
f9bf48544a
commit
15cb4056c5
@ -29,6 +29,9 @@
|
|||||||
#include <esp_camera.h>
|
#include <esp_camera.h>
|
||||||
#include "fd_forward.h"
|
#include "fd_forward.h"
|
||||||
#include <soc/rtc_cntl_reg.h>
|
#include <soc/rtc_cntl_reg.h>
|
||||||
|
#if defined (HTTP_FEATURE)
|
||||||
|
#include "../http/http_server.h"
|
||||||
|
#endif //HTTP_FEATURE
|
||||||
|
|
||||||
#define DEFAULT_FRAME_SIZE FRAMESIZE_SVGA
|
#define DEFAULT_FRAME_SIZE FRAMESIZE_SVGA
|
||||||
#define PART_BUFFER_SIZE 64
|
#define PART_BUFFER_SIZE 64
|
||||||
@ -73,6 +76,10 @@ static esp_err_t stream_handler(httpd_req_t *req)
|
|||||||
if (!esp3d_camera.isconnected()) {
|
if (!esp3d_camera.isconnected()) {
|
||||||
return ESP_FAIL;
|
return ESP_FAIL;
|
||||||
}
|
}
|
||||||
|
#if defined (HTTP_FEATURE)
|
||||||
|
HTTP_Server::handle();
|
||||||
|
#endif //HTTP_FEATURE
|
||||||
|
HTTP_Server::handle();
|
||||||
log_esp3d("Camera capture ongoing");
|
log_esp3d("Camera capture ongoing");
|
||||||
fb = esp_camera_fb_get();
|
fb = esp_camera_fb_get();
|
||||||
if (!fb) {
|
if (!fb) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user