(i added the images i made to my webspace), i forgot before
the files are
sliderbar.gif
slidergrip.gif
vbg.gif
vbs.gif
------------
http://home.comcast.net/~cabbit/control.html
ready for the shreader ^^
first off i would like to say this is highly compatible with
browsers that don't have javascript. the scripts work in both
Mozilla & Internet Explorer (it took 3 days to build a simple
progress bar) the only incompatibility in the script comes from
the handling of the a few events for the goto field, mozilla
doesn't support the events to do sanity checks on characters
as they are entered. wasn't sure how to update the position
or volume so see what i did below...
the progress bar and goto field's values will change as time
passes to simulate what the real progress bar is doing in mpc,
currently i haven't implemented an auto update, but when the
progress bar gets to the end of the bar it will refresh the
page. i would recommend for Live files (files with unknown
length) that an eta is always set (to say 20 seconds??)
otherwise the page will never refresh. The progress bar &
goto field are updated for smooth movement of the progress
bar (refresh 300->1000 milliseconds, its's dynamic) files of
length 0 are treated as live.
all but 1 button is included and that is pause. instead i have
used pause/play
here are the variable that would make life easy (and are
currently in the file).
[statestring]
[currentpositionstring] in the format found in status bar
[lengthstring] if file is a Live set string to "Live"
[length] file length in seconds (Live = -1)
[namestring] name of file playing
[filepathstring] location of file playing
[curpos] current position of playback
[state] state of playback (paused = 1, playing =
2, stopped = 0, Buffering %x = (-x-1) ) (x=(-1to-101))
[pbr] rate of playback, any float, setting to 0 is
the same as state=0
[eta] reload of the page, use for when the client
is buffering (eta in seconds)
[sound] (nosound=-1, muted=0, notmuted = 1)
[volume] (0->255)
post for seek to position
wm_command=-1
position=hh:mm:ss.ffff
post for volume update
wm_command=-2
volume=0->255
if you want me to change the volume and position posting it
would only take a min or too.