Skip to main content
Robert Mc Dowell
Legend
August 3, 2018
Question

NetStream.Record.NoAccess with multicast stream ingest

  • August 3, 2018
  • 0 replies
  • 514 views

Hi,

I encounter a strange behavior when I ingest a stream from a multicast group and record it.

if the ingest unpublish and republish or if there are gaps the record just stop without to fire

any event. Even if I record(false) when unpublish and record("append") at publish event it never restarts the recording.

here is my code:

unicastStream = Stream.get("mp4:test");

unicastStream.setBufferTime(4);

unicastStream.maxQueueDelay = 4000;

unicastStream.maxQueueSize = 2048000;

sourceIngest = netGroup.getMulticastStreamIngest("mp4:test");

sourceIngest.onStatus = function(event){

        switch(event.code){

                case "NetGroup.MulticastStream.UnpublishNotify":

                        /*

                        unicastStream.playFromGroup(false);

                        if(sessRecording == true){

                                unicastStream.record(false);

                        }

                        */

                break;

                case "NetGroup.MulticastStream.PublishNotify":

                        //

                break;

                case "NetStream.MulticastStream.Reset":

                        /*

                        unicastStream.playFromGroup(false);

                        unicastStream.playFromGroup(this,-1,-1,false);

                        if(sessRecording == true){

                                unicastStream.record("append");

                        }

                        */

                break;

                case "NetStream.MulticastStream.GapNotify":

                        //

                break;

                default:

        }

}

unicastStream.playFromGroup(sourceIngest,-1,-1,false);

any idea?

thanks

    This topic has been closed for replies.