mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.9k stars 593 forks source link

Support Proxy #81

Open Jamie0 opened 6 years ago

Jamie0 commented 6 years ago

webrtc-native has proxy support.

I would like to see support in webrtc-streamer for using a proxy to access, say, a TURN server. This would be useful behind corporate firewalls.

mpromonet commented 6 years ago

Hi Jamie, I am not sure to understand, however you can specify a TURN server using '-t' option. If this doesnot fit your need, feel free to make modifications you need and submit pull requests. Best Regards, Michel.

Jamie0 commented 6 years ago

Here's a use case that hopefully details why I think this necessary:

As the networks are disjoint, and non-LAN requests can only be made through the proxy, it is hence impossible for both peers to communicate.

The solution would be that webrtc-streamer can connect to a TURN server on network B through proxy A, and then to the client.

AneriFumtiwala commented 5 years ago

@Jamie0 & @mpromonet

Have you added proxy support to webrtc server? If yes, can you please guide me how can I configure it?

mpromonet commented 5 years ago

Hi AneriFumtiwala, I have not really understood the purpose of this request, it may be to access to a webrtc-streamer running on internet behind a proxy. You may look to the Jamie0 fork that made some modification in https://github.com/mpromonet/webrtc-streamer/compare/master...Jamie0:proxy-support in order to customize the port allocator. This is too hard-coded to be merged. Best Regards, Michel.