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.94k stars 598 forks source link

Does webrtc-streamer support -H host:port/location?(eg. -H 0.0.0.0:8080/streamer,then the apis is on /streamer/api/...) #689

Closed rouxianmantou closed 5 months ago

rouxianmantou commented 5 months ago

Is your feature request related to a problem? Please describe. When I setup the webrtc-streamer (s), the client doesn't have static ip address. (behind a DHCP). So I use a cloud server with FRPS, and FRPC on webrtc-streamer client, then I can call the api through FRPS(cloud server).

Since I have multiple webrtc-streamer clients in different places. So if I can use different /location (prefix for /api), It will be convenient for me, I don't need to pre-process the request(/locationa /locationb /locationc) with another tool, and I can reverse proxy only one port for FRP.

Describe the solution you'd like Support -H host:port/location. Or another opt like -H host:port -L base_path => host:port/base_path/api/...

Describe alternatives you've considered Currently doesn't have an alternative.