summaryrefslogtreecommitdiff
path: root/plugins/xine
diff options
context:
space:
mode:
authorroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
committerroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
commit0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch)
tree11517ce0d3d2977c6732b3aa583b0008083e0bd3 /plugins/xine
downloadx-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz
x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2
hello world
Diffstat (limited to 'plugins/xine')
-rw-r--r--plugins/xine/plugin.sh66
-rw-r--r--plugins/xine/xineplayer.sh44
2 files changed, 110 insertions, 0 deletions
diff --git a/plugins/xine/plugin.sh b/plugins/xine/plugin.sh
new file mode 100644
index 0000000..5254728
--- /dev/null
+++ b/plugins/xine/plugin.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis)
+# von Marc Wernecke - www.zulu-entertainment.de
+# 12.04.2009
+#
+# vdr-xine
+
+# defaults
+source ./../../x-vdr.conf
+source ./../../setup.conf
+source ./../../functions
+
+WEB="http://home.vrweb.de/~rnissl/vdr-xine-0.9.1.tgz"
+VERSION="xine-0.9.1"
+LINK="xine"
+
+VAR=`basename $WEB`
+DIR=`pwd`
+
+# plugin entfernen
+function clean_plugin() {
+ cd $SOURCEDIR/VDR/PLUGINS/src
+ rm -rf $LINK
+ rm -rf $VERSION
+ rm -f $VDRLIBDIR/libvdr-$LINK.so*
+ rm -rf $VDRCONFDIR/plugins/xine
+ log "cleaning $LINK"
+}
+
+# plugin installieren
+function install_plugin() {
+ download_plugin
+ extract_plugin
+ cd $SOURCEDIR/VDR/PLUGINS/src
+ rm -f $LINK
+ ln -vfs $VERSION $LINK
+ patch_plugin
+
+ ## plugin specials - start ##
+ cd $SOURCEDIR/VDR/PLUGINS/src/$LINK
+ # Kopieren der "loops"
+ mkdir -p $VDRCONFDIR/plugins/xine
+ find . -name *.mpg -exec cp -v \{} $VDRCONFDIR/plugins/xine \;
+ # link fuer den Player
+ ln -vfs $(pwd)/xineplayer $PREFIX/bin/xineplayer
+
+ # xinplayer.sh fuer divx und dvd
+ if [ -f $DIR/xineplayer.sh ]; then
+ cp -f $DIR/xineplayer.sh $VDRSCRIPTDIR
+ chown $VDRUSER:$VDRGROUP $VDRSCRIPTDIR/xineplayer.sh
+ chmod 0744 $VDRSCRIPTDIR/xineplayer.sh
+ fi
+ ## plugin specials - ende ##
+}
+
+# plugin commands
+if [ $# \> 0 ]; then
+ cmd=$1
+ cmd_plugin
+else
+ install_plugin
+ log "install-plugin fuer $VERSION ist fertig"
+fi
+
+exit 0
diff --git a/plugins/xine/xineplayer.sh b/plugins/xine/xineplayer.sh
new file mode 100644
index 0000000..e79d541
--- /dev/null
+++ b/plugins/xine/xineplayer.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+#
+# xineplayer.sh - 0.0.1
+# Marc Wernecke - www.zulu-entertainment.de
+# 28.09.2005
+#
+# This script is called from VDR to start xineplayer
+#
+# argument 1: the file to play
+# argument 2: (optional) the phrase SLAVE if SlaveMode is enabled
+# argument 3: (optional) the phrase AID x to select audio stream x
+
+# Load defaults
+. /etc/default/vdr
+
+# Where to find xineplayer
+XINEPLAYER="xineplayer"
+
+# Where to find DVD/VCD dummy files? (just a fake and empty text file for the plugin)
+DVDFiles="$MEDIADIR/DVD-VCD"
+
+# What is your DVD-ROM device ?
+DVD="/dev/dvd"
+
+#####################
+
+FILE=$1
+
+if test \( "$FILE" == "$DVDFiles/DVD" -o "$FILE" == "$DVDFiles/VCD" \) -a -n "$DVDFiles" -a -n "$DVD"; then
+ if test "$FILE" == "$DVDFiles/DVD"; then
+ CMDLINE="$XINEPLAYER -dvd-device $DVD dvd://"
+ fi
+ if test "$FILE" == "$DVDFiles/VCD"; then
+ CMDLINE="$XINEPLAYER -cdrom-device $DVD vcd://"
+ fi
+ unset FILE
+elif test "${SUFFIX}" == ".cue"; then
+ CMDLINE="$XINEPLAYER -vcd 2 -cuefile"
+else
+ CMDLINE="$XINEPLAYER $FILE"
+fi
+
+exec $CMDLINE
+exit \ No newline at end of file