Web UI in PHP
so if anybody interested http://blog.tolik.org/2011/01/serviio-web-interface.html
v0.2b update http://blog.tolik.org/2011/01/serviio-web-interface-updates-v02b.html
v0.3b update http://blog.tolik.org/2011/01/serviio-web-interface-updates-v03b.html
v0.4b update http://blog.tolik.org/2011/01/serviio-web-interface-updates-v04b.html
v0.5b update http://blog.tolik.org/2011/02/serviio-web-interface-updates-v05b.html
v0.5.1b update http://blog.tolik.org/2011/03/serviio-web-interface-updates-v051b.html
v0.5.2b update http://blog.tolik.org/2011/03/serviio-web-interface-updates-v052b.html
v0.5.2.1b update http://blog.tolik.org/2011/04/serviio-web-interface-updates-v0521b.html
v0.6b update http://blog.tolik.org/2011/09/serviio-web-interface-updates-v06b.html (patched by Mark Pemberton)
This is serviio web frontend v 0.5 beta - it mimics native configuration console.
From now on I plan on numbering versions the same as serviio to avoid confusion.
The code is quick & dirty (couple of hours) - tons of bugs included.
Requirements: HTTP server, PHP5 (with XML simple and cURL), JavaScript-enabled web browser.
TODO:
- Suggestions?
- Version 0.6 beta - Patched code by Mark Pemberton to work with 0.6 changes.
Version 0.5.2.1 beta - Fixed issue #1700 Update metadata through interface doesn't work. Fixed on the 'transcoding' tab, setting 'Keep original' keeps reverting to 'Downmix to stereo'.
Version 0.5.2 beta - Updated existing translations and added new from serviio client. Added server version check - won't operate with the other version. Edit config.php to override this check.
0.5.1 beta - fixed background color to show correctly under Explorer and Firefox. Extended "Metadata", "Presentation" to work with new options/rest interface. Updated existing translations and added new from serviio client. Fixed "status" tab javascripts. Fixed "metadata" tab "Retrieve DVD cover image or poster if available" bug.
0.5 beta - removed org.restlet.jar and org.restlet.ext.xstream.jar - no restlet bug with @Post annotated actions in v2.0.4. Added translation from serviio-console. Updated to support serviio v 0.5: Added "Presentation" and "Console settings". Extended "Status", "Library", "Metadata" and "Transcoding" to work with new options/rest interface. Translation is incomplete: no javascript transaltion, no status messages translation - I have no capacity
0.4 beta - added org.restlet.jar and org.restlet.ext.xstream.jar from the new restlet-jse-2.0.4 - suggested by zip to workaround restlet 2.0.0 bug with @Post annotated actions. Removed serviio-0.4.2-cli workaround.
0.3 beta - added serviio-0.4.2-cli - a java module to POST RESTfull actions - see lib/serviio-0.4.2-cli/README.txt
This module is a minimal serviio-console distribution with modified serviio-client.jar to allow command-line processing.
serviio-cli.sh can execute the following actions: stopServer, startServer, forceLibraryRefresh and forceOnlineVideoFilesUpdate
0.2 beta - added AJAX File Browser from http://gscripts.net/free-php-scripts/Listing_Script/AJAX_File_Browser/details.html
and GreyBox from http://orangoo.com/labs/GreyBox/ to select server's local path for media library & transcoded files location.
0.1 beta - base functionality. Does not work: Transcoding:Browse... & Library:Add local... buttons to select a directory - not implemented.
POST actions do not work due to a nasty bug in restlet v2.0.0 used in serviio.
0. Translation:
1. Status tab - you can see status, select renderer profile & set bound IP address:
2. Library tab - you can add/remove path, set path content type, change settings:
3. Metadata tab - you can change settings (something may be messed up in Video section):
4. Transcoding tab - pretty much works, except for "Browse...":
5. About - same as native console, Serviio version loaded from server:
AJAX File Browser - to pick a directory on the server side (NOTE: it has the same viewing permissions as the HTTP server):
OBSOLETE: Until restlet POST workaround found, the error is caught to present it nicely:
Restlet bug workaround - use serviio-cli.sh a minimal distribution of serviio-console with modified serviio-client.jar:
OBSOLETE: Removed in 0.4b The following are development notes - end users do not need to do it.
From the lib/serviio-client.jar remove files org/serviio/console/ServiioConsole*
Compile src/org/serviio/console/ServiioConsole.java and put compiled ServiioConsole.class in lib/serviio-client.jar at org/serviio/console/
use bin/serviio-cli.sh wrapper to POST a action:
serviio-cli.sh <IP ADDRESS><ACTION>
<IP ADDRESS> - Server's IP, eg. 127.0.0.1
<ACTION> - Action to execute
Please note: it is a minimal distribution of the serviio-console to reproduce/verify blobs just use ServiioConsole.java & serviio-cli.sh and take the rest from the original serviio distribution.
Also you can verify individual jars with any check-summing, serviio-client.jar is the only modified module - described above.
Minimal ServiioConsole cli:
Available for download at http://labs.softjourn.com/projects/serviioweb/files