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