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); }
public override void setOptions(string aOptions) { HttpOutputByteStream.WebServerConfiguration lConfig = new HttpOutputByteStream.WebServerConfiguration(); lConfig.ServerName = "ASF server"; lConfig.IPAddress = IPAddress.Loopback; lConfig.MIME = mMIME; ushort lport; if (ushort.TryParse(aOptions, out lport)) { lConfig.Port = lport; } else { lConfig.Port = 8080; } mIMFByteStream = HttpOutputByteStream.createByteStream(lConfig); }