• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

NetStream.Record.NoAccess with multicast stream ingest

Advisor ,
Aug 03, 2018 Aug 03, 2018

Copy link to clipboard

Copied

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

Views

485

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines