mediamtx/internal/rtmp/message/message.go

18 lines
377 B
Go
Raw Normal View History

2022-09-17 19:19:45 +00:00
// Package message contains a RTMP message reader/writer.
2022-06-04 23:06:40 +00:00
package message
import (
"github.com/aler9/mediamtx/internal/rtmp/rawmessage"
2022-06-04 23:06:40 +00:00
)
const (
// ControlChunkStreamID is the stream ID used for control messages.
ControlChunkStreamID = 2
)
// Message is a message.
type Message interface {
Unmarshal(*rawmessage.Message) error
Marshal() (*rawmessage.Message, error)
}