hls

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package hls contains a HLS server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Address                   string
	Encryption                bool
	ServerKey                 string
	ServerCert                string
	ExternalAuthenticationURL string
	AlwaysRemux               bool
	Variant                   conf.HLSVariant
	SegmentCount              int
	SegmentDuration           conf.StringDuration
	PartDuration              conf.StringDuration
	SegmentMaxSize            conf.StringSize
	AllowOrigin               string
	TrustedProxies            conf.IPsOrCIDRs
	Directory                 string
	ReadTimeout               conf.StringDuration
	WriteQueueSize            int
	PathManager               defs.PathManager
	Parent                    serverParent
	// contains filtered or unexported fields
}

Server is a HLS server.

func (*Server) APIMuxersGet

func (s *Server) APIMuxersGet(name string) (*defs.APIHLSMuxer, error)

APIMuxersGet is called by api.

func (*Server) APIMuxersList

func (s *Server) APIMuxersList() (*defs.APIHLSMuxerList, error)

APIMuxersList 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.

func (*Server) PathNotReady

func (s *Server) PathNotReady(pa defs.Path)

PathNotReady is called by pathManager.

func (*Server) PathReady

func (s *Server) PathReady(pa defs.Path)

PathReady is called by pathManager.

Jump to

Keyboard shortcuts

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