Use unabbreviated RTCP packet type constants

This commit is contained in:
Max Hawkins
2018-09-10 21:48:50 -07:00
committed by Michiel De Backker
parent 998e370406
commit fad12acb11
2 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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,
},
},