rtcpsender

package
v0.0.0-...-d2f83e5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 5 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) ProcessFrame

func (rs *RTCPSender) ProcessFrame(ts time.Time, streamType base.StreamType, payload []byte)

ProcessFrame extracts the needed data from RTP or RTCP frames.

func (*RTCPSender) Report

func (rs *RTCPSender) Report(ts time.Time) []byte

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

Jump to

Keyboard shortcuts

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