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

Method String

sender_report.go:252–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250}
251
252func (r SenderReport) String() string {
253 var out strings.Builder
254 fmt.Fprintf(&out, "SenderReport from %x\n", r.SSRC)
255 fmt.Fprintf(&out, "\tNTPTime:\t%d\n", r.NTPTime)
256 fmt.Fprintf(&out, "\tRTPTIme:\t%d\n", r.RTPTime)
257 fmt.Fprintf(&out, "\tPacketCount:\t%d\n", r.PacketCount)
258 fmt.Fprintf(&out, "\tOctetCount:\t%d\n", r.OctetCount)
259
260 out.WriteString("\tSSRC \tLost\tLastSequence\n")
261 for _, i := range r.Reports {
262 fmt.Fprintf(&out, "\t%x\t%d/%d\t%d\n", i.SSRC, i.FractionLost, i.TotalLost, i.LastSequenceNumber)
263 }
264 fmt.Fprintf(&out, "\tProfile Extension Data: %v\n", r.ProfileExtensions)
265
266 return out.String()
267}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected