github.com/pion/webrtc/v3@v3.2.24/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  // RTPCodingParameters provides information relating to both encoding and decoding.
    13  // This is a subset of the RFC since Pion WebRTC doesn't implement encoding/decoding itself
    14  // http://draft.ortc.org/#dom-rtcrtpcodingparameters
    15  type RTPCodingParameters struct {
    16  	RID         string           `json:"rid"`
    17  	SSRC        SSRC             `json:"ssrc"`
    18  	PayloadType PayloadType      `json:"payloadType"`
    19  	RTX         RTPRtxParameters `json:"rtx"`
    20  }