mediamtx/internal/rtmp/message/message.go
2022-06-05 01:06:40 +02:00

17 lines
329 B
Go

package message
import (
"github.com/aler9/rtsp-simple-server/internal/rtmp/rawmessage"
)
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)
}