Better Web Interface

Post Reply
myelsukov
Posts: 1
Joined: Wed Mar 13, 2013 11:06 pm

Better Web Interface

Post by myelsukov »

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:

Code: Select all

<location>http://192.168.0.100:45357/MediaServer/Service/TranscodingProfile/T-d8bd0ced970f47459e0c0fd4e848baf0.mpg?timestart=97234&fileext=.mpg</location>
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:

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">
is better than

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">
If paths would be relative I could use folders to access WMS server via reverse proxy. For example, I could use URLs:

Code: Select all

http://xyz.homeip.net/WMS/MediaServer/...
Cheers,
Michael
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: Better Web Interface

Post by Eugene »

Hi,

Probably useful: Settings - Devices - your device - Settings - Additional - Web-navigation - "Change the server address in the playlist (IP-address:Port)".

Usually player is an external application, so, relative paths will not work.

Default script for Web-navigation pages
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: Better Web Interface

Post by Eugene »

Update to 1.72 (32-bit) (64-bit)
Post Reply