playback

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package playback contains the playback server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment added in v1.5.1

type Segment struct {
	Fpath string
	Start time.Time
}

Segment is a recording segment.

func FindSegments added in v1.5.1

func FindSegments(
	pathConf *conf.Path,
	pathName string,
) ([]*Segment, error)

FindSegments returns all segments of a path.

type Server

type Server struct {
	Address        string
	Encryption     bool
	ServerKey      string
	ServerCert     string
	AllowOrigin    string
	TrustedProxies conf.IPNetworks
	ReadTimeout    conf.StringDuration
	PathConfs      map[string]*conf.Path
	AuthManager    serverAuthManager
	Parent         logger.Writer
	// contains filtered or unexported fields
}

Server is the playback server.

func (*Server) Close

func (s *Server) Close()

Close closes Server.

func (*Server) Initialize

func (s *Server) Initialize() error

Initialize initializes Server.

func (*Server) Log

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

Log implements logger.Writer.

func (*Server) ReloadPathConfs

func (s *Server) ReloadPathConfs(pathConfs map[string]*conf.Path)

ReloadPathConfs is called by core.Core.

Directories

Path Synopsis
Package mp4 contains a MP4 muxer.
Package mp4 contains a MP4 muxer.

Jump to

Keyboard shortcuts

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