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 static HttpOutputByteStream createByteStream( WebServerConfiguration aConfig, StartSession aStartSession, StartSession aStopSession, WriteClientIP aWriteClientIP) { return(new HttpOutputByteStream(aConfig, aStartSession, aStopSession, aWriteClientIP)); }
private HttpOutputByteStream( WebServerConfiguration aConfig, StartSession aStartSession, StartSession aStopSession, WriteClientIP aWriteClientIP) { mWebServer = new WebServer(aConfig, aStartSession, aStopSession, aWriteClientIP); mWebServer.Start(); }
/// <summary> /// New WebServer /// </summary> /// <param name="webServerConf">WebServer Configuration</param> public WebServer( WebServerConfiguration webServerConf, StartSession aStartSession, StartSession aStopSession, WriteClientIP aWriteClientIP) { this.Configuration = webServerConf; mStartSession += aStartSession; mStopSession += aStopSession; mWriteClientIP += aWriteClientIP; }