source

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDKSource

type SDKSource struct {
	*config.PipelineConfig
	// contains filtered or unexported fields
}

func NewSDKSource

func NewSDKSource(ctx context.Context, p *config.PipelineConfig, callbacks *gstreamer.Callbacks) (*SDKSource, error)

func (*SDKSource) Close

func (s *SDKSource) Close()

func (*SDKSource) CloseWriters added in v1.5.6

func (s *SDKSource) CloseWriters()

func (*SDKSource) EndRecording

func (s *SDKSource) EndRecording() chan struct{}

func (*SDKSource) GetEndedAt added in v1.7.8

func (s *SDKSource) GetEndedAt() int64

func (*SDKSource) GetStartedAt added in v1.7.8

func (s *SDKSource) GetStartedAt() int64

func (*SDKSource) Playing

func (s *SDKSource) Playing(trackID string)

func (*SDKSource) StartRecording

func (s *SDKSource) StartRecording() chan struct{}

func (*SDKSource) StreamStopped added in v1.5.6

func (s *SDKSource) StreamStopped(trackID string)

type Source

type Source interface {
	StartRecording() chan struct{}
	EndRecording() chan struct{}
	GetStartedAt() int64
	GetEndedAt() int64
	Close()
}

func New added in v1.5.6

func New(ctx context.Context, p *config.PipelineConfig, callbacks *gstreamer.Callbacks) (Source, error)

type WebSource

type WebSource struct {
	// contains filtered or unexported fields
}

func NewWebSource

func NewWebSource(ctx context.Context, p *config.PipelineConfig) (*WebSource, error)

func (*WebSource) Close

func (s *WebSource) Close()

func (*WebSource) EndRecording

func (s *WebSource) EndRecording() chan struct{}

func (*WebSource) GetEndedAt added in v1.7.8

func (s *WebSource) GetEndedAt() int64

func (*WebSource) GetStartedAt added in v1.7.8

func (s *WebSource) GetStartedAt() int64

func (*WebSource) StartRecording

func (s *WebSource) StartRecording() chan struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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