NetStream status banding error !!!

1 view
Skip to first unread message

JJ

unread,
Apr 17, 2008, 2:24:08 AM4/17/08
to Milenia Grafter
the NetStream.onStatus not work !!
//grafter server client code

var myCamera:Camera = Camera.get();
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://localhost/APP.demo2");
my_nc.onStatus = function(info) {
trace("connection Status A="+info.code);
if (info.code == "NetConnection.Connect.Success") {
res = new NetStream(my_nc);
res.attachVideo(myCamera);
res.attachAudio(myMic);
res.publish("video_9", "live");
}
if (info.code == "NetStream.Publish.Success") {
trace("connection Status B="+info.code);
}
};
res.onStatus = function(info) { ////why this not trigered???
trace("stream Status="+info.code);
if (info.code == "NetStream.Publish.Success") {
a_mc.attachVideo(myCamera);
}
};

Milan Toth

unread,
Apr 17, 2008, 4:41:37 AM4/17/08
to milenia...@googlegroups.com
Hi,

in version 0.5 beta it isn't implemented, try the actual version from
the repository, or wait for the weekend, i will put up a working .8
beta anyway.

JJ

unread,
Apr 22, 2008, 11:35:41 PM4/22/08
to Milenia Grafter
where can I get a actual version ?
> > };- 隐藏被引用文字 -
>
> - 显示引用的文字 -
Reply all
Reply to author
Forward
0 new messages