From 9070fde2052561cba338f3f083c72b5ad8c1d04f Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 15 Apr 2022 13:08:24 +0200 Subject: [PATCH] update docs --- pkg/rtpaac/encoder.go | 4 ++++ pkg/rtph264/encoder.go | 4 ++++ 2 files changed, 8 insertions(+) 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