Flash AS3 RTMP Streaming Video Example ·
Jul 06, 2010 Download the files - Flash CS3 minimum
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.setBufferTime(10);
ns. {
trace(info.code);
if(info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
} if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if(info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
}
ns.play("http://pdl-demo.akamai.com.edgesuite.net/pdl/will/nocc_320x180_548kbps.flv");
//rtmp://domain/app/streamname
Thanks to the ever amazing Flash Pro Alejandro Delgado for giving me the code and helping me get this to work!
— Zeus ::)