mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-02 20:53:02 +00:00
9e6abc6e9f
* rtmp: improve MsgCommandAMF0 * rtmp: fix MsgSetPeerBandwidth * rtmp: add message tests * rtmp: replace implementation with new one * rtmp: rename handshake functions * rtmp: avoid calling useless function * rtmp: use time.Duration for PTSDelta * rtmp: fix decoding chunks with relevant size * rtmp: rewrite implementation of rtmp connection * rtmp: fix tests * rtmp: improve error message * rtmp: replace h264 config implementation * link against github.com/notedit/rtmp * normalize MessageStreamID * rtmp: make acknowledge optional * rtmp: fix decoding of chunk2 + chunk3 * avoid using encoding/binary
17 lines
289 B
Go
17 lines
289 B
Go
package rawmessage
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/aler9/rtsp-simple-server/internal/rtmp/chunk"
|
|
)
|
|
|
|
// Message is a raw message.
|
|
type Message struct {
|
|
ChunkStreamID byte
|
|
Timestamp time.Duration
|
|
Type chunk.MessageType
|
|
MessageStreamID uint32
|
|
Body []byte
|
|
}
|