MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / writeFrame

Method writeFrame

MonaCore/sources/MediaContainer.cpp:102–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101
102void FLV::writeFrame(BinaryWriter& writer,UInt8 type,UInt32 time,const UInt8* data,UInt32 size) {
103 /// 11 bytes of header
104 writer.write8(type);
105 // size on 3 bytes
106 writer.write24(size);
107 // time on 3 bytes
108 writer.write24(time);
109 // unknown 4 bytes set to 0
110 writer.write32(0);
111 /// payload
112 writer.write(data, size);
113 /// footer
114 writer.write32(11+size);
115}
116
117
118//////////////////// RTP /////////////////////////////

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected