#!/bin/sh if [ $# -lt 1 ]; then echo "$0 " exit 1 fi URI="$1" shift # Look at the URI. If it starts with %s:// then treat as a uri, otherwise a file RES=`echo "$URI" | egrep '^[a-zA-Z]+://'` if [ $? ]; then URI="file://`pwd`/$URI" fi if [ $# -ge 1 ]; then echo "Playing URI $URI with playbin and params $@" else echo "Playing URI $URI with playbin" fi gst-launch-0.10 $@ playbin uri="$URI"