rtcpsender

package
v0.0.0-...-3b681cf Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package rtcpsender contains a utility to generate RTCP sender reports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RTCPSender

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

RTCPSender is a utility to generate RTCP sender reports.

func New

func New(clockRate int) *RTCPSender

New allocates a RTCPSender.

func (*RTCPSender) ProcessPacketRTP

func (rs *RTCPSender) ProcessPacketRTP(ts time.Time, pkt *rtp.Packet)

ProcessPacketRTP extracts the needed data from RTP packets.

func (*RTCPSender) Report

func (rs *RTCPSender) Report(ts time.Time) rtcp.Packet

Report generates a RTCP sender report. It returns nil if no packets has been passed to ProcessPacketRTP yet.

Jump to

Keyboard shortcuts

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