blob: 5fe5e6516b7ba4affa014cc87e7e8e528001d617 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"
|