mirror of
https://github.com/pion/webrtc.git
synced 2025-10-06 07:37:10 +08:00

Syntax could be better but works in a standards-compliant way. ``` codec := webrtc.NewRTPH264Codec(webrtc.DefaultPayloadTypeH264, 90000) codec.RTPCodecCapability.RTCPFeedback = []webrtc.RTCPFeedback{{ Type: "nack", }, { Type: "nack", Parameter: "pli", }} ```
15 lines
470 B
Go
15 lines
470 B
Go
package webrtc
|
|
|
|
// RTCPFeedback signals the connection to use additional RTCP packet types.
|
|
// https://draft.ortc.org/#dom-rtcrtcpfeedback
|
|
type RTCPFeedback struct {
|
|
// Type is the type of feedback.
|
|
// see: https://draft.ortc.org/#dom-rtcrtcpfeedback
|
|
// valid: ack, ccm, nack, goog-remb, transport-cc
|
|
Type string
|
|
|
|
// The parameter value depends on the type.
|
|
// For example, type="nack" parameter="pli" will send Picture Loss Indicator packets.
|
|
Parameter string
|
|
}
|