github.com/pion/webrtc/v3@v3.2.24/rtcpfeedback.go (about)

     1  // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
     2  // SPDX-License-Identifier: MIT
     3  
     4  package webrtc
     5  
     6  const (
     7  	// TypeRTCPFBTransportCC ..
     8  	TypeRTCPFBTransportCC = "transport-cc"
     9  
    10  	// TypeRTCPFBGoogREMB ..
    11  	TypeRTCPFBGoogREMB = "goog-remb"
    12  
    13  	// TypeRTCPFBACK ..
    14  	TypeRTCPFBACK = "ack"
    15  
    16  	// TypeRTCPFBCCM ..
    17  	TypeRTCPFBCCM = "ccm"
    18  
    19  	// TypeRTCPFBNACK ..
    20  	TypeRTCPFBNACK = "nack"
    21  )
    22  
    23  // RTCPFeedback signals the connection to use additional RTCP packet types.
    24  // https://draft.ortc.org/#dom-rtcrtcpfeedback
    25  type RTCPFeedback struct {
    26  	// Type is the type of feedback.
    27  	// see: https://draft.ortc.org/#dom-rtcrtcpfeedback
    28  	// valid: ack, ccm, nack, goog-remb, transport-cc
    29  	Type string
    30  
    31  	// The parameter value depends on the type.
    32  	// For example, type="nack" parameter="pli" will send Picture Loss Indicator packets.
    33  	Parameter string
    34  }