mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-28 14:02:02 -08:00
12 lines
240 B
Go
12 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)
|
|
}
|