rtp

package
v0.0.0-...-89b65a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type H264Depacketizer

type H264Depacketizer struct {
	// contains filtered or unexported fields
}

func NewH264Depacketizer

func NewH264Depacketizer() *H264Depacketizer

func (*H264Depacketizer) Depacket

func (self *H264Depacketizer) Depacket(packet []byte) ([][]byte, bool)

TODO

type NackInfo

type NackInfo struct {
	// contains filtered or unexported fields
}

type RTPBuffer

type RTPBuffer struct {
	// contains filtered or unexported fields
}

func NewRTPBuffer

func NewRTPBuffer(cap uint16) *RTPBuffer

cap can be 512

func (*RTPBuffer) Add

func (self *RTPBuffer) Add(packet *rtp.Packet)

func (*RTPBuffer) Get

func (self *RTPBuffer) Get(seq uint16) *rtp.Packet

type RTPJitter

type RTPJitter struct {
	// contains filtered or unexported fields
}

func NewJitter

func NewJitter(cap uint16, clockrate uint32) *RTPJitter

cap maybe 512 or 1024 or more

func (*RTPJitter) Add

func (self *RTPJitter) Add(packet *rtp.Packet) bool

func (*RTPJitter) GetOrdered

func (self *RTPJitter) GetOrdered() (out []*rtp.Packet)

func (*RTPJitter) SetMaxWaitTime

func (self *RTPJitter) SetMaxWaitTime(wait uint32)

type RTPLostPackets

type RTPLostPackets struct {
	// contains filtered or unexported fields
}

func NewRTPLostPackets

func NewRTPLostPackets() *RTPLostPackets

func (*RTPLostPackets) AddPacket

func (self *RTPLostPackets) AddPacket(packet *rtp.Packet) int

func (*RTPLostPackets) GetNacks

func (self *RTPLostPackets) GetNacks(nowNs int64) []rtcp.NackPair

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL