Flash AS3 RTMP Streaming Video Example ·

Jul 06, 2010 Download the files - Flash CS3 minimum



!http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif(Get Adobe Flash player)!:http://adobe.com/go/getflashplayer

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 ::)

---

Leave Zeus Perez a comment...











Textile Help

"Click Preview" then "Submit" to leave a comment




   

Real Time Web Analytics