Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
servio_plugins [2014/05/09 02:56] domtheo |
servio_plugins [2024/06/07 18:22] (current) |
Serviio plugins provide access to online sources such as Youtube or Regional Catchup TV services (e.g. BBC Iplayer). A DLNA client will be able to browse these streams in a similar fashion to local movies and music. | Serviio plugins provide access to online sources such as Youtube or Regional Catchup TV services (e.g. BBC Iplayer). A DLNA client will be able to browse these streams in a similar fashion to local movies and music. |
| |
This feature was made available as part of Serviio 0.6, the plugins [[http://www.serviio.org/index.php?option=com_content&view=article&id=42|plugins announcement]] page describes the feature in some detail as well as this [[serviio_groovy_plugins_explained|wiki page]]. | This feature was made available as part of Serviio 0.6, the plugins [[http://www.serviio.org/index.php?option=com_content&view=article&id=42|plugins announcement]] page describes the feature in some detail as well as this [[pc5dczc_groovy_plugins_explained|wiki page]]. |
| |
Serviio doesn't include any plugins as part of the install but you can... | Serviio doesn't include any plugins as part of the install but you can... |
| |
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). |
[[http://www.trimasjaya.com/pintu-dan-jendela/index.html|Pintu dan jendela]], [[http://www.tokobungasabana.com|Pintu dan jendela]], [[http://vamostech.com/gps-tracking|Gps tracking]] | |
| |
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. |
| |
__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" |
| |
@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> |
| |
__On Linux:__ | __On Linux:__ |
From your serviio install folder (eg /usr/bin/serviio-0.6.2) and with a s4c.groovy file installed in plugins: | From your serviio install folder (eg /usr/bin/serviio-0.6.2) and with a S4c.groovy file installed in plugins: |
| |
| <code> |
groovy -cp lib/serviio.jar:lib/slf4j-api.jar:lib/slf4j-log4j12.jar:lib/log4j.jar:lib/org.restlet.jar plugins/S4c.groovy | groovy -cp lib/serviio.jar:lib/slf4j-api.jar:lib/slf4j-log4j12.jar:lib/log4j.jar:lib/org.restlet.jar 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 | 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. |