Eyevinn / srt-whep

SRT to WHEP (WebRTC)
Apache License 2.0
71 stars 9 forks source link

Should default to relative viewer URL:s #24

Closed birme closed 1 year ago

birme commented 1 year ago

In the response header to the POST request it returns the Location header containing the viewer resource. Currently it contains host name for example http://localhost:10002/channel/48f3d927-7ac2-4eef-9d4f-4984ea3dfafe but that does not work. It should by default return /channel/48f3d927-7ac2-4eef-9d4f-4984ea3dfafe or if specified as a command line option prepend a base URL, e.g.

srt-whep -b https://mywhep ...

and then it would return https://mywhep/channel/48f3d927-7ac2-4eef-9d4f-4984ea3dfafe