2,275
社区成员
发帖
与我相关
我的任务
分享
var mc1:NetConnection = new NetConnection();
var ns1:NetStream = new NetStream();
function playVideo1() {
mc1.connect("rtmp://localhost:1111/test1", "root", "root");
mc1.onStatus = function (objIn) {
trace (objIn.code);
if (objIn.code != "NetConnection.Connect.Success") {
playVideo1();
}
ns1 = new NetStream (mc1);
ns1.play("0802.flv");//
mv1.attachVideo(ns1);
};
}
playVideo1();