Home | Search | Login | RSS
We have 1077 members and counting!
Next Page

1

Previous Page

Thread: FMS application data in Flash

Created on: 05/26/11 02:48 PM

Replies: 1

amyzavier





Joined: 05/26/11

Posts: 1

FMS application data in Flash
05/26/11 2:48 PM

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.

Link | Top | Bottom

Graeme





Joined: 10/18/07

Posts: 1592

RE: FMS application data in Flash
05/29/11 8:14 PM

If you want to make a call to the client (a flash app) from the server then you can use broadcastMsg() or call() on the client object that you want to make the call on. There's a tutorial that covers that in the tutorials page too.

Link | Top | Bottom

Next Page

1

Previous Page

New Post

Please login to post a response.