rtpcleaner

package
v0.0.0-...-f460498 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package rtpcleaner contains a cleaning utility.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

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

Cleaner is used to clean incoming RTP packets, in order to: - remove padding - re-encode them if they are bigger than maximum allowed

func New

func New(isH264 bool, isTCP bool) *Cleaner

New allocates a Cleaner.

func (*Cleaner) Process

func (p *Cleaner) Process(pkt *rtp.Packet) ([]*Output, error)

Process processes a RTP packet.

type Output

type Output struct {
	Packet       *rtp.Packet
	PTSEqualsDTS bool
	H264NALUs    [][]byte
	H264PTS      time.Duration
}

Output is the output of Clear().

Jump to

Keyboard shortcuts

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