rtmp

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package rtmp contains a RTMP server.

Index

Constants

This section is empty.

Variables

View Source
var ErrConnNotFound = errors.New("connection not found")

ErrConnNotFound is returned when a connection is not found.

Functions

This section is empty.

Types

type Server

type Server struct {
	Address             string
	ReadTimeout         conf.StringDuration
	WriteTimeout        conf.StringDuration
	WriteQueueSize      int
	IsTLS               bool
	ServerCert          string
	ServerKey           string
	RTSPAddress         string
	RunOnConnect        string
	RunOnConnectRestart bool
	RunOnDisconnect     string
	ExternalCmdPool     *externalcmd.Pool
	PathManager         serverPathManager
	Parent              serverParent
	// contains filtered or unexported fields
}

Server is a RTMP server.

func (*Server) APIConnsGet

func (s *Server) APIConnsGet(uuid uuid.UUID) (*defs.APIRTMPConn, error)

APIConnsGet is called by api.

func (*Server) APIConnsKick

func (s *Server) APIConnsKick(uuid uuid.UUID) error

APIConnsKick is called by api.

func (*Server) APIConnsList

func (s *Server) APIConnsList() (*defs.APIRTMPConnList, error)

APIConnsList is called by api.

func (*Server) Close

func (s *Server) Close()

Close closes the server.

func (*Server) Initialize

func (s *Server) Initialize() error

Initialize initializes the server.

func (*Server) Log

func (s *Server) Log(level logger.Level, format string, args ...interface{})

Log implements logger.Writer.

Jump to

Keyboard shortcuts

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