github.com/pion/webrtc/v4@v4.0.1/rtpcodingparameters.go (about) 1 // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> 2 // SPDX-License-Identifier: MIT 3 4 package webrtc 5 6 // RTPRtxParameters dictionary contains information relating to retransmission (RTX) settings. 7 // https://draft.ortc.org/#dom-rtcrtprtxparameters 8 type RTPRtxParameters struct { 9 SSRC SSRC `json:"ssrc"` 10 } 11 12 // RTPFecParameters dictionary contains information relating to forward error correction (FEC) settings. 13 // https://draft.ortc.org/#dom-rtcrtpfecparameters 14 type RTPFecParameters struct { 15 SSRC SSRC `json:"ssrc"` 16 } 17 18 // RTPCodingParameters provides information relating to both encoding and decoding. 19 // This is a subset of the RFC since Pion WebRTC doesn't implement encoding/decoding itself 20 // http://draft.ortc.org/#dom-rtcrtpcodingparameters 21 type RTPCodingParameters struct { 22 RID string `json:"rid"` 23 SSRC SSRC `json:"ssrc"` 24 PayloadType PayloadType `json:"payloadType"` 25 RTX RTPRtxParameters `json:"rtx"` 26 FEC RTPFecParameters `json:"fec"` 27 }