我通过端口1111上的RTMPE连接到Flash Media Server管理API,我想监视来自服务器端动作脚本代码的对trace()的调用。
答案 0 :(得分:0)
以下是它的完成方式:
var netConnection : NetConnection = new NetConnection();
netConnection.connect( "rtmpe://fmsuri:1111", adminUsername, adminPassword );
var netStream : NetStream = new NetStream( netConnection );
netStream.client = { onLog: handleLog };
netStream.play( "logs/application/appName/instanceName", -1 );
function handleLog ( info : Object ) : void {
trace( info[ "description" ] );
}
答案 1 :(得分:0)