update docs

This commit is contained in:
aler9
2022-04-15 13:08:24 +02:00
parent 25c296f1dd
commit 9070fde205
2 changed files with 8 additions and 0 deletions

View File

@@ -23,15 +23,19 @@ type Encoder struct {
SampleRate int SampleRate int
// SSRC of packets (optional). // SSRC of packets (optional).
// It defaults to a random value.
SSRC *uint32 SSRC *uint32
// initial sequence number of packets (optional). // initial sequence number of packets (optional).
// It defaults to a random value.
InitialSequenceNumber *uint16 InitialSequenceNumber *uint16
// initial timestamp of packets (optional). // initial timestamp of packets (optional).
// It defaults to a random value.
InitialTimestamp *uint32 InitialTimestamp *uint32
// maximum size of packet payloads (optional). // maximum size of packet payloads (optional).
// It defaults to 1460.
PayloadMaxSize int PayloadMaxSize int
sequenceNumber uint16 sequenceNumber uint16

View File

@@ -20,15 +20,19 @@ type Encoder struct {
PayloadType uint8 PayloadType uint8
// SSRC of packets (optional). // SSRC of packets (optional).
// It defaults to a random value.
SSRC *uint32 SSRC *uint32
// initial sequence number of packets (optional). // initial sequence number of packets (optional).
// It defaults to a random value.
InitialSequenceNumber *uint16 InitialSequenceNumber *uint16
// initial timestamp of packets (optional). // initial timestamp of packets (optional).
// It defaults to a random value.
InitialTimestamp *uint32 InitialTimestamp *uint32
// maximum size of packet payloads (optional). // maximum size of packet payloads (optional).
// It defaults to 1460.
PayloadMaxSize int PayloadMaxSize int
sequenceNumber uint16 sequenceNumber uint16