stats

package
v4.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NTPTime

type NTPTime uint64

func NewNTPTime

func NewNTPTime(t time.Time) NTPTime

func (NTPTime) Middle

func (t NTPTime) Middle() uint32

func (NTPTime) Time

func (t NTPTime) Time() time.Time

type Receiver

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

func NewReceiver

func NewReceiver() *Receiver

func (*Receiver) ReceiveRTCP

func (r *Receiver) ReceiveRTCP(packet rtcp.Packet)

func (*Receiver) ReceiveRTP

func (r *Receiver) ReceiveRTP(packet *rtp.Packet)

func (*Receiver) Stats

func (r *Receiver) Stats() (members, senders int)

type Source

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

Source contains per-Source state information. Implemented as per RFC 3550 appendices A.1 and A.3.

func (*Source) HandleRTP

func (s *Source) HandleRTP(packet *rtp.Packet, now time.Time)

func (*Source) HandleSenderReport

func (s *Source) HandleSenderReport(r *rtcp.SenderReport)

func (*Source) InitSeq

func (s *Source) InitSeq(seq uint16)

InitSeq is implemented according to the RFC 3550 Appendix A.1.

func (*Source) NewSource

func (s *Source) NewSource(ssrc uint32) *Source

NewSource creates a new instance of Source.

func (*Source) ReceptionReport

func (s *Source) ReceptionReport(now time.Time) rtcp.ReceptionReport

Report is implemented according to the RFC 3550 Appendix A.3.

Jump to

Keyboard shortcuts

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