MCPcopy Create free account
hub / github.com/pion/rtcp / String

Method String

extended_report.go:72–91  ·  view source on GitHub ↗

String converts the Extended report block types into readable strings.

()

Source from the content-addressed store, hash-verified

70
71// String converts the Extended report block types into readable strings.
72func (t BlockTypeType) String() string {
73 switch t {
74 case LossRLEReportBlockType:
75 return "LossRLEReportBlockType"
76 case DuplicateRLEReportBlockType:
77 return "DuplicateRLEReportBlockType"
78 case PacketReceiptTimesReportBlockType:
79 return "PacketReceiptTimesReportBlockType"
80 case ReceiverReferenceTimeReportBlockType:
81 return "ReceiverReferenceTimeReportBlockType"
82 case DLRRReportBlockType:
83 return "DLRRReportBlockType"
84 case StatisticsSummaryReportBlockType:
85 return "StatisticsSummaryReportBlockType"
86 case VoIPMetricsReportBlockType:
87 return "VoIPMetricsReportBlockType"
88 }
89
90 return fmt.Sprintf("invalid value %d", t)
91}
92
93// rleReportBlock defines the common structure used by both
94// Loss RLE report blocks (RFC 3611 §4.1) and Duplicate RLE

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected