tfry-git / EmbAJAX

Simplistic framework for creating and handling displays and controls on a web page served by an Arduino (or other small device).
42 stars 14 forks source link

Video stream? #38

Open jimlynnjulian opened 2 years ago

jimlynnjulian commented 2 years ago

Is there a way to include a video stream on a page? I'd like to have dynamic distance sensor data and a small video window, perhaps from an ESP32 camera, displayed on the same page for use in my automobile. Thanks.

tfry-git commented 2 years ago

There is no support for this in EmbAJAX. Also, I don't have an ESP32 camera to play with, so all of the following is guesswork. However, I believe this will probably be out of scope, as it is pushing the limits of what the MCU can handle in terms of both processing power and bandwidth.

What should definitely be possible, however is to combine one ESP32 dedicated to the video streaming (example of that easily found on the net) with another ESP dedicated to the controls. Note that an EmbAJAX page may include custom elements, in your case probably something like:

new EmbAJAXStatic("<video width=\"320\" height=\"240\"><source src=\"http://other.esp/videouri\"></video>");

Hope that helps some.

jimlynnjulian commented 2 years ago

There is no support for this in EmbAJAX. Also, I don't have an ESP32 camera to play with, so all of the following is guesswork. However, I believe this will probably be out of scope, as it is pushing the limits of what the MCU can handle in terms of both processing power and bandwidth.

What should definitely be possible, however is to combine one ESP32 dedicated to the video streaming (example of that easily found on the net) with another ESP dedicated to the controls. Note that an EmbAJAX page may include custom elements, in your case probably something like:

new EmbAJAXStatic("<video width=\"320\" height=\"240\"><source src=\"http://other.esp/videouri\"></video>");

Hope that helps some.

Thanks for the idea. Previously I had used two iPhones and an app that could send streams through a web page on an ESP8266, with the ESP8266 set up in AP mode, of course. One phone sent video, the other received video. My thinking was to use an ESP32 as a remote camera on the rear of the auto, and an ESP8266 as a passthrough to an iPad mini on the dashboard.

Thanks again.