2014-10-02, 12:06
Here's a modified version of the play script that works on OpenELEC (and may still work on Raspbmc): http://sprunge.us/eZQO
diff:
Using this script, the stream plays fine on OpenELEC #1001, same as in post #1466 along with repeated network/RBSP messages.
diff:
Code:
--- a/play 2014-10-02 11:01:58.118474962 +0100
+++ b/play 2014-10-02 11:01:14.419323341 +0100
@@ -5,13 +5,15 @@
local strlen=${#string}
local encoded=""
- for (( pos=0 ; pos<strlen ; pos++ )); do
+ pos=0
+ while [ $pos -lt $strlen ]; do
c=${string:$pos:1}
case "$c" in
[-_.~a-zA-Z0-9] ) o="${c}" ;;
- * ) printf -v o '%%%02x' "'$c"
+ * ) o="$(printf '%%%02x' "'${c}")" ;;
esac
- encoded+="${o}"
+ encoded="${encoded}${o}"
+ pos=$((pos+1))
done
echo "${encoded}" # You can either set a return variable (FASTER)
REPLY="${encoded}" #+or echo the result (EASIER)... or both... :p
Using this script, the stream plays fine on OpenELEC #1001, same as in post #1466 along with repeated network/RBSP messages.