Page 1 of 1

Web interface suggestions

Posted: Sat Jan 31, 2015 5:05 am
by louis54000
Hi,
One of my favorite features in UMS is the web interface. So I forwarded the 9001 port so I can access it from the Internet... But it's now free to access.
- It would be nice if you could implement a password protection (a simple htaccess/htpasswd would do the trick).
- It doesn't seem to work on iPhones (something wrong with html 5 player? I guess that will come in next versions anyway)
- And something really awesome but I don't know if it's possible : make it able to run in IIS (or any other apache server): I run a webserver on my PC, and I'd love to be able to have ums in there, on regular 80/443 instead of 9001 (I know I can change the port but that would prevent my server to run). So I could have my services like https://example.com/owncloud and https://example.com/ums.
Thank you again for this amazing piece of software!

Re: Web interface suggestions

Posted: Sat Jan 31, 2015 10:44 pm
by Wolfgan
It's never a good idea to expose services directly to the internet... if your router is capable (ie using DD-WRT or Tomato firmware) why don't you use a VPN or reverse proxy config to secure all network access from the outside? (it will cover all services, including UMS)
Wolf

Re: Web interface suggestions

Posted: Sat Jan 31, 2015 11:28 pm
by louis54000
Yes I know that it's not safe but here is the thing : I use my ISP router as primary and it does not support VPN. I use my ddwrt router as AP (VPN option is disabled). I have no choice otherwise I don't have WiFi everywhere. So I have a VPN server on a Windows Server VM that works great and seems to give me full speed. All my other services are meant to be used without VPN (owncloud and Remote Desktop). I might just do as you said for safety (I opened the port only for testing puroses, I thought it would work on iPhone and it doesn't (movies don't play)).
That being said, being able to integrate it in an apache server would be nice and safe (as I said I use HTTPS) and easier than connecting through a VPN (and some environnement block L2DP/PPTP ports and I can't use 443 for SSTP as it's used for web services)

Re: Web interface suggestions

Posted: Sun Feb 01, 2015 2:16 am
by Wolfgan
I have the same setup. Just put (or ask) your ISP modem in bridge mode or DMZ to your home router, and you manage all features and security from by yourself.

Re: Web interface suggestions

Posted: Sun Feb 01, 2015 11:56 pm
by ExSport
There is a hidden option how to restrict access to web interface. It was mentioned somewhere here in discussion...

Re: Web interface suggestions

Posted: Wed Feb 04, 2015 7:41 am
by SharkHunter
The webinterface supports both simple HTTP access as well as HTTPS access. There is like ExSport says a discussion about it somehwere :).

Re: Web interface suggestions

Posted: Wed Apr 29, 2015 12:29 pm
by JSLavigne
louis54000 wrote:I thought it would work on iPhone and it doesn't (movies don't play)).
For iPhone there is an application named Infuse that works very well with UMS.

Re: Web interface suggestions

Posted: Sat Oct 03, 2015 7:40 am
by Wolfgan
Another suggestion for the web interface, is add the ability to play files in the device core/configured player.

I.e: in a PC configured with VLC as default player, if another icon can be added to the entries linked to the mediafile directly as served by UMS (ie http://ums_server:5001/get/523/test.mp4), then the web UI can be used to navigate the media files and folders, and the default player process the media link once that link is clicked (I tested with VLC and mpc-hc on a PC and works beautifully)

Thoughts?

Re: Web interface suggestions

Posted: Mon Oct 05, 2015 4:34 am
by infidel
Wolfgan wrote:Another suggestion for the web interface, is add the ability to play files in the device core/configured player.
This is only feasible on the ums host pc, since ums can't launch anything on client devices and the client web browsers are sandboxed from launching any system processes, e.g. vlc, for security reasons, so it has very limited usability.

But just for kicks (and shameless self-promotion :D) I hacked a jumpy script to do it on the host pc and it works but isn't exactly what you'd like. It
  • Adds a 'vlc launcher' player item which you can find in the TRANSCODE folder of the web interface (or any renderer).
    • In the web interface, press the 'bump' icon and pick any non-web renderer (yes, there needs to be at least one connected for this to work :P) on the bump player's renderer drop-down list and then press play.
    • Or on other renderers just click the item.
  • vlc should open up on the ums host and start playing the file (works for WEB folder items too).
To try it (and I won't be offended if you don't, since it isn't ideal :)), install jumpy, put the attached script (editing the path to vlc.exe if necessary) in plugins/jumpy/ and restart ums
vlc-launcher.zip
unzip to plugins/jumpy/
(710 Bytes) Downloaded 664 times

Re: Web interface suggestions

Posted: Tue Oct 06, 2015 1:51 am
by Wolfgan
infidel wrote:
Wolfgan wrote:Another suggestion for the web interface, is add the ability to play files in the device core/configured player.
This is only feasible on the ums host pc, since ums can't launch anything on client devices and the client web browsers are sandboxed from launching any system processes, e.g. vlc, for security reasons, so it has very limited usability.

But just for kicks (and shameless self-promotion :D) I hacked a jumpy script to do it on the host pc and it works but isn't exactly what you'd like. It
  • Adds a 'vlc launcher' player item which you can find in the TRANSCODE folder of the web interface (or any renderer).
    • In the web interface, press the 'bump' icon and pick any non-web renderer (yes, there needs to be at least one connected for this to work :P) on the bump player's renderer drop-down list and then press play.
    • Or on other renderers just click the item.
  • vlc should open up on the ums host and start playing the file (works for WEB folder items too).
To try it (and I won't be offended if you don't, since it isn't ideal :)), install jumpy, put the attached script (editing the path to vlc.exe if necessary) in plugins/jumpy/ and restart ums
vlc-launcher.zip

Thanks Infidel, nice script. I'm not so sure the direct link capability only works in the UMS host PC. I tried the served link http://ums_server:5001/get/523/test.mp4 in a client PC browser and it offered the mp4 file to open in any local client (both Firefox and Chrome tested). Besides, an alternative is to "Open With" use plugins like https://addons.mozilla.org/en-US/firefo ... /playlink/
That's why I suggested it, seems easy to implement and powerful enough to empower end users via stock browsers.