diff options
Diffstat (limited to 'examples/watchonvdr.sh')
-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" |