1
0
Fork 0
forked from External/mediamtx

rtmp server: change value of MessageStreamID of outgoing messages

This commit is contained in:
aler9 2022-08-16 17:08:55 +02:00
parent 820ba067f2
commit e255d004e3
7 changed files with 36 additions and 26 deletions

View file

@ -10,6 +10,11 @@ import (
"github.com/aler9/rtsp-simple-server/internal/rtmp/rawmessage"
)
const (
// this is the chunk stream ID that is usually used to send MsgAudio{}
MsgAudioChunkStreamID = 6
)
// MsgAudio is an audio message.
type MsgAudio struct {
ChunkStreamID byte

View file

@ -10,6 +10,11 @@ import (
"github.com/aler9/rtsp-simple-server/internal/rtmp/rawmessage"
)
const (
// this is the chunk stream ID that is usually used to send MsgVideo{}
MsgVideoChunkStreamID = 6
)
// MsgVideo is a video message.
type MsgVideo struct {
ChunkStreamID byte