udp

package
v0.0.0-...-7b93736 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetReceiveBuffer

func SetReceiveBuffer(c net.PacketConn) error

Types

type Handler

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

func (*Handler) SetRTPReader

func (h *Handler) SetRTPReader(r interceptor.RTPReader)

func (*Handler) WriteRTCP

func (h *Handler) WriteRTCP(pkts []rtcp.Packet, attributes interceptor.Attributes) (int, error)

type Sender

type Sender struct {
	*SenderConfig
	// contains filtered or unexported fields
}

func NewSender

func NewSender(i *interceptor.Registry, opts ...SenderOption) (*Sender, error)

func (*Sender) Connect

func (s *Sender) Connect(ctx context.Context) error

func (*Sender) NewMediaStream

func (s *Sender) NewMediaStream() interceptor.RTPWriter

type SenderConfig

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

type SenderOption

type SenderOption func(*SenderConfig) error

func RemoteAddress

func RemoteAddress(addr string) SenderOption

type Server

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

func NewServer

func NewServer(opts ...ServerOption) (*Server, error)

func (*Server) OnNewHandler

func (s *Server) OnNewHandler(f func(*Handler))

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

type ServerConfig

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

type ServerOption

type ServerOption func(*ServerConfig) error

Jump to

Keyboard shortcuts

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