mediatransportutil

package module
v0.0.0-...-84b69fa Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRttNoLastSenderReport      = errors.New("no last sender report")
	ErrRttNotLastSenderReport     = errors.New("not last sender report")
	ErrRttNoLastSendTime          = errors.New("no last sent time")
	ErrRttAnachronousSenderReport = errors.New("anachronous sender report")
)

Functions

func GetRttMs

func GetRttMs(report *rtcp.ReceptionReport, lastSRNTP NtpTime, lastSentAt time.Time) (uint32, error)

func GetRttMsFromReceiverReportOnly

func GetRttMsFromReceiverReportOnly(report *rtcp.ReceptionReport) (uint32, error)

Types

type NtpTime

type NtpTime uint64

func ToNtpTime

func ToNtpTime(t time.Time) NtpTime

func (NtpTime) Duration

func (t NtpTime) Duration() time.Duration

func (NtpTime) Time

func (t NtpTime) Time() time.Time

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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