Comunidad de diseño web y desarrollo en internet online

NetStream, video en loop se corta

Citar            
MensajeEscrito el 08 Feb 2013 06:01 pm
Buenas amigos, estoy intentando hacer un videoloop, basicamente el problema es que cuando vuelve a comenzar el video se nota un corte.. nose si es que vuelve a cargar o que, les paso el codigo, y les comento lo que noto:

Código :

connection = new NetConnection();
         connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
         connection.connect(null);

      private function netStatusHandler(e:NetStatusEvent):void
      {
         trace(e.info.code)
         switch (e.info.code)
         {
            case "NetConnection.Connect.Success":
               initVideo();
            break;
            case "NetStream.Play.Start":
                  
               break;
            case "NetStream.Play.Stop":
                  ns.seek(0);
            break;
         } 
      }
      private function initVideo():void
      {
         stream = new NetStream(connection);
         stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
         stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
         stream.client = new CustomClient();
         stream.inBufferSeek = true;
         stream.play(vidurl);
         
         attachNetStream(stream);


La peli comienza, y vuelve a empezar, pero "refresca"... lo que note es que antes de hacer el complete, unos 5 segundos antes veo un "NetStream.Buffer.Full", lo cual deduzco que este es el problema, creerira que limpia el video del buffer, y cuando hace el seek lo vuelve a iniciar, tienen idea como resolver esto? como desactivar el flush... desde ya gracias. les dejo el link para que vean el salto

hectorernesto.com.ar/webs/videotest/Main.swf

Por D0M41N

56 de clabLevel



Genero:Masculino  

Argentina

chrome
Citar            
MensajeEscrito el 09 Feb 2013 05:48 pm
En realidad antes de hacer el stop hace un NetStream.Buffer.Flush .... mira si puedes hacer el seek antes que llegue a hacer el stop, por ejemplo en el Flush (traza todos los eventos para encontrar el adecuado)

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.