Tema: video + html
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/02/2003, 23:28
Avatar de cvander
cvander
Moderador
 
Fecha de Ingreso: abril-2001
Ubicación: Ciudadano del mundo
Mensajes: 13.638
Antigüedad: 23 años
Puntos: 1792
Incluye el video en el HTML con esto:

<OBJECT ID="MediaPlayer1" width=160 height=112
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase=
"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="http://webserver/path/your-file.asx">
<PARAM NAME="ShowControls" VALUE="False">
<PARAM NAME="ShowStatusBar" VALUE="True">
<EMBED type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
SRC="http://webserver/path/your-file.asx"
name="MediaPlayer1"
width=160
height=112
ShowStatusBar=true
ShowControls=false>
</EMBED>
</OBJECT>


y luego los botones:

<FORM NAME="myButtons">
<INPUT NAME="btnPlay" TYPE="Button" VALUE="Play" onclick="document.MediaPlayer1.Play();">
<INPUT NAME="btnPause" TYPE="Button" VALUE="Pause" onclick="document.MediaPlayer1.Pause();">
<INPUT NAME="btnStop" TYPE="Button" VALUE="Stop" onclick="document.MediaPlayer1.Stop();">
</FORM>



Puedes cambiar el input type a "image" para usar los gifs.

Este y otros ejemplos similares los encuentras en msdn:
http://msdn.microsoft.com/downloads/...ns/default.asp
__________________
- Christian Van Der Henst
Platzi