Comunidad de diseño web y desarrollo en internet online

implentacion

Citar            
MensajeEscrito el 21 Ene 2007 03:28 pm
como puedo implementar este codigo?

var conexion:NetConnection = new NetConnection();
conexion.connect(null);
var stream:NetStream = new NetStream(conexion);
mi_video.attachVideo(stream);
stream.play("video.flv");

pero en php? soy nuevo con esto. gracias por su ayuda!

Por josedbig

5 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Ene 2007 04:16 pm
Ese codigo no lo harás en php, lo que puede hacer php en tu caso es pasarte el nombre del archivo a cargar. En tu ejemplo "video.flv". La manera más sencilla como puedes hacerlo es usando LoadVars de flash para cargar datos de php.

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox
Citar            
MensajeEscrito el 21 Ene 2007 09:04 pm
ahora lo estoy implememtando de esta manera:

Código :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>prueba_video_striming</title>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}
</script>
</head>

<body onload="MM_CheckFlashVersion('6,0,79,0','El contenido de esta p&aacute;gina requiere una versi&oacute;n m&aacute;s reciente de Macromedia Flash Player. &iquest;Desea descargarla ahora?');">
<table width="1143" height="510" border="1">
  <tr>
    <td height="504"><div align="center">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" width="150" height="120" id="FLVPlayer">
        <param name="movie" value="FLVPlayer_Streaming.swf" />
        <param name="salign" value="lt" />
        <param name="quality" value="high" />
        <param name="scale" value="noscale" />
        <param name="FlashVars" value="&MM_ComponentVersion=1&serverName=localhost&skinName=Clear_Skin_3&appName=primera%20fila/prueba_video.flv&streamName=prueba_video&isLive=false&bufferTime=0&autoPlay=true&autoRewind=false" />
        <embed src="FLVPlayer_Streaming.swf" flashvars="&MM_ComponentVersion=1&serverName=localhost&skinName=Clear_Skin_3&appName=primera%20fila/prueba_video.flv&streamName=prueba_video&isLive=false&bufferTime=0&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="150" height="120" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />      
</object>
    </div></td>
  </tr>
</table>
</body>
</html>



esto es lo que trato de hacer pero no eh podido...
insertar un video striming en una pagina de php.
se carga la pagina pero no sale nada de video.

de verdad gracias por si ayuda....

Por josedbig

5 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.