User Tools

Site Tools


servio_plugins

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
servio_plugins [2012/01/10 17:07]
zip
servio_plugins [2017/06/24 21:44] (current)
techwhizz Just a minor change for users to be aware if they have the Serviio patch correct or not.
Line 15: Line 15:
  
 ====== Installation ====== ====== Installation ======
-   1. Download the plugin +  -  Download the plugin 
-   2. Copy the plugin to the plugins folder +  -  Copy the plugin to the plugins folder (eg to /usr/bin/serviio-0.6.2/plugins on linux) 
-   3. Configure Serviio with at least one url to an RSS feed.  This is done using the serviio console.+  -  Configure Serviio with at least one url to an RSS feed.  This is done using the serviio console using the Online Sources Tab which is found on the Library tab.
  
 After up to 5 mins the streams should be available to view.  On the DLNA client look for a new folder called "Online Sources" After up to 5 mins the streams should be available to view.  On the DLNA client look for a new folder called "Online Sources"
Line 26: Line 26:
  
 Online content is usually served via **http** or **rtmp** protocol. The former is very easy to consume. The latter is mostly used by Adobe Flash servers and used in many online video services and FFmpeg compiled with [[http://rtmpdump.mplayerhq.hu/|libRTMP]] is necessary for playback. Some rtmp streams require swf verification (not implementing that usually means the stream is cut after a period of time, like 1 minute). Online content is usually served via **http** or **rtmp** protocol. The former is very easy to consume. The latter is mostly used by Adobe Flash servers and used in many online video services and FFmpeg compiled with [[http://rtmpdump.mplayerhq.hu/|libRTMP]] is necessary for playback. Some rtmp streams require swf verification (not implementing that usually means the stream is cut after a period of time, like 1 minute).
 +
  
 Feed item URLs can expire with time, if that is the case you will have to provide the expiry date so that Serviio can re-run the URL extraction when that happens and get a valid URL when necessary. You can also define whether the content is a live stream or static content. Feed item URLs can expire with time, if that is the case you will have to provide the expiry date so that Serviio can re-run the URL extraction when that happens and get a valid URL when necessary. You can also define whether the content is a live stream or static content.
Line 41: Line 42:
  
 __On Windows:__ __On Windows:__
 +Please make sure the Serviio folder is located in either Program Files or Program Files (x86).
 +
 groovy -cp "C:\Program Files (x86)\Serviio\lib\serviio.jar;C:\Program Files (x86)\Serviio\lib\slf4j-api.jar;C:\Program Files (x86)\Serviio\lib\slf4j-log4j12.jar;C:\Program Files (x86)\Serviio\lib\log4j.jar" "C:\Program Files (x86)\Serviio\plugins\CNN.groovy" groovy -cp "C:\Program Files (x86)\Serviio\lib\serviio.jar;C:\Program Files (x86)\Serviio\lib\slf4j-api.jar;C:\Program Files (x86)\Serviio\lib\slf4j-log4j12.jar;C:\Program Files (x86)\Serviio\lib\log4j.jar" "C:\Program Files (x86)\Serviio\plugins\CNN.groovy"
  
Line 49: Line 52:
 @echo "Testing %1 plugin" @echo "Testing %1 plugin"
 %GROOVY_HOME%\bin\groovy.exe -cp "%ServiioPath%\lib\serviio.jar;%ServiioPath%\lib\slf4j-api.jar;%ServiioPath%\lib\slf4j-log4j12.jar;%ServiioPath%\lib\log4j.jar;%ServiioPath%\lib\org.restlet.jar" "%1" %GROOVY_HOME%\bin\groovy.exe -cp "%ServiioPath%\lib\serviio.jar;%ServiioPath%\lib\slf4j-api.jar;%ServiioPath%\lib\slf4j-log4j12.jar;%ServiioPath%\lib\log4j.jar;%ServiioPath%\lib\org.restlet.jar" "%1"
 +
 +rm "If this did not compile, check the ServiioPatch in this file to make sure the Serviio folder is in Program Files (x86) or in Program Files."
 @pause @pause
 </code> </code>
Line 55: Line 60:
  
 __On Linux:__ __On Linux:__
-groovy -cp lib/serviio.jar:lib/slf4j-api.jar:lib/slf4j-log4j12.jar:lib/log4j.jar S4c.groovy+From your serviio install folder (eg /usr/bin/serviio-0.6.2) and with a S4c.groovy file installed in plugins:
  
-And of course you can use the [[http://forum.serviio.org/viewforum.php?f=22|Plugin development forum]] if you get stuck+<code> 
 +groovy -cp lib/serviio.jar:lib/slf4j-api.jar:lib/slf4j-log4j12.jar:lib/log4j.jar:lib/org.restlet.jar plugins/S4c.groovy 
 +</code>
  
 +Or with Java and groovy-all.jar:
 +
 +<code>
 +java -cp lib/serviio.jar:lib/slf4j-api.jar:lib/slf4j-log4j12.jar:lib/log4j.jar:lib/org.restlet.jar:lib/groovy-all.jar groovy.ui.GroovyMain plugins/S4c.groovy
 +</code>
 +
 +And of course you can use the [[http://forum.serviio.org/viewforum.php?f=22|Plugin development forum]] if you get stuck
 ====== Logging ====== ====== Logging ======
 Logging is configured through conf/log4j.xml.  You could change the priority of all packages to DEBUG but this is very verbose. Logging is configured through conf/log4j.xml.  You could change the priority of all packages to DEBUG but this is very verbose.
servio_plugins.1326215269.txt.gz · Last modified: 2012/01/10 17:07 by zip