From 52a43efdde8e4e1f967fabae6720414eab583c43 Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Sat, 30 Oct 2010 19:30:44 +0300 Subject: example script for the new SVDRP play command --- examples/watchonvdr.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 examples/watchonvdr.sh 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" -- cgit v1.2.3