mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-23 23:22:26 +00:00
18 lines
387 B
Go
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)
|
|
}
|