Comunidad de diseño web y desarrollo en internet online

Problema con NetStatusEvent y onMetaData

Citar            
MensajeEscrito el 21 Jul 2011 09:24 pm
Estoy haciendo un reproductor de video. Necesito controlar los eventos q puedan surgir al reproducir un video y tambien saber su duracion. El problema que tengo es que la funcion onMetaData funciona solo si no esta el listener NetStatusEvent.NET_STATUS. Necesito q funcionen ambos. Espero q alguien me pueda ayudar. muchas gracias!!

Código ActionScript :

nc = new NetConnection()
nc.connect(null);
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, onStatus);
ns.bufferTime = 5;
         
myVideo = new Video();          
myVideo.attachNetStream(ns);      
         
customClient.onMetaData = onMetadata;
customClient.onCuePoint = onCuePoint;
         
ns.client = customClient;

urlSource = URLSource;
addChild(myVideo);

Por exekiel21

Claber

164 de clabLevel



Genero:Masculino  

programador

firefox
Citar            
MensajeEscrito el 22 Jul 2011 07:38 pm
Ya no se molesten,,, pude hacerlo funcionar. Mil gracias!! ^,^

Por exekiel21

Claber

164 de clabLevel



Genero:Masculino  

programador

firefox
Citar            
MensajeEscrito el 22 Jul 2011 08:16 pm
Tip: si cuentas cual fue el problema ayudarás a otros a los que le pase lo mismo

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

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