srtp

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint added in v1.7.0

type Endpoint struct {
	Addr       string
	Port       uint16
	MasterKey  []byte
	MasterSalt []byte
	SSRC       uint32
	// contains filtered or unexported fields
}

type Server

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

func NewServer added in v1.7.0

func NewServer(address string) *Server

func (*Server) AddSession

func (s *Server) AddSession(session *Session)

func (*Server) DelSession added in v1.7.0

func (s *Server) DelSession(session *Session)

func (*Server) Port

func (s *Server) Port() int

type Session

type Session struct {
	Local  *Endpoint
	Remote *Endpoint

	OnReadRTP func(packet *rtp.Packet)

	Recv int // bytes recv
	Send int // bytes send

	PayloadType  uint8
	RTCPInterval time.Duration
	// contains filtered or unexported fields
}

func (*Session) ReadRTCP added in v1.7.0

func (s *Session) ReadRTCP(b []byte)

func (*Session) ReadRTP added in v1.7.0

func (s *Session) ReadRTP(b []byte)

func (*Session) WriteRTCP added in v1.7.0

func (s *Session) WriteRTCP(packet rtcp.Packet) (int, error)

func (*Session) WriteRTP added in v1.7.0

func (s *Session) WriteRTP(packet *rtp.Packet) (int, error)

Jump to

Keyboard shortcuts

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