Hi!
Recently I wrote code, that streams video from OV2640 to esp32 webserver. I have done it like in example on github:
https://github.com/espressif/esp32-came ... /README.md. JPEG HTTP STREAM.
Now I'm trying to write app, that connects to esp32 and view this stream.
My question is what kind of format or media type is this stream? Is it just photos hosted one by one on blank website? Or is it some kind of format? I'm not into media formats at all, so I can't see any answer in code itself.
Handling with esp32-cam stream.
Re: Handling with esp32-cam stream.
https://github.com/espressif/esp32-came ... ttp-stream
static const char* _STREAM_PART = "Content-Type: image/jpeg\r\nContent-Length: %u\r\n\r\n";
static const char* _STREAM_PART = "Content-Type: image/jpeg\r\nContent-Length: %u\r\n\r\n";
Re: Handling with esp32-cam stream.
So it means that it is raw jpeg photos hosted one by one on page?
-
- Posts: 9766
- Joined: Thu Nov 26, 2015 4:08 am
Re: Handling with esp32-cam stream.
Not one by one per se... the trick is in the multipart/x-mixed-replace header. This allows the client to keep the connection open and replace the JPEG it got earlier by a newer picture when it becomes available. Some explanation.
Who is online
Users browsing this forum: No registered users and 122 guests