How can I listen for trace() statements on the Flash Media Server Administration API? -
i connected flash media server administration api via rtmpe on port 1111 , i'd monitor calls trace() server side actionscript code.
here's how it's done:
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" ] ); }
Comments
Post a Comment