2005/09/22 | 客户端重启FlashServer的方法
类别(FMS) | 评论(0) | 阅读(333) | 发表于 08:25
//转载自http://www.flashcom.cn/blog/
admin_nc = new NetConnection();
admin_nc.connect('rtmp://IP:1111/admin','user','passwd');
admin_nc.call('stopServer', new stopServer());
admin_nc.call('startServer', new startServer());
serviceFlag = "stop";
admin_nc.call("stopServer", new stopServer());
if(info.code == "NetConnection.Call.Success" && serviceFlag == "stop")
{
admin_nc.call("startServer", new startServer());
}
0

评论Comments

日志分类
首页[186]
Flash[84]
FMS[41]
AIR[2]
ASP[11]
作品区[12]
其他[36]