Please help,
I implemented the pan tilt sketch found here:
// https://gist.github.com/sarasantos/1518a2d137ef7c0500ebdbb4154c81b0/revisions
The sketch works as expected with the AITHINKER board . I am able to stream video
On my local network (LAN) and the global network (WAN)..
When I use the freenove board (#define CAMERA_MODEL_WROVER_KIT),
I can stream only on the LAN, When I connect to the WAN I get the text only,
No video stream.
Thank you
Larry
Hi.
Do you get any other errors?
If you open the JavaScript console on the web browser, what errors do you get?
Regards,
Sara
Thank you for the prompt response, here are javascript console results
console
Failed to load resource: net::ERR_CONNECTION_REFUSED
:8030/favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Issues
- Page layout may be unexpected due to Quirks Mode
- One or more documents in this page is in Quirks Mode, which will render the affected document(s) with quirks incompatible with the current HTML and CSS specifications.
Quirks Mode exists mostly due to historical reasons. If this is not intentional, you can add or modify the DOCTYPE to be `<!DOCTYPE html>` to render the page in No Quirks Mode.
- AFFECTED RESOURCES
- 1 element
- 1 element
Document in the DOM tree
Mode
URL
document
Quirks Mode
Hi.
I don’t think that error is causing the issue because it’s only related to the layout.
To be honest, I’m not sure exactly what might be causing the issue.
How are you setting access via WLAN?
Usually, when the video doesn’t render on the web page it’s because the wi-fi signal is not good and the camera cannot stream properly. But, it can be caused by many other different issues.
Regards,
Sara
Hi Sara,
I am accessing the WAN by changing this line in the sketch: // config.server_port = 80;
To this: config.server_port = 8020;
Then I add the port forward in my router.I know the forwarding is okay because I can access the text for pan tilt but get no video stream on the WAN.
I did some more testing, and found that when I load the arduino example sketch “CameraWebServer”, on the freenove board, I can stream video on the LAN and WAN
Without problem. It look like the issue may be in the firmware of the freenove board,. The Combination of text, and streaming video refuses to work on the freenove board, but
Has no problem on the ai_thinker board.
Unless you can suggest a solution, I think I will abandon the freenove board and use only
The Ai_thinker boards.
Thanks
Regards
Larry
.
Hi.
Unfortunately, I don’t have an explanation for that issue.
I usually don’t use port forward in our projects. So, I’m not sure exactly what might be causing the issue.
I’m sorry that I can’t help much.
Regards,
Sara
Thanks for trying, I will continue my search for a solution, and post if i find one
Larry
Hi Sara
I think if found a work around for my problem. Perhaps it will help others.
Apparently the html portion of the sketch // https://gist.github.com/sarasantos/1518a2d137ef7c0500ebdbb4154c81b0/revisions or the camera is not compatible with Network Address Translation (NAT).. In order to overcome this I made the LAN port associated with the
Sketch (camera) the default dmz port on my router. (netgear)
The sketch now works properly, and I can stream video on my LAN and WAN
Without problem. I am not skilled enough to determine what the issue with the sketch/camera is, but I am Happy with the result.
This is what I found on my search
The Default DMZ server feature is helpful when you are using some online games and video conferencing applications that are incompatible with Network Address Translation (NAT). The router is programmed to recognize some of these applications and to work correctly with them, but other applications might not function well. In some cases, one local computer can run the application correctly if the IP address for that computer is entered as the default DMZ server.
Regards
Larry