Skip to main content
Participant
Mar 9, 2011 6:33 PM UTC
Question

Live multicast on FSM remains active after client disconnects

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

    2 replies

    Participating Frequently
    Mar 10, 2011 1:53 PM UTC

    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 ?

    Translate
    aubuendiaAuthor
    Participant
    Mar 10, 2011 4:04 PM UTC

    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.

    Translate