rtmp: implement acknowledge mechanism

This commit is contained in:
aler9
2022-06-08 20:47:36 +02:00
parent ee2908081e
commit 2601ca5661
23 changed files with 473 additions and 177 deletions

View File

@@ -15,7 +15,7 @@ type Chunk2 struct {
}
// Read reads the chunk.
func (c *Chunk2) Read(r io.Reader, chunkBodyLen int) error {
func (c *Chunk2) Read(r io.Reader, chunkBodyLen uint32) error {
header := make([]byte, 4)
_, err := r.Read(header)
if err != nil {