dr pepper
Advanced Member level 1
I have put together a streaming camera server using a Esp32, it also controls an r/c servo to pan the cam, I'd like to add some other bits too.
The thing is setup with port forwarding to give remote access.
I wanted to integrate the streamed pictures into my weather station webpage, but I'm struggling to get it to work remotely, it works locally both with its local IP, and with my wanip.
But remotely if I access the camera server page it works fine, however the same html embedded into the weather station html doesnt work, so I guess I'm having some cross platform issues, I've had this with json files before but not with a video stream.
This is the excerpt from the webpage html:
The html console comes up with 'websocket still in connecting state'.
I'm a twonk, just realised this runs on the browser, not the Esp, so my browser is trying to access 192.168.0.32, which here doesnt exist, derrp.
The thing is setup with port forwarding to give remote access.
I wanted to integrate the streamed pictures into my weather station webpage, but I'm struggling to get it to work remotely, it works locally both with its local IP, and with my wanip.
But remotely if I access the camera server page it works fine, however the same html embedded into the weather station html doesnt work, so I guess I'm having some cross platform issues, I've had this with json files before but not with a video stream.
--- Updated ---
This is the excerpt from the webpage html:
Code:
const view = document.getElementById('stream');
//const WS_URL = "ws://" + window.location.host + ":82";
const WS_URL = "ws://" + "192.168.0.32" + ":82";
const ws = new WebSocket(WS_URL);
The html console comes up with 'websocket still in connecting state'.
I'm a twonk, just realised this runs on the browser, not the Esp, so my browser is trying to access 192.168.0.32, which here doesnt exist, derrp.
Last edited: