Skip to main content
Participant
April 29, 2010
Question

Stopping a Stream

  • April 29, 2010
  • 1 reply
  • 574 views

When broadcasting a stream, is it possible to be able to just cut it completely via a part of a video switcher? I have developed a working switcher, but I have not passed into a working theory of how I could be able to disconnect/reconnect a particular feed.

    This topic has been closed for replies.

    1 reply

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    April 30, 2010

    Do you want to act as an administrator for an application who can disconnect a particular client completely? Is the client publisher or subscriber? What type of client is that? may be you have to elaborate a bit.

    Regards,

    Janaki L

    rmenard3Author
    Participant
    April 30, 2010
    Janaki, maybe I should clarify and explain what it is I am trying to accomplish. I have an application that publishes prerecorded FLV content into a stream. I would like to actively disconnect or unpublish the stream as administrator to completely stop the feed or reconnect accordingly. I hope this clears up any confusion and if needed, I can elborate even further.

    Thanks,

    R. Menard

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    May 3, 2010

    This is very much possible in FMS.

    Disconnecting clients.

    You should know the clientID of the publisher whom you want to disconnect. Also knowing the stream name should also help. When a publisher publishes the stream "application.onPublish" method at the server side gets triggered

    application.onPublish(clientObj, streamObj){

        trace('client id : " + client.id);

        trace("stream name : " + streamObj.name);

    }

    When ever required you can call

    application.disconnect(clientObj)

    to disconnect the client.

    This can be achieved by using server side action script or using authorization plug-in

    Reconnecting the clients:

    Once the client is disconnected from the server, there will not be any kind a link between client and server. Hence the client should initiate the connection by itself. But this time, you can accept or reject the connection at the fms server. May be by maintaining a flag at the server for such client identifying it by its ip or using unique query string.

    Regards,

    Janaki L