Inheritance: BaseOutNetRTPUDPStream
Ejemplo n.º 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);
        }
Ejemplo n.º 2
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;
        }