Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jpg page load finishes late #2

Open
s0170071 opened this issue Sep 16, 2020 · 3 comments
Open

Jpg page load finishes late #2

s0170071 opened this issue Sep 16, 2020 · 3 comments

Comments

@s0170071
Copy link

When loading the JPG, the image appears instantly in the browser but the network connection remains open for about 2 seconds.

grafik

@arkhipenko
Copy link
Owner

I am not doing anything special with the network connection as you can see from the code. Not sure what you are asking me to do about this?

@arkhipenko
Copy link
Owner

I was not paying much attention to the JPG aspect of it - the focus was on the video feed obviously.
Would adding client.stop() after
https://github.com/arkhipenko/esp32-mjpeg-multiclient-espcam-drivers/blob/master/esp32-cam/esp32-cam.ino#L368
help?

@s0170071
Copy link
Author

The issue is that the image is already displayed in the browser but it takes another two seconds until it stops loading. It seems the browser is expecting something, i.e. a \r\n.
I already tried Client.stop but that didn't help. The streaming (also jpg) is done asynchronously, that may be why.

The long loading times cause issues with my home automation. It times out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants