MCPcopy Create free account
hub / github.com/Haivision/srt / FileRelay

Method FileRelay

testing/testmedia.cpp:172–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170public:
171
172 FileRelay(const string& path):
173 iofile(path, ios::in | ios::out | ios::binary), filename_copy(path)
174 {
175 if (!iofile)
176 throw std::runtime_error(path + ": Can't open file for reading");
177 }
178 MediaPacket Read(size_t chunk) override { return FileRead(iofile, chunk, filename_copy); }
179
180 void Write(const MediaPacket& data) override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected