mirror of
https://github.com/pion/webrtc.git
synced 2025-09-26 19:21:12 +08:00

If the MediaEngine contains support for them a SSRC will be generated appropriately Co-authored-by: aggresss <aggresss@163.com> Co-authored-by: Kevin Wang <kevmo314@gmail.com> Resolves #1989 Resolves #1675
28 lines
1.0 KiB
Go
28 lines
1.0 KiB
Go
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package webrtc
|
|
|
|
// RTPRtxParameters dictionary contains information relating to retransmission (RTX) settings.
|
|
// https://draft.ortc.org/#dom-rtcrtprtxparameters
|
|
type RTPRtxParameters struct {
|
|
SSRC SSRC `json:"ssrc"`
|
|
}
|
|
|
|
// RTPFecParameters dictionary contains information relating to forward error correction (FEC) settings.
|
|
// https://draft.ortc.org/#dom-rtcrtpfecparameters
|
|
type RTPFecParameters struct {
|
|
SSRC SSRC `json:"ssrc"`
|
|
}
|
|
|
|
// RTPCodingParameters provides information relating to both encoding and decoding.
|
|
// This is a subset of the RFC since Pion WebRTC doesn't implement encoding/decoding itself
|
|
// http://draft.ortc.org/#dom-rtcrtpcodingparameters
|
|
type RTPCodingParameters struct {
|
|
RID string `json:"rid"`
|
|
SSRC SSRC `json:"ssrc"`
|
|
PayloadType PayloadType `json:"payloadType"`
|
|
RTX RTPRtxParameters `json:"rtx"`
|
|
FEC RTPFecParameters `json:"fec"`
|
|
}
|