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

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -