()
| 41 | ) |
| 42 | |
| 43 | func (p PacketType) String() string { |
| 44 | switch p { |
| 45 | case TypeSenderReport: |
| 46 | return "SR" |
| 47 | case TypeReceiverReport: |
| 48 | return "RR" |
| 49 | case TypeSourceDescription: |
| 50 | return "SDES" |
| 51 | case TypeGoodbye: |
| 52 | return "BYE" |
| 53 | case TypeApplicationDefined: |
| 54 | return "APP" |
| 55 | case TypeTransportSpecificFeedback: |
| 56 | return "TSFB" |
| 57 | case TypePayloadSpecificFeedback: |
| 58 | return "PSFB" |
| 59 | case TypeExtendedReport: |
| 60 | return "XR" |
| 61 | default: |
| 62 | return string(p) |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | const rtpVersion = 2 |
| 67 |
nothing calls this directly
no outgoing calls
no test coverage detected