nack

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSeqLowerThan

func IsSeqLowerThan(seq uint16, seq2 uint16) bool

Types

type Buffer

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

Buffer keeps a fix size rtp packet for consumer to nack.

func NewBuffer

func NewBuffer(size int) *Buffer

func (*Buffer) Get

func (b *Buffer) Get(seq uint16) rtc.Packet

func (*Buffer) Put

func (b *Buffer) Put(pkt rtc.Packet)

type Receiver

type Receiver interface {
	IncomingPacket(ms int64, packet rtc.Packet)
	UpdateRTT(int64) // allow update rtt dynamic.
	Close()
}

func NewReceiver

func NewReceiver(sendRtcp rtc.SendRTCP) Receiver

type Sender

type Sender interface {
	OnNack(*rtcp.TransportLayerNack)
	ReceivePacket(packet rtc.Packet)
}

func NewSender

func NewSender(buf *Buffer, sendRTP func(packet rtc.Packet)) Sender

Jump to

Keyboard shortcuts

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