mirror of
https://github.com/pion/webrtc.git
synced 2025-10-30 18:26:36 +08:00
Use unabbreviated RTCP packet type constants
This commit is contained in:
committed by
Michiel De Backker
parent
998e370406
commit
fad12acb11
@@ -8,11 +8,11 @@ import (
|
||||
|
||||
// RTCP packet types registered with IANA. See: https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-4
|
||||
const (
|
||||
TypeSR = 200 // sender report RFC 3550, 6.4.1
|
||||
TypeRR = 201 // receiver report RFC 3550, 6.4.2
|
||||
TypeSDES = 202 // source description RFC 3550, 6.5
|
||||
TypeBYE = 203 // goodbye RFC 3550, 6.6
|
||||
TypeAPP = 204 // application-defined RFC 3550, 6.7
|
||||
TypeSenderReport = 200 // RFC 3550, 6.4.1
|
||||
TypeReceiverReport = 201 // RFC 3550, 6.4.2
|
||||
TypeSourceDescription = 202 // RFC 3550, 6.5
|
||||
TypeGoodbye = 203 // RFC 3550, 6.6
|
||||
TypeApplicationDefined = 204 // RFC 3550, 6.7
|
||||
)
|
||||
|
||||
// A Header is the common header shared by all RTCP packets
|
||||
|
||||
@@ -16,7 +16,7 @@ func TestHeaderUnmarshal(t *testing.T) {
|
||||
Version: 2,
|
||||
Padding: false,
|
||||
ReportCount: 1,
|
||||
Type: TypeRR,
|
||||
Type: TypeReceiverReport,
|
||||
Length: 7,
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ func TestHeaderRoundTrip(t *testing.T) {
|
||||
Version: 2,
|
||||
Padding: true,
|
||||
ReportCount: 31,
|
||||
Type: TypeSR,
|
||||
Type: TypeSenderReport,
|
||||
Length: 4,
|
||||
},
|
||||
},
|
||||
@@ -51,7 +51,7 @@ func TestHeaderRoundTrip(t *testing.T) {
|
||||
Version: 1,
|
||||
Padding: false,
|
||||
ReportCount: 28,
|
||||
Type: TypeRR,
|
||||
Type: TypeReceiverReport,
|
||||
Length: 65535,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user