FAQ  •  Register  •  Login

Web UI in Ajax (Mobile & desktop edition)

<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Wed Feb 29, 2012 9:50 pm

Re: Web UI in Restful Ajax

Should be the same as serviio launcher (bat or sh) : add a "-stop" parameter.

In a Windows DOS command :
  Code:
"serviio-webui.bat -stop"
In a Unix shell :
  Code:
./serviio-webui.sh -stop
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Thu Mar 01, 2012 1:49 am

Re: Web UI in Restful Ajax

This is very neat. Thanks Kairoh for such wonderful platform independent UI. I am completely satisfied as is.

But it would be icing on the cake if :
1. Allow us to configure our own port other than 8123
2. Simple Authentication (Username and Password or IP Restriction)
3. Reference two or more css (default.css, custom.css, ios.css, android.css etc) in the HTML page, default.css which will load first and custom.css last. The custom.css is placed last in the sequence so that it would override default.css if users choose to use custom.css for their own look and feel. (Note: i saw wiki entry for custom styling - this may not be necessary)
4. Conditional css load based upon browser's user-agent

thanks
NPuser
<<

Swehawk

Serviio lover

Posts: 70

Joined: Mon Oct 10, 2011 8:08 pm

Post Fri Mar 02, 2012 7:55 pm

Re: Web UI in Restful Ajax

kairoh wrote:Should be the same as serviio launcher (bat or sh) : add a "-stop" parameter.

In a Windows DOS command :
  Code:
"serviio-webui.bat -stop"
In a Unix shell :
  Code:
./serviio-webui.sh -stop


Thank's, that did the trick :D
One thing I don't get though. How can the webui keep running after user logoff? It's not run as a service and in taskmanager I see that javaw runs as user, so it should terminate on logoff. Guess the answer is in the bat-file but that's greek to me :?
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Fri Mar 02, 2012 10:34 pm

Re: Web UI in Restful Ajax

Thanks NPuser ;)
1. It's feasible, with a new system property for example ("serviio.webui.port"). But users will have to remember the good port and URL ! Of course, the selected port must be available.
2. The complexity is how to manage this user/ip filtering, maybe with a new admin module ?
3. You could add your customized "serviio-webui.css" in your classpath, and the webui will automatically load it (as you saw on wiki). I think it's simpler to have all CSS in one file.
4. Same as 3. : there is only one CSS file to load. But there are already conditional css available (thanks to headjs).

Point 1 will be in the next release.
Could you explain me the goals of your last two requests?
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Fri Mar 02, 2012 10:42 pm

Re: Web UI in Restful Ajax

Swehawk wrote:One thing I don't get though. How can the webui keep running after user logoff? It's not run as a service and in taskmanager I see that javaw runs as user, so it should terminate on logoff. Guess the answer is in the bat-file but that's greek to me :?

It shouldn't, cause there is no magic trick in the bat! :?
I think your connection were lost, and updates weren't made on server, haven't you see any error?
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Swehawk

Serviio lover

Posts: 70

Joined: Mon Oct 10, 2011 8:08 pm

Post Sun Mar 04, 2012 6:09 pm

Re: Web UI in Restful Ajax

kairoh wrote:
Swehawk wrote:One thing I don't get though. How can the webui keep running after user logoff? It's not run as a service and in taskmanager I see that javaw runs as user, so it should terminate on logoff. Guess the answer is in the bat-file but that's greek to me :?

It shouldn't, cause there is no magic trick in the bat! :?
I think your connection were lost, and updates weren't made on server, haven't you see any error?


Am I going insane or what :? I could swear that my solution starting webui via sheduled tasks triggerd by system startup used to work (pre upgrading servioo and webui to 0.6.2 ??) but I do know for a fact that it doesn't work now!

This is what happens:
I log on through remote desktop, run the webui.bat, see javaw process appear in taskmgr, verify webui working from my client pc, log off the server only to find that webui now only displays an empty template! After refreshing the browser a couple of times I get a bunch of error messages in red saying that webui cannot connect to servioo server. When I log on to my server again, javaw is not running in taskmgr. I usually manage to solve these kind of problems myself, but when it comes to java I'm lost ;)

I run Serviio on a win 7 pc acting as a home server. All my server apps are run as services, thus it's not needed, nor wanted, to have an active user session on the server. A few apps lacking native service support are run as services through srvany. I do hope there is a way to make serviio-webui work without the need for having an active user session, otherwise it's of no use for me, and that would be a real shame :cry:
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Mon Mar 05, 2012 12:22 am

Re: Web UI in Restful Ajax

The only way will be to run as a Win service, like Serviio does.
I don't know how to do that, but I've open a ticket
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Swehawk

Serviio lover

Posts: 70

Joined: Mon Oct 10, 2011 8:08 pm

Post Mon Mar 05, 2012 10:04 am

Re: Web UI in Restful Ajax

kairoh wrote:The only way will be to run as a Win service, like Serviio does.
I don't know how to do that, but I've open a ticket


I wonder if it's possible to create a service using srvany or runasservice to run webui.bat? Worth trying! I'll get back with results...
<<

koan00

Streaming enthusiast

Posts: 38

Joined: Mon Feb 20, 2012 7:25 pm

Post Mon Mar 05, 2012 8:04 pm

Re: Web UI in Restful Ajax

First, I'd like to say thanks for this tool :)

Second, A minor annoyance is that there is log ouput to the console when starting under linux. Is this normal? I'd assume its supposed to go to a log file..
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Tue Mar 06, 2012 12:10 am

Re: Web UI in Restful Ajax

Yep it's normal : the Restlet engine logs by default to the console.
But I've found a way to silent them.
You'll see that in the next release.
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Tue Mar 06, 2012 2:02 am

Re: Web UI in Restful Ajax

@kairoh Yep you are right screen size detector is already in there. I think that is a lot better than iOS or android or ie user agent detector. Goal is to create webui iPhone or iPad or android device friendly with CSS.
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Tue Mar 06, 2012 1:50 pm

Re: Web UI in Restful Ajax

I am still working on an edition for mobile.
The WebUI works fine on mobile (it's already full HTML5 compliant), but many improvement can be made (support tapping, screen res, etc).

Cause the WebUI is based on JQuery, i've tried some mobile javascript frameworks :
- JQuery Mobile, is suppose to support every platform (even BlackBerry, Palm, Symbian, etc) but it is insanely slow!
- jqMobi as a JQuery subset is faster, but it needs too many adjustment.

Do you think some CSS will be enough to get a mobile edition?
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Swehawk

Serviio lover

Posts: 70

Joined: Mon Oct 10, 2011 8:08 pm

Post Tue Mar 13, 2012 6:34 pm

Re: Web UI in Restful Ajax

Swehawk wrote:
kairoh wrote:The only way will be to run as a Win service, like Serviio does.
I don't know how to do that, but I've open a ticket


I wonder if it's possible to create a service using srvany or runasservice to run webui.bat? Worth trying! I'll get back with results...


No luck with srvany. Service runs but webui doesn't work. To me it seems like the webui is actually running but has no contact with serviio server (judging from the error messages in red). From what I see in taskmanager, javaw isn't running when the webui.bat is run as a service or as a scheduled task, and it seems like it needs to for the webui to work. Now I know that services are run in session 0 isolation and that e.g explorer.exe is not started in session 0, but that can't be the culprit, can it? Are there any dependancys involved here?

Allright, I know Kairoh opened a ticket, but since I like the webui so much I'd like to try any quick and dirty solution while waiting for the slow and clean one ;)
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Tue Apr 17, 2012 9:24 am

Re: Web UI in Restful Ajax

Here is a major release of the webui, that offers updates and fixes and that is optimized for mobile.
Please update your bookmark cause, I've created a new static homepage sharing the new theme : http://kairoh.bitbucket.org/serviio-webui/ .
To be more coherent, I've renamed everything to "serviio-webui" (including the distribution package and the bitbucket project).
  Code:
==== 0.6.2-d ====
* New mobile edition (special CSS, javascript and metadata tags), without any js mobile framework (way too slow!).
* Add copyright info.
* New look & feel.
* Allow switching tabs by "swiping" left or right.
* Allow to choose listening port, with new system property (-Dserviio.webui.port).
* Add HTML5 "details / summary" element, with shiv for older browser.
* Add HTML5 "placeholder" for some input.
* Normalize labels for all input.
* Add js timers for auto refreshing (library status, start/stop server, etc).
* Fix vertical / horizontal alignment : input (type number, url), button (submit, reset).
* Migrate templates from "jQuery tmpl" to "jsRender" (almost twice faster).
* Migrate popup from "Simplemodal" to "Fancybox".
* New ajax loading animation (use fancybox one).
* Directory browser with 'iframe' and 'ajax' for mobile device (cause iframe scrolling don't work before Android 3 & iOS 5...).
* Change minification from Closure Compiler to YUI compressor.
* Lot of optimization...


Screenshot sample
Image

Have fun!
Last edited by kairoh on Wed Apr 18, 2012 8:52 am, edited 1 time in total.
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Tue Apr 17, 2012 10:14 am

Re: Web UI in Ajax (Mobile & desktop edition)

Good work on the mobile friendly view, its pretty slow on my phone, but my phone is quite old.

A few issues, I keep ending up with two of the tab titles highlighted at once after selecting one then swiping around, and sometimes the loading spinner stays continuosly in the way even when the content has finished loading(this is with the default browser on CM 7.2 RC1 - Android 2.3.7).

Also, Is there a reason you made the swipping to oposite way to how it normally works? If I swipe my finger from right to left, I would expect to move one to the right as if I was pulling the item to the right into view, instead the it works the other way around.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Tue Apr 17, 2012 10:35 am

Re: Web UI in Ajax (Mobile & desktop edition)

will wrote:Good work on the mobile friendly view, its pretty slow on my phone, but my phone is quite old.
Thanks! You know, a website can't compete with a native app. ;)
will wrote:A few issues, I keep ending up with two of the tab titles highlighted at once after selecting one then swiping around, and sometimes the loading spinner stays continuosly in the way even when the content has finished loading(this is with the default browser on CM 7.2 RC1 - Android 2.3.7).
Maybe some kind of lagging issue? I will try to reproduce it.
will wrote:Also, Is there a reason you made the swipping to oposite way to how it normally works? If I swipe my finger from right to left, I would expect to move one to the right as if I was pulling the item to the right into view, instead the it works the other way around.
No reason, I must have mixed up right and left :roll:
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

si_blakely

Serviio newbie

Posts: 17

Joined: Mon Jan 24, 2011 8:57 pm

Post Mon Apr 30, 2012 8:00 pm

Re: Web UI in Ajax (Mobile & desktop edition)

I have just got Web UI in Ajax working on my Linux server, and it is great (somewhat more reliable than the PHP web UI).

However, would it be possible to add a redirection from the webserver root to the console proper. I use Apache ProxyPass to redirect http://server/serviio to http://server:8123/serviio. However, I still need to address the website as http://server/serviio/console. I would prefer to not have to do that, and for a single use server I don't see the need for the placeholder landing page.

Thanks
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Wed May 02, 2012 4:06 pm

Re: Web UI in Ajax (Mobile & desktop edition)

Thanks !

This will be in next release (issue #19).

And if you change the listening port to 80 (by setting the system property "-Dserviio.webui.port"), you'll be able to connect to http://server/serviio without any Apache server. ;)
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Fri Jun 29, 2012 8:50 am

Re: Web UI in Restful Ajax

Here is another release for Serviio 0.6 with some new features and major performance boosts.
There are 2 editions : Win and Unix.
Available on the homepage or bitbucket project.
  Code:
==== 0.6.2-e ====
* Optimize overall performance : javascript, caching, rendering, etc.
* New icon set.
* Provides 2 edition : Windows and Unix.
* Allow reordering online items (enhancement #16).
* Run WebUI as Win service (enhancement #13).
* Allow short URL (http://host:port/serviio to http://host:port/serviio/console) (enhancement #19).
* Fix issue #14: Swiping disorder (left/right).
* Fix issue #15: Events colliding when changing tab.

Have fun!
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Jun 29, 2012 10:23 am

Re: Web UI in Ajax (Mobile & desktop edition)

Very beautifull job, and very simple installation, I like it. Thanks.
Do you plan something for the next 1.0 version (in RC) ?
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 9 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.