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

Method FileSource

apps/transmitmedia.cpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53public:
54
55 FileSource(const string& path): ifile(path, ios::in | ios::binary), filename_copy(path)
56 {
57 if ( !ifile )
58 throw std::runtime_error(path + ": Can't open file for reading");
59 }
60
61 int Read(size_t chunk, MediaPacket& pkt, ostream & ignored SRT_ATR_UNUSED = cout) override
62 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected