Versions in this module Expand all Collapse all v0 v0.0.2 Aug 24, 2023 v0.0.1 Aug 23, 2023 Changes in this version + const MAX_DROPOUT + const MAX_MISORDER + const MIN_SEQUENTIAL + const RTCP_APP + const RTCP_BYE + const RTCP_RR + const RTCP_SDES + const RTCP_SR + const RTP_SEQ_MOD + const SDES_CNAME + const SDES_EMAIL + const SDES_LOC + const SDES_NAME + const SDES_NOTE + const SDES_PHONE + const SDES_PRIV + const SDES_TOOL + func NTP2UtcClock(ntp uint64) time.Time + func UtcClockToNTP(t time.Time) uint64 + type App struct + AppData []byte + Name []byte + SSRC uint32 + SubType uint8 + func NewApp() *App + func (pkt *App) Decode(data []byte) error + func (pkt *App) Encode() []byte + type Bye struct + Reason string + ReasonLen uint8 + SC uint8 + SSRCS []uint32 + func NewBye() *Bye + func (pkt *Bye) Decode(data []byte) error + func (pkt *Bye) Encode() []byte + type ChunkItem struct + Length uint8 + Txt []byte + Type uint8 + func MakeCNameItem(name []byte) *ChunkItem + func (item *ChunkItem) Encode() []byte + type Comm struct + Length uint16 + PT uint8 + Padding bool + PaddingData []byte + PayloadLen uint16 + func (pkt *Comm) Decode(data []byte) error + func (pkt *Comm) Encode() []byte + type ReceiverReport struct + Blocks []ReportBlock + RC uint8 + SSRC uint32 + func NewReceiverReport() *ReceiverReport + func (pkt *ReceiverReport) Decode(data []byte) error + func (pkt *ReceiverReport) Encode() []byte + type ReportBlock struct + Dlsr uint32 + ExtendHighestSeq uint32 + Fraction uint8 + Jitter uint32 + Lost uint32 + Lsr uint32 + SSRC uint32 + func (rb *ReportBlock) Decode(data []byte) error + func (rb *ReportBlock) Encode() []byte + type RtcpContext struct + func NewRtcpContext(ssrc uint32, seq uint16, sampleRate uint32) *RtcpContext + func (ctx *RtcpContext) GenerateApp(name string, data []byte) *App + func (ctx *RtcpContext) GenerateBye() *Bye + func (ctx *RtcpContext) GenerateRR() *ReceiverReport + func (ctx *RtcpContext) GenerateSDES(sdesType uint8, txt string) *SourceDescription + func (ctx *RtcpContext) GenerateSR() *SenderReport + func (ctx *RtcpContext) ReceivedRtp(pkt *rtp.RtpPacket) + func (ctx *RtcpContext) ReceivedSR(sr *SenderReport) + func (ctx *RtcpContext) SendRtp(pkt *rtp.RtpPacket) + type SDESChunk struct + Item *ChunkItem + SSRC uint32 + type SenderReport struct + Blocks []ReportBlock + NTP uint64 + RC uint8 + RtpTimestamp uint32 + SSRC uint32 + SendOctetCount uint32 + SendPacketCount uint32 + func NewSenderReport() *SenderReport + func (pkt *SenderReport) Decode(data []byte) error + func (pkt *SenderReport) Encode() []byte + type SourceDescription struct + Chunks []SDESChunk + SC uint8 + func NewSourceDescription() *SourceDescription + func (pkt *SourceDescription) Decode(data []byte) error + func (pkt *SourceDescription) Encode() []byte