summaryrefslogtreecommitdiff
path: root/vendor/github.com/pion/webrtc/v3/rtcpfeedback.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/pion/webrtc/v3/rtcpfeedback.go')
-rw-r--r--vendor/github.com/pion/webrtc/v3/rtcpfeedback.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/github.com/pion/webrtc/v3/rtcpfeedback.go b/vendor/github.com/pion/webrtc/v3/rtcpfeedback.go
new file mode 100644
index 0000000..b377738
--- /dev/null
+++ b/vendor/github.com/pion/webrtc/v3/rtcpfeedback.go
@@ -0,0 +1,31 @@
+package webrtc
+
+const (
+ // TypeRTCPFBTransportCC ..
+ TypeRTCPFBTransportCC = "transport-cc"
+
+ // TypeRTCPFBGoogREMB ..
+ TypeRTCPFBGoogREMB = "goog-remb"
+
+ // TypeRTCPFBACK ..
+ TypeRTCPFBACK = "ack"
+
+ // TypeRTCPFBCCM ..
+ TypeRTCPFBCCM = "ccm"
+
+ // TypeRTCPFBNACK ..
+ TypeRTCPFBNACK = "nack"
+)
+
+// 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
+}