video

package
v2.4.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSource

func GetSource() api.Source

Types

type Source

type Source struct {
	Url string `json:"url"`
	// Check https://www.ffmpeg.org/general.html#Video-Codecs, default to 'mjpeg'
	Codec     string            `json:"codec"`
	DebugResp bool              `json:"debugResp"`
	InputArgs map[string]any    `json:"inputArgs"`
	Interval  cast.DurationConf `json:"interval"`
	// contains filtered or unexported fields
}

func (*Source) Close

func (s *Source) Close(_ api.StreamContext) error

func (*Source) Connect

func (s *Source) Connect(_ api.StreamContext, sch api.StatusChangeHandler) error

func (*Source) Info

func (s *Source) Info() model.NodeInfo

func (*Source) Provision

func (s *Source) Provision(ctx api.StreamContext, props map[string]any) error

func (*Source) Subscribe

func (s *Source) Subscribe(ctx api.StreamContext, ingest api.BytesIngest, ingestError api.ErrorIngest) error

func (*Source) TransformType

func (s *Source) TransformType() api.Source

Jump to

Keyboard shortcuts

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