camera-streamer icon indicating copy to clipboard operation
camera-streamer copied to clipboard

camera-streamer depends on internet connection for WebRTC

Open gthbcrvs opened this issue 1 year ago • 1 comments

It seems that the WebRTC functionality is dependent on an internet connection.

I am using camera-streamer in Octoprint using Octopi and the stream always functions. The WebRTC was working at first (when I had internet access enabled) but no longer worked without internet access.

Is it possible to remove the internet dependency?

I think the part to change is the stun-url in https://github.com/ayufan/camera-streamer/blob/4203f89df1596cc349b0260f26bf24a3c446a56b/html/webrtc.html#L51 and https://github.com/ayufan/camera-streamer/blob/4203f89df1596cc349b0260f26bf24a3c446a56b/html/control.html#L757

I found more information here: https://stackoverflow.com/questions/30742431/webrtc-on-isolated-lan-without-ice-stun-turn-server

gthbcrvs avatar Feb 22 '25 11:02 gthbcrvs