Better Web Interface
Posted: Wed Mar 13, 2013 11:25 pm
Hi Eugene,
WMS is definitely a great system, but you can easily make it even better by slightly polishing HTTP interface.
Currently WMS is not proxy-friendly which can be fixed very easy:
1. Respect "Host" HTTP request header.
Currently WMS uses local sever IP address and port when generating location tags in the .xspf files. For example:
The problem is that that address is not accessible if WMS lives behind the proxy. In my case I am accessing WMS like this: http://xyz.homeip.net/MediaServer.....
If WMS would use value of the "Host" header instead then problem wouldn't exist.
2. Use relative paths instead of absolute. For example:
is better than
If paths would be relative I could use folders to access WMS server via reverse proxy. For example, I could use URLs:
Cheers,
Michael
WMS is definitely a great system, but you can easily make it even better by slightly polishing HTTP interface.
Currently WMS is not proxy-friendly which can be fixed very easy:
1. Respect "Host" HTTP request header.
Currently WMS uses local sever IP address and port when generating location tags in the .xspf files. For example:
Code: Select all
<location>http://192.168.0.100:45357/MediaServer/Service/TranscodingProfile/T-d8bd0ced970f47459e0c0fd4e848baf0.mpg?timestart=97234&fileext=.mpg</location>
If WMS would use value of the "Host" header instead then problem wouldn't exist.
2. Use relative paths instead of absolute. For example:
Code: Select all
<img class="imagehistory" src="presentation/images/bulletgreen8.png" alt="(T) The Beatles - Anthology 1.mpg (1 track)" hspace=2/><a class="history" title="(T) The Beatles - Anthology 1.mpg (1 track)" href="MediaServer/Folders/T-9dcdc7311c4b8c5e28e7b0d02661171d?start=0;count=15">
Code: Select all
<img class="imagehistory" src="/presentation/images/bulletgreen8.png" alt="(T) The Beatles - Anthology 1.mpg (1 track)" hspace=2/><a class="history" title="(T) The Beatles - Anthology 1.mpg (1 track)" href="/MediaServer/Folders/T-9dcdc7311c4b8c5e28e7b0d02661171d?start=0;count=15">
Code: Select all
http://xyz.homeip.net/WMS/MediaServer/...
Michael