Files
rtsp-simple-server/internal/protocols/rtmp/chunk/chunk.go

13 lines
240 B
Go

// Package chunk implements RTMP chunks.
package chunk
import (
"io"
)
// Chunk is a chunk.
type Chunk interface {
Read(r io.Reader, bodyLen uint32, hasExtendedTimestamp bool) error
Marshal(hasExtendedTimestamp bool) ([]byte, error)
}