Skip to main content
July 20, 2011
Answered

Handle a streaming timeout

  • July 20, 2011
  • 1 reply
  • 472 views

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 has been closed for replies.
    Correct answer SE_0208

    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
    July 21, 2011

    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

    }