Documentation
¶
Index ¶
- Variables
- func RemuxWindowTS(hlsDir string) ([]byte, error)
- func WindowHLSDir(recordDir, rel string) string
- func WindowMP4Path(recordDir, rel string) string
- func WriteWindowMP4(hlsDir, mp4Path string) (int64, error)
- type AACSpec
- type ChannelConfig
- type Config
- type Engine
- func (e *Engine) ApplyChannel(cfg ChannelConfig) error
- func (e *Engine) RemoveChannel(id string) error
- func (e *Engine) RunAll(fn func() ([]ChannelConfig, error)) error
- func (e *Engine) SetRecord(id string, on bool) error
- func (e *Engine) SetSegment(id string, seconds int) error
- func (e *Engine) Shutdown()
- func (e *Engine) Snapshot(id string) (online bool, recording bool)
- func (e *Engine) Subscribe(id string) (*Subscription, error)
- func (e *Engine) TrackInfoContext(ctx context.Context, id string) (*TrackSpec, error)
- type Events
- type Frame
- type H264Spec
- type Kind
- type Logger
- type RecordEvent
- type Subscription
- type TrackSpec
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RemuxWindowTS ¶
func WindowHLSDir ¶
func WindowMP4Path ¶
func WriteWindowMP4 ¶
Types ¶
type ChannelConfig ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) ApplyChannel ¶
func (e *Engine) ApplyChannel(cfg ChannelConfig) error
func (*Engine) RemoveChannel ¶
type Events ¶
type Events struct {
OnChannelStatus func(streamId string, online bool)
OnRecordClosed func(ev RecordEvent)
}
type RecordEvent ¶
type Subscription ¶
type Subscription struct {
Frames <-chan *Frame
Done <-chan struct{}
Cancel func()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.