Hi All,

First of all, thanx for all the great job you made on Red5 !

I got some pb when i m trying to seek a streaming FLV file generated
by Red5 : it s bringing me to the very beginning !

My code is following ;)

Cheers,
Philip

PS : is the Red5 v.0.5 gonna be released soon ?




//to begin recording the video stream
on(press) {
 var myCam:Camera = Camera.get();
 myCam.setKeyFrameInterval(1);

 var nc:NetConnection = new NetConnection();
 nc.connect("rtmp://127.0.0.1/oflaDemo");
 var ns:NetStream = new NetStream(nc);

 ns.attachVideo(myCam);
 ns.publish("example","record");
}



//to stop recording
on(press) {
 ns.close();
}


//to start reading the file
on(press) {
 var nc:NetConnection = new NetConnection();
 nc.connect("rtmp://127.0.0.1/oflaDemo");
 var ns:NetStream = new NetStream(nc);
 myVideo.attachVideo(ns);
 ns.play("example.flv");
}



//not working : trying to seek with NetStream.seek(nbSec)
ns.seek(15);

//not working as well : trying to seek with NetStream.play("myfile.flv",nbSec)
ns.play("example.flv",15);


-- 
Philippe Chaurand
+33 (0) 6 74 58 06 58
www.anomes.com

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to