diff options
| author | Antti Ajanki <antti.ajanki@iki.fi> | 2010-10-30 19:30:44 +0300 |
|---|---|---|
| committer | Antti Ajanki <antti.ajanki@iki.fi> | 2010-10-30 19:30:44 +0300 |
| commit | 52a43efdde8e4e1f967fabae6720414eab583c43 (patch) | |
| tree | ae646bd6b77ce4dac5af80133669fe3b02a1d436 /examples | |
| parent | 9e969ffb9434071be850269e439b1f6bee23982a (diff) | |
| download | vdr-plugin-webvideo-52a43efdde8e4e1f967fabae6720414eab583c43.tar.gz vdr-plugin-webvideo-52a43efdde8e4e1f967fabae6720414eab583c43.tar.bz2 | |
example script for the new SVDRP play command
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/watchonvdr.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/watchonvdr.sh b/examples/watchonvdr.sh new file mode 100755 index 0000000..5fe5e65 --- /dev/null +++ b/examples/watchonvdr.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# Plays a video on VDR. Give the video page address as parameter. +# +# Pre-requisites: svdrpsend.pl (from VDR) +# +# Example usage: +# watchonvdr.sh http://www.youtube.com/watch?v=n8qHOnlbvRY + +# Put your SVDRP host and port here +VDR_HOST=127.0.0.1 +VDR_PORT=2001 + +if [ "x$1" = "x" ]; then + echo "video page URL expected" + exit 1 +fi + +svdrpsend.pl -d $VDR_HOST -p $VDR_PORT "plug webvideo play $1" |
