public IsmPushEncoder( FakeLOTTServer server, string ismvFile, string pushUrl, int AssetId, int StreamId, int bitrate, string manifest, Chunk[] ChunkArray, int trackID, Options opt) : this(server, null, ismvFile, pushUrl, AssetId, StreamId, bitrate, manifest, ChunkArray, trackID, opt) { OutputBytes = 0; OutputChunks = 0; }
public IsmPushEncoder( FakeLOTTServer server, IsmFile ismFile, string ismvFile, string pushUrl, int AssetId, int StreamId, int bitrate, string LiveManifest, Chunk[] ChunkArray, int trackID, Options opt) { OutputBytes = 0; OutputChunks = 0; _ismFile = ismFile; _server = server; _ismvStream = File.OpenRead(ismvFile); _ismvFile = ismvFile; _bitrate = bitrate; _liveManifest = LiveManifest; //PushEncoder.exe uses this format - note '?' and lower case 's' in streams //_url = string.Format("{0}/Streams({1}-stream{2})", pushUrl, AssetId, StreamId); _pushurl = pushUrl; // flecoqui _url = string.Format("{0}?Streams({1}-stream{2})", pushUrl, AssetId, StreamId); _url = string.Format("{0}/Streams({1}-stream{2})", pushUrl, AssetId, StreamId); if (this.options != null) { this.options.LogInformation("Pushing to url: " + _url + " source: " + ismvFile + " manifest: \r\n" + _liveManifest); } _thread = new Thread(new ThreadStart(Worker)); _ismvFile = ismvFile; _streamID = StreamId; _ChunkArray = ChunkArray; _trackID = trackID; options = opt; }