Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoChannel = errors.New("channel not found")

Functions

This section is empty.

Types

type Manager

type Manager struct {
	OpusBitrate  int
	PublishEvent PublishEvent
	FTL          ftl.Server
	WorkDir      string
	UseDASH      bool
	// contains filtered or unexported fields
}

func (*Manager) AnswerSDP

func (m *Manager) AnswerSDP(o playrtc.OfferToReceive, name string) (*playrtc.Sender, error)

func (*Manager) Cleanup

func (m *Manager) Cleanup()

func (*Manager) GetRTSPSource

func (m *Manager) GetRTSPSource(req *rtsp.Request) (av.Demuxer, error)

func (*Manager) Initialize

func (m *Manager) Initialize()

func (*Manager) OfferSDP

func (m *Manager) OfferSDP(r playrtc.PlayRequest, name string) (*playrtc.Sender, error)

func (*Manager) PopulateLive

func (m *Manager) PopulateLive(infos []*model.ChannelInfo)

func (*Manager) Publish

func (m *Manager) Publish(auth model.ChannelAuth, kind, remote string, src av.Demuxer) error

func (*Manager) ServeSDP

func (m *Manager) ServeSDP(rw http.ResponseWriter, req *http.Request, name string) error

func (*Manager) ServeTS

func (m *Manager) ServeTS(rw http.ResponseWriter, req *http.Request, name string) error

func (*Manager) ServeWeb

func (m *Manager) ServeWeb(rw http.ResponseWriter, req *http.Request, name string) error

type PublishEvent

type PublishEvent func(auth model.ChannelAuth, live bool, thumb grabber.Result)

Directories

Path Synopsis