Skip navigation
hpevju
Currently Being Moderated

How do I log stream start from server side script

Jul 18, 2013 7:49 AM

Tags: #fms #scripting #serverside

The following code works with clients that call getStreamLength. The newest JW player does not, how do I get hold of the streamname when the client does not call getStreamLength?

 

application.onConnect = function(client)

{

          trace("LogStart 1 for " + client.streamname + " name " + client.id)

    client.getStreamLength = function( streamName ) {

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

                    return Stream.length( streamName );

    }

          this.acceptConnection(client);

}

 

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