17/02/2008, 19:18
|
| | Fecha de Ingreso: abril-2006
Mensajes: 1.128
Antigüedad: 18 años, 7 meses Puntos: 33 | |
Re: Reproducir video en la web Para verdaderamente reproducir videos, hay que incluir este codigo dentro del codigo html:
<?php
echo "<OBJECT ID=\"MediaPlayer\" WIDTH=385 HEIGHT=412
CLASSID=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"
STANDBY=\"Loading Windows Media Player components...\"
TYPE=\"application/x-oleobject\">
<param name=\"SRC\" value=\"video.mpg\">
<PARAM NAME=\"FileName\" VALUE=\"\" valuetype=\"ref\" ref>
<param name=\"AudioStream\" value=\"1\">
<param name=\"AutoSize\" value=\"0\">
<param name=\"AutoStart\" value=\"0\">
<param name=\"AnimationAtStart\" value=\"0\">
<param name=\"AllowScan\" value=\"-1\">
<param name=\"AllowChangeDisplaySize\" value=\"-1\">
<param name=\"AutoRewind\" value=\"1\">
<param name=\"Balance\" value=\"0\">
<param name=\"BaseURL\" value>
<param name=\"BufferingTime\" value=\"5\">
<param name=\"CaptioningID\" value>
<param name=\"ClickToPlay\" value=\"-1\">
<param name=\"CursorType\" value=\"0\">
<param name=\"CurrentPosition\" value=\"-1\">
<param name=\"CurrentMarker\" value=\"0\">
<param name=\"DefaultFrame\" value>
<param name=\"DisplayBackColor\" value=\"0\">
<param name=\"DisplayForeColor\" value=\"16777215\">
<param name=\"DisplayMode\" value=\"1\">
<param name=\"DisplaySize\" value=\"2\">
<param name=\"Enabled\" value=\"-1\">
<param name=\"EnableContextMenu\" value=\"-1\">
<param name=\"EnablePositionControls\" value=\"-1\">
<param name=\"EnableFullScreenControls\" value=\"-1\">
<param name=\"EnableTracker\" value=\"-1\">
<param name=\"InvokeURLs\" value=\"-1\">
<param name=\"Language\" value=\"-1\">
<param name=\"Mute\" value=\"0\">
<param name=\"PlayCount\" value=\"0\">
<param name=\"PreviewMode\" value=\"0\">
<param name=\"Rate\" value=\"1\">
<param name=\"SAMILang\" value>
<param name=\"SAMIStyle\" value>
<param name=\"SAMIFileName\" value>
<param name=\"SelectionStart\" value=\"-1\">
<param name=\"SelectionEnd\" value=\"-1\">
<param name=\"SendOpenStateChangeEvents\" value=\"-1\">
<param name=\"SendWarningEvents\" value=\"-1\">
<param name=\"SendErrorEvents\" value=\"-1\">
<param name=\"SendKeyboardEvents\" value=\"0\">
<param name=\"SendMouseClickEvents\" value=\"0\">
<param name=\"SendMouseMoveEvents\" value=\"0\">
<param name=\"SendPlayStateChangeEvents\" value=\"-1\">
<param name=\"ShowCaptioning\" value=\"0\">
<param name=\"ShowControls\" value=\"-1\">
<param name=\"ShowAudioControls\" value=\"-1\">
<param name=\"ShowDisplay\" value=\"-1\">
<param name=\"ShowGotoBar\" value=\"0\">
<param name=\"ShowPositionControls\" value=\"0\">
<param name=\"ShowStatusBar\" value=\"-1\">
<param name=\"ShowTracker\" value=\"-1\">
<param name=\"TransparentAtStart\" value=\"0\">
<param name=\"VideoBorderWidth\" value=\"5\">
<param name=\"VideoBorderColor\" value=\"333333\">
<param name=\"VideoBorder3D\" value=\"-1\">
<param name=\"Volume\" value=\"-1\">
<param name=\"WindowlessVideo\" value=\"-1\">
<EMBED TYPE=\"application/x-mplayer2\" SRC=\"\"
NAME=\"MediaPlayer\"
WIDTH=320
HEIGHT=240> </EMBED></OBJECT>
</p>";
?>
Donde dice:
<param name=\"SRC\" value=\"video.mpg\">
se pone el video que se quiere reproducir.
<param name=\"AutoStart\" value=\"0\">
o para que lo inicie el usuario y 1 para que se inicie automaticamente
<param name=\"AutoRewind\" value=\"1\">
0 para que cuando termine NO reinicie y 1 para que si reinicie.
Saludos
Y espero les ayude
Franco
P.S. Simplemente introduzcan el codigo como se presenta
dentro de las etiquetas <body>...</body> |