Skip navigation
hpevju
Currently Being Moderated

What event does FMS server fire when a clients starts/stops streaming

May 13, 2013 2:40 AM

Tags: #4.5.1

I want to log activities on my stream (both live and recorded) using a web service I've made. In the FMS server side AS3 documentation I can find events for onconnect/ondisconnect, but that is not quite what I want. What I want is and event that fires when a user start viewing a stream, or stops viewing.  Today I'm using the following code:

 

application.onConnect = function(client)

{

          client.getStreamLength = function( streamName ) {

                    LogStart('', this.id, this.ip, streamName);

                    return Stream.length( streamName );

    }

   this.acceptConnection(client);

}

 

However not all clients uses the getStreamLength, so this does not realy work. The problem is that in the "onConnect" even I do not have access to the streamname, else I think I could have used this event.

 

Thanks in advance

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points