2 # Changes mozilla supplied mpeg:// url to:
3 # a) http:// for xine/mplayer http playback over httpd
5 # b) directory plus basename for playback over mounted filesystem
7 # mplayer can use httpd Range: to seek within file. no slider in xine http://
9 # xine player options can be set to:
10 # -V xvmc overrides to xvmc mode; -p starts playback;
11 # --enqueue adds to mrl list and starts playing if not loaded yet
13 #PLAYOPT="-p -V xvmc --enqueue"
14 PLAYOPT
="-p -G960x544"
16 # mplayer options set to xvmc mode playback
18 #PLAYOPT="-vo xvmc -vc ffmpeg12mc"
20 # replace mpeg:// with http:// for URL
23 CUT1
=`expr "$URI" : 'mpeg://'`
25 CUT2
=`expr index "$HOSTFILE" '/'`
28 # change this to local mount used for your remote capture directory
32 # uncomment this for playback over local mount directory/filename.ts
33 $PLAYER $PLAYOPT $PLAYFILE
34 # uncomment this for playback over HTTP
35 #$PLAYER $PLAYOPT $PLAYURL