View Full Version : Video-Controls in JS???
nickss
07-19-2002, 01:10 PM
I've searched in the forum, but I found no answer. How can I imitate the control-buttons for STOP or PLAY for a video- or a audio-file? It is possible?:confused:
x_goose_x
07-19-2002, 01:59 PM
<OBJECT ID="mplayer" WIDTH=160 HEIGHT=240
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="c:\file.mpg">
<PARAM NAME="AutoStart" VALUE="False">
</OBJECT>
<a href="#" onclick="document.getElementById('mplayer').stop();">stop</a>
<a href="#" onclick="document.getElementById('mplayer').pause();">pause</a>
<a href="#" onclick="document.getElementById('mplayer').play();">play</a>
If you want to read if it's playing
document.getElementById('mplayer').playstate
0 stop
1 pause
2 play
nickss
07-22-2002, 11:58 AM
That is not what I mean. I want my own buttons with a JS-function. At weekend I tried this:
----------------------------------------------
function playmov() {
window.document.movie.play();
}
function stopmov() {
window.document.movie.stop();
}
-----------------------------------------------
The video-file has a NAME=movie. And it works fine with AVI und MPG.
But it doesn't work with MOV (Quicktime).
:confused: ?????????????????
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.