0 Replies Latest reply on Aug 3, 2018 3:50 AM by Robert Mc Dowell

    NetStream.Record.NoAccess with multicast stream ingest

    Robert Mc Dowell Level 3

      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