serverrtsp

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parent

type Parent interface {
	Log(logger.Level, string, ...interface{})
}

Parent is implemented by program.

type Server

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

Server is a RTSP listener.

func New

func New(
	listenIP string,
	port int,
	readTimeout time.Duration,
	writeTimeout time.Duration,
	readBufferCount int,
	readBufferSize int,
	useUDP bool,
	rtpPort int,
	rtcpPort int,
	useTLS bool,
	serverCert string,
	serverKey string,
	parent Parent) (*Server, error)

New allocates a Server.

func (*Server) Accept

func (s *Server) Accept() chan *gortsplib.ServerConn

Accept returns a channel to accept incoming connections.

func (*Server) Close

func (s *Server) Close()

Close closes a Server.

Jump to

Keyboard shortcuts

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