summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffroy Van Cutsem <geoffroy.vancutsem@intel.com>2012-10-08 17:55:59 +0200
committerGeoffroy Van Cutsem <geoffroy.vancutsem@intel.com>2012-10-09 03:43:57 +0200
commitfb2d518a30ac0f22471dc2b409f840b3aeb23299 (patch)
tree8dde907ae4b9ca3f892f7e3a3d77c736aaf58750
parent795a693484977bc0b8159d54d9a8044f5010d03b (diff)
downloadivi-demo-config-fb2d518a30ac0f22471dc2b409f840b3aeb23299.tar.gz
ivi-demo-config-fb2d518a30ac0f22471dc2b409f840b3aeb23299.tar.bz2
ivi-demo-config-fb2d518a30ac0f22471dc2b409f840b3aeb23299.zip
Add function ('Button2') to skip to next video on the listsubmit/trunk/20121009.015147accepted/trunk/20121011.064709
Change-Id: I87cd2f40992c18ced7754dd073ced98bad0e8317
-rw-r--r--packaging/rundemo.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/rundemo.sh b/packaging/rundemo.sh
index 0de2a05..cd8c50c 100644
--- a/packaging/rundemo.sh
+++ b/packaging/rundemo.sh
@@ -49,7 +49,11 @@ case ${BUTTONVALUE} in
;;
"Button2")
#Run script 2 here
- echo "Button 2 script!"
+ echo "Skipping to the next video"
+ VIDEO_SCRIPT_PID=$[ $(pgrep -f $VIDEO_SCRIPT_NAME) ]
+ if [ $VIDEO_SCRIPT_PID != "0" ]; then
+ pkill -P $VIDEO_SCRIPT_PID gst-launch
+ fi
;;
"Button3")
#Run script 3 here