diff --git a/pkg/rtpaac/encoder.go b/pkg/rtpaac/encoder.go index c0350c4f..7bd4856c 100644 --- a/pkg/rtpaac/encoder.go +++ b/pkg/rtpaac/encoder.go @@ -23,15 +23,19 @@ type Encoder struct { SampleRate int // SSRC of packets (optional). + // It defaults to a random value. SSRC *uint32 // initial sequence number of packets (optional). + // It defaults to a random value. InitialSequenceNumber *uint16 // initial timestamp of packets (optional). + // It defaults to a random value. InitialTimestamp *uint32 // maximum size of packet payloads (optional). + // It defaults to 1460. PayloadMaxSize int sequenceNumber uint16 diff --git a/pkg/rtph264/encoder.go b/pkg/rtph264/encoder.go index 5aa42939..28356357 100644 --- a/pkg/rtph264/encoder.go +++ b/pkg/rtph264/encoder.go @@ -20,15 +20,19 @@ type Encoder struct { PayloadType uint8 // SSRC of packets (optional). + // It defaults to a random value. SSRC *uint32 // initial sequence number of packets (optional). + // It defaults to a random value. InitialSequenceNumber *uint16 // initial timestamp of packets (optional). + // It defaults to a random value. InitialTimestamp *uint32 // maximum size of packet payloads (optional). + // It defaults to 1460. PayloadMaxSize int sequenceNumber uint16