summaryrefslogtreecommitdiff
path: root/Script
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-06 17:36:05 +0100
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-10 15:28:53 +0100
commit2f3deede9240f192b540266a923b98425d072f92 (patch)
tree3dadad31ef2f556cf7d275f872f8b831ab1351b6 /Script
parentac4f1b6b5e6021c5ef6e9e3033e06215d4ba1274 (diff)
downloaddesktop-skin-2f3deede9240f192b540266a923b98425d072f92.tar.gz
desktop-skin-2f3deede9240f192b540266a923b98425d072f92.tar.bz2
desktop-skin-2f3deede9240f192b540266a923b98425d072f92.zip
Change-Id: If3a63307606c508b5816ea3cbe603c0198d59005 Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Diffstat (limited to 'Script')
-rwxr-xr-xScript/launch_video.sh3
-rwxr-xr-xScript/launch_video2.sh21
2 files changed, 21 insertions, 3 deletions
diff --git a/Script/launch_video.sh b/Script/launch_video.sh
index 5d1ebb5..5b1293b 100755
--- a/Script/launch_video.sh
+++ b/Script/launch_video.sh
@@ -7,9 +7,6 @@
touch $HOME/gstvid-pid
alreadyrunning=`cat $HOME/gstvid-pid`
-#URL=http://intel07.vannes/~sdx/Downloads/Amazing%20Nature%20full%20HD%20720p.mp4
-#URL=http://intel07.vannes/~sdx/Videos/big_buck_bunny_480p_surround-fix.avi
-#URL=http://intel07.vannes/~sdx/Videos/caminandes_480p.avi
URL=file:///usr/share/media/videos/AmazingNature_480p.mp4
if [ $(echo $alreadyrunning | wc -w) -lt 3 ] ; then
diff --git a/Script/launch_video2.sh b/Script/launch_video2.sh
new file mode 100755
index 0000000..017fb0a
--- /dev/null
+++ b/Script/launch_video2.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+#
+# Launch web cam
+#
+
+touch $HOME/gstvid-pid
+alreadyrunning=`cat $HOME/gstvid-pid`
+
+URL=file:///usr/share/media/videos/Caminandes_1080p.mp4
+
+if [ $(echo $alreadyrunning | wc -w) -lt 1 ] ; then
+ echo "create new"
+ gst-launch-1.0 playbin uri=$URL &
+ echo $! >> $HOME/gstvid-pid
+else echo "already running"
+ for x in $alreadyrunning; do kill -9 $x; done
+ rm -rf $HOME/gstvid-pid
+fi
+
+