Abstracted some complexity related to WebcamStream.#3004
Abstracted some complexity related to WebcamStream.#3004slaff wants to merge 20 commits intoSmingHub:developfrom
Conversation
Every camera should be able to report its frames per second.
PR Summary
|
mikee47
left a comment
There was a problem hiding this comment.
I'm not getting any images through on the web interface. Tried in in host and on esp8266...
| spiffs_mount(); | ||
|
|
||
| WifiStation.enable(true); | ||
|
|
There was a problem hiding this comment.
I needed this as well:
WifiStation.config(WIFI_SSID, WIFI_PWD);
WifiAccessPoint.enable(false);
There was a problem hiding this comment.
I'm not getting any images through on the web interface. Tried in in host and on esp8266...
Strange. I am able to get images using Host and Esp8266 MCU. Without making changes to the WIFI setup.
There was a problem hiding this comment.
I tried with my phone, and it works. But not with firefox on Fedora desktop.
There was a problem hiding this comment.
So with it running on the phone, as soon as I try to view on desktop the phone one stops.
There was a problem hiding this comment.
So I installed chromium and that works. But can only stream to one client at a time, even with framerate reduced to 5.
There was a problem hiding this comment.
Without the above WiFi setup, the esp8266 only works in AP mode. (Try make flashinit && make flash)
There was a problem hiding this comment.
But can only stream to one client at a time,
Now you should be able to have multiple clients running at the same time...
There was a problem hiding this comment.
The frame rate regulation doesn't seem to work for me. Either I get full frame rate or 1 frame per second. Also seems like a use for timer classes - I've been playing around with this https://github.com/mikee47/Sming/tree/feature/webcam-fps.
There was a problem hiding this comment.
Thank you @mikee47. I have merged your changes into this PR. Will test it later today.
There was a problem hiding this comment.
The frame rate regulation doesn't seem to work for me.
Tried with your timer code which is integrated into this PR. The visible frame rate still does not match the expected :(.
…e the snapshots. Which is very energy intensive even if there are zero consumers.
1. Less camera operations: The camera till capture a picture only if there is at least one request. 2. Less network traffic: New image on the same TCP socket will be sent only when there is a new image. The old version used to send over and over again the same image until it has changed.
Every camera should be able to report its frames per second.
…e the snapshots. Which is very energy intensive even if there are zero consumers.
1. Less camera operations: The camera till capture a picture only if there is at least one request. 2. Less network traffic: New image on the same TCP socket will be sent only when there is a new image. The old version used to send over and over again the same image until it has changed.
dbd74ad to
f3b428b
Compare
Author: mikee47 <mike@sillyhouse.net> Date: Thu Feb 12 11:40:05 2026 +0000
8be125f to
34dd43c
Compare
Every camera should be able to report its frames per second.