Skip to main content
October 31, 2011
Question

FMS 4 FCUnpublish call external program

  • October 31, 2011
  • 1 reply
  • 975 views

Is it possible with server-side scripting for FMS to call an external program once a stream has been unpublished? Any links would be appreciated. Thanks.

    This topic has been closed for replies.

    1 reply

    October 31, 2011

    Within main.asc I have added;

    application.onUnpublish = function(client, stream)

    {

        trace("Handling unpublish request for source stream: " + stream.name);

    }

    I just need to know now how to call an exernal file/program with stream.name as an argument.

    November 1, 2011

    I've used the File Class from http://help.adobe.com/en_US/flashmediaserver/ssaslr/flashmediaserver_4.5_sslr.pdf to create a file each time an unPublish event is thrown. Then use an external program to monitor a directory where these log files get stored.

    Where there is a will there is always a way