3 if command -v jq &> /dev/null && command -v gst-launch-1.0 &> /dev/null;
7 [ "x$1" = "x" ] && return 1;
9 local BANDWIDTH="2479000"
12 CONTENT_URL=$(wget -q "${1}?json" -O - | jq -r '.video .contentUrl')
13 if [ "x$CONTENT_URL" != "x" ];
15 gst-launch-1.0 playbin connection-speed="$BANDWIDTH" uri="$CONTENT_URL"