MCPcopy Create free account
hub / github.com/Monibuca/engine / WriteFLVTag

Function WriteFLVTag

codec/flv.go:87–91  ·  view source on GitHub ↗
(w io.Writer, t byte, timestamp uint32, payload []byte)

Source from the content-addressed store, hash-verified

85var FLVHeader = []byte{'F', 'L', 'V', 0x01, 0x05, 0, 0, 0, 9, 0, 0, 0, 0}
86
87func WriteFLVTag(w io.Writer, t byte, timestamp uint32, payload []byte) (err error) {
88 buffers := AVCC2FLV(t, timestamp, payload)
89 _, err = buffers.WriteTo(w)
90 return
91}
92
93func ReadFLVTag(r io.Reader) (t byte, timestamp uint32, payload []byte, err error) {
94 head := make([]byte, 11)

Callers

nothing calls this directly

Calls 2

AVCC2FLVFunction · 0.85
WriteToMethod · 0.45

Tested by

no test coverage detected