Documentation
¶
Index ¶
- Constants
- func GetSource() api.Source
- type Source
- func (s *Source) Close(_ api.StreamContext) error
- func (s *Source) Connect(_ api.StreamContext, sch api.StatusChangeHandler) error
- func (s *Source) Provision(ctx api.StreamContext, props map[string]any) error
- func (s *Source) Pull(ctx api.StreamContext, trigger time.Time, ingest api.BytesIngest, ...)
Constants ¶
View Source
const FRAMENUMBER = 5
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Source ¶
type Source struct {
Url string `json:"url"`
// Run ffmpeg -formats to get all supported format, default to 'image2'
Format string `json:"vformat"`
// Check https://www.ffmpeg.org/general.html#Video-Codecs, default to 'mjpeg'
Codec string `json:"codec"`
// contains filtered or unexported fields
}
func (*Source) Connect ¶
func (s *Source) Connect(_ api.StreamContext, sch api.StatusChangeHandler) error
func (*Source) Pull ¶
func (s *Source) Pull(ctx api.StreamContext, trigger time.Time, ingest api.BytesIngest, ingestError api.ErrorIngest)
Click to show internal directories.
Click to hide internal directories.