Skip to main content
Jul 20, 2011 4:33 PM UTC
Answered

Handle a streaming timeout

Hello all,

how can i handle a streaming timeout (client stop stream to the server), i made an application which streaming webcam to my FMS, but how can i detect the client timeout ? Need code server side i think, but what

In order to call a webservice.

thanks a lot,

good night

    This topic is closed to new replies. Start a new post to keep the conversation going.
    SE_0208Correct answer
    Participating Frequently
    Jul 21, 2011 6:32 AM UTC

    You can define handlers as below on your server-side

    application.onPublish = function(myclient,mystream){

         //do whatever you want to when client starts publishing

    }

    application.onUnpublish = function(myclient,mystream){

         //do whatever you want to when client stops publishing

    }

    1 reply

    SE_0208Correct answer
    Participating Frequently
    Jul 21, 2011 6:32 AM UTC

    You can define handlers as below on your server-side

    application.onPublish = function(myclient,mystream){

         //do whatever you want to when client starts publishing

    }

    application.onUnpublish = function(myclient,mystream){

         //do whatever you want to when client stops publishing

    }

    Translate