Skip to main content
Oct 31, 2011 3:38 PM UTC
Question

FMS 4 FCUnpublish call external program

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Oct 31, 2011 4:27 PM UTC

    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.

    Translate
    Nov 1, 2011 8:28 AM UTC

    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

    Translate