Hi Graeme,
I wanted to know when my live encoder connects and disconnects from my FMS server, so in the main.asc I wrote the following;
application.onPublish = function( client, stream )
{
if (stream.name == "livestream") {
trace("The stream is now publishing");
}
};
application.onUnpublish = function( client, stream )
{
if (stream.name == "livestream") {
trace("The stream has now stopped publishing");
}
};
this works perfectly! I'm able to view the status (i.e. the trace statements) automatically in the FMS inspector whenever I connect and disconnect the live stream from the encoder.
But how do I get this to display in a textfield in flash?
Much, much thanks in advance.