Comunidad de diseño web y desarrollo en internet online

accion repetir video flv

Citar            
MensajeEscrito el 13 Feb 2009 02:01 pm
hola gente, como estan?

bueno vengo con una consulta :lol: estoy con un temita de unos videos y uso un flv player q descargue navengando por google. :s

ahora bien, este player funciona correctamente, tiene un btn de play y otro de pausa mi problema es que al terminar el video no vuelve a reproducirlo ni automaticamente ni haciendo click en play :s

como puedo crear un btn para que haga eso? o como agrego una accion para q se reproduzca automaticamente de nuevo al terminar dicho video?.

este el code q tengo:

Código :

var netConex:NetConnection;
var netStrea:NetStream;
var total:Number = 1;
var w:Number = mcTime._width;


netConex = new NetConnection();
netConex.connect(null);
netStrea = new NetStream(netConex);
netVideo.attachVideo(netStrea);

netStrea.play("mivideo.flv");
netStrea.onMetaData = function(info:Object) {
    total = info.duration;
   mcTime.onEnterFrame = iniProgress;
   btPlay._visible = false;
};

function iniProgress() {
   txtTimer.text = seg2min(netStrea.time)+" / "+seg2min(total);
   mcTime._width = w*(netStrea.time/total);
   mcLoad._width = w*(netStrea.bytesLoaded/netStrea.bytesTotal);
}
function seg2min(num:Number) {
   var min:Number = Math.floor(num/60);
    var seg = Math.floor(num%60);
    if (seg < 10) {
       seg = "0"+seg;
    }
    return min+":"+seg;
}

btPlay.onRelease = function() {
   netStrea.pause(false);
   btPlay._visible = false;
}
btPause.onRelease = function() {
   netStrea.pause(true);
   btPlay._visible = true;
}

Por Rakin

Claber

140 de clabLevel



 

firefox
Citar            
MensajeEscrito el 16 Feb 2009 12:48 pm
nadie me puede tirar un cable :( no logro sacarlo

Por Rakin

Claber

140 de clabLevel



 

firefox
Citar            
MensajeEscrito el 16 Feb 2009 03:09 pm
Hmmm no creo que se pueda con actionscript, pero se puede con el componente FLVPlayback y un codigo de actionscript

Por Brundows

131 de clabLevel



 

msie7

 

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