Documentation
¶
Overview ¶
Package rtp implements the RTP server, a media proxy driven over ng.
Index ¶
- Variables
- func New(conf *stnrv2.ServerConfig, rt *objruntime.Runtime) (objruntime.Object, error)
- type Server
- func (s *Server) Close(_ bool) error
- func (s *Server) GetConfig() stnrv2.Config
- func (s *Server) Reconcile(conf stnrv2.Config) error
- func (s *Server) Serve(c api.Conn) (api.Conn, api.Verdict, error)
- func (s *Server) Sessions() int
- func (s *Server) Start() error
- func (s *Server) Status() stnrv2.Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MediaTimeout is how long a call lives with no media from either party. MediaTimeout = 5 * time.Minute // EarlyMediaHold is how long media from an unknown source waits for the answer that names it. EarlyMediaHold = 2 * time.Second // EarlyMediaBuffer is the number of packets a stream holds per direction for a party it // cannot reach yet; older packets give way to newer ones. EarlyMediaBuffer = 50 // MaxUnmatched is the number of media conns from unknown sources that may wait at once. MaxUnmatched = 256 )
Functions ¶
func New ¶
func New(conf *stnrv2.ServerConfig, rt *objruntime.Runtime) (objruntime.Object, error)
New creates the RTP server of a validated config.
Types ¶
type Server ¶
Server is an rtp server.
func (*Server) Serve ¶
Serve takes a control conn from a listener labeled "role: control", and a carrier media conn from any other.
Click to show internal directories.
Click to hide internal directories.