Skip to main content
Participant
March 9, 2011
Question

Live multicast on FSM remains active after client disconnects

  • March 9, 2011
  • 1 reply
  • 626 views

Hi,

I have followed the code provided in a thread in this forum on recording a multicast:

https://github.com/aduston/fmstesting/blob/master/serverbroadcast/fms/main.asc#L15-23

Basically, it gets aan RTMP stream from a client and attached that incoming stream to an outgoing RTMFP stream with multicast enabeled.

Everything works fine, except, after the client disconnects from the server, the multicast netstream on FMS continues its life. The admin panel shows that netstream as a stream with type Live.

I have tried things like:

ns.publish(false);

ns.attach(false);

but the stream keeps staying on the server, how is it possible to get rid of it when the client disconnects?

-A

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    March 10, 2011

    When you say "Client disconnects" - what do you mean - which client are you talking about. Is it publishing client or some client connect to multicast group ?

    aubuendiaAuthor
    Participant
    March 10, 2011

    SE_0208 wrote:

    When you say "Client disconnects" - what do you mean - which client are you talking about. Is it publishing client or some client connect to multicast group ?

    By client disconnects I meant both publisher and subscribers are disconnected. I can see that the server is a proxy converting rtmp to rtmfp stream, and when the original publisher client is disconnected, the server peer may continue living, but how is it possible to get rid of it? Even closing the netgroup didn't help.