Inheritance: BaseConnectivity
Beispiel #1
0
        public OutboundConnectivity GetOutboundConnectivity(IInNetStream pInNetStream, bool forceTcp)
        {
            if (OutboundConnectivity == null)
            {
                BaseOutNetRTPUDPStream pOutStream = new OutNetRTPUDPH264Stream(this, Application.StreamsManager, pInNetStream.Name, forceTcp);
                OutboundConnectivity = new OutboundConnectivity(forceTcp, this);
                if (!OutboundConnectivity.Initialize())
                {
                    FATAL("Unable to initialize outbound connectivity");
                    return(null);
                }
                pOutStream.Connectivity        = OutboundConnectivity;
                OutboundConnectivity.OutStream = pOutStream;

                if (!pInNetStream.Link(pOutStream))
                {
                    FATAL("Unable to link streams");
                    return(null);
                }
            }

            return(OutboundConnectivity);
        }
Beispiel #2
0
 public void CloseOutboundConnectivity() => OutboundConnectivity = null;
Beispiel #3
0
        public OutboundConnectivity GetOutboundConnectivity(IInNetStream pInNetStream, bool forceTcp)
        {
            if (OutboundConnectivity == null)
            {
                BaseOutNetRTPUDPStream pOutStream = new OutNetRTPUDPH264Stream(this,Application.StreamsManager,pInNetStream.Name, forceTcp);
                OutboundConnectivity = new OutboundConnectivity(forceTcp, this);
                if (!OutboundConnectivity.Initialize())
                {
                    FATAL("Unable to initialize outbound connectivity");
                    return null;
                }
                pOutStream.Connectivity = OutboundConnectivity;
                OutboundConnectivity.OutStream=pOutStream;

                if (!pInNetStream.Link(pOutStream))
                {
                    FATAL("Unable to link streams");
                    return null;
                }
            }

            return OutboundConnectivity;
        }
Beispiel #4
0
 public void CloseOutboundConnectivity() => OutboundConnectivity = null;