mediamtx/internal/rtmp/message/message.go
2022-09-17 21:19:45 +02:00

18 lines
387 B
Go

// Package message contains a RTMP message reader/writer.
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)
}