public List <object> getOutputNode(
            List <object> aCompressesMediaTypes,
            StartSession aStartSession,
            StartSession aStopSession,
            WriteClientIP aWriteClientIP)
        {
            HttpOutputByteStream.WebServerConfiguration lConfig = new HttpOutputByteStream.WebServerConfiguration();

            lConfig.ServerName = "MP4 Screen capture server";

            lConfig.IPAddress = IPAddress.Loopback;

            lConfig.MIME = "video/mp4";

            lConfig.Port = 8080;

            mServer = HttpOutputByteStream.createByteStream(lConfig, aStartSession, aStopSession, aWriteClientIP);

            mIMFByteStream = mServer;

            List <object> lTopologyOutputNodesList = new List <object>();

            if (mIMFByteStream != null)
            {
                mSinkFactory.createOutputNodes(
                    aCompressesMediaTypes,
                    mIMFByteStream,
                    out lTopologyOutputNodesList);
            }

            return(lTopologyOutputNodesList);
        }
Exemple #2
0
        public override object getOutputNode(object aUpStreamMediaType)
        {
            List <object> lCompressedMediaTypeList = new List <object>();

            lCompressedMediaTypeList.Add(aUpStreamMediaType);

            List <object> lTopologyOutputNodesList = new List <object>();

            if (mIMFByteStream != null)
            {
                mSinkFactory.createOutputNodes(
                    lCompressedMediaTypeList,
                    mIMFByteStream,
                    out lTopologyOutputNodesList);
            }

            return(lTopologyOutputNodesList[0]);
        }