Skip to Content.
Sympa Menu

baslinux - Re: [BL] mplayer plugin

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] mplayer plugin
  • Date: Tue, 31 Mar 2009 18:54:23 +1200

Message from Steven
===================
Sindi wrote:
>
> > Download the mplayerplug-in package. There are
> > several different versions. I am using version 3.31.
>
> I found version 2.66 at linuxpackages, for SW 10.0.

Linuxpackages also has version 3.31

> which means it needs to play movies and access URLs
> by name not number

It appears that the mplayer plug-in handles all the
interfacing and then pipes the stream to mplayer.

> the uclibc version (DNS problem)

DNS is not a problem with the plug-in. It appears
to do everything (DNS, playlist, etc.) before calling
mplayer.

> so please do provide your script.

The name of the script is play. Execute play instead
of mplayer. It parses the parameters and, if it finds
a URL, it uses nslookup to change it to a dotted quad.
It then calls mplayer (using the modified parameters).
------------------------------------------------------
n=$#
[ $n = 0 ] && exit
TARGET=`echo $* | cut -d" " -f$n`
let n=n-1
[ $n -ge 1 ] && PARAM=`echo $* | cut -d" " -f1-$n`

echo $TARGET | grep -q :// ; case $? in 0)

START=`echo $TARGET | cut -d/ -f1`
URL=`echo $TARGET | cut -d/ -f3`
END=`echo $TARGET | cut -d/ -f4-`

n=`echo $URL | cut -b1`
case $n in 1|2|3|4|5|6|7|8|9) ;;

*) echo $URL | grep -q :; case $? in 0)
URL1=`echo $URL | cut -d: -f1`
URL2=`echo $URL | cut -d: -f2`
NUM=`nslookup $URL1 | sed 1,4d | sed 's~Address: *~~'`

TARGET="$START//$NUM:$URL2/$END";;
*)
NUM=`nslookup $URL | sed 1,4d | sed 's~Address: *~~'`
TARGET="$START//$NUM/$END"
esac;;
esac;;
esac

exec /usr/local/bin/mplayer $PARAM $TARGET
----------------------------------------------------------

Cheers,
Steven




Archive powered by MHonArc 2.6.24.

Top of Page