sink

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSinks added in v1.5.6

func CreateSinks(p *config.PipelineConfig, callbacks *gstreamer.Callbacks) (map[types.EgressType][]Sink, error)

Types

type FileSink added in v1.5.6

type FileSink struct {
	uploader.Uploader

	*config.FileConfig
	// contains filtered or unexported fields
}

func (*FileSink) Cleanup added in v1.5.6

func (s *FileSink) Cleanup()

func (*FileSink) Close added in v1.7.10

func (s *FileSink) Close() error

func (*FileSink) Start added in v1.5.6

func (s *FileSink) Start() error

type Image added in v1.7.13

type Image struct {
	Name      string    `json:"name"`
	Timestamp time.Time `json:"timestamp"`
	Size      int64     `json:"size"`
}

type ImageManifest added in v1.7.13

type ImageManifest struct {
	Manifest `json:",inline"`

	Images []*Image `json:"images"`
}

type ImageSink added in v1.7.13

type ImageSink struct {
	uploader.Uploader

	*config.ImageConfig
	// contains filtered or unexported fields
}

func (*ImageSink) Cleanup added in v1.7.13

func (s *ImageSink) Cleanup()

func (*ImageSink) Close added in v1.7.13

func (s *ImageSink) Close() error

func (*ImageSink) NewImage added in v1.7.13

func (s *ImageSink) NewImage(filepath string, ts uint64) error

func (*ImageSink) Start added in v1.7.13

func (s *ImageSink) Start() error

type Manifest added in v1.7.1

type Manifest struct {
	EgressID          string `json:"egress_id,omitempty"`
	RoomID            string `json:"room_id,omitempty"`
	RoomName          string `json:"room_name,omitempty"`
	Url               string `json:"url,omitempty"`
	StartedAt         int64  `json:"started_at,omitempty"`
	EndedAt           int64  `json:"ended_at,omitempty"`
	PublisherIdentity string `json:"publisher_identity,omitempty"`
	TrackID           string `json:"track_id,omitempty"`
	TrackKind         string `json:"track_kind,omitempty"`
	TrackSource       string `json:"track_source,omitempty"`
	AudioTrackID      string `json:"audio_track_id,omitempty"`
	VideoTrackID      string `json:"video_track_id,omitempty"`
	SegmentCount      int64  `json:"segment_count,omitempty"`
}

type SegmentSink added in v1.5.6

type SegmentSink struct {
	uploader.Uploader

	*config.SegmentConfig
	// contains filtered or unexported fields
}

func (*SegmentSink) Cleanup added in v1.5.6

func (s *SegmentSink) Cleanup()

func (*SegmentSink) Close added in v1.7.10

func (s *SegmentSink) Close() error

func (*SegmentSink) FragmentClosed added in v1.7.12

func (s *SegmentSink) FragmentClosed(filepath string, endTime uint64) error

func (*SegmentSink) FragmentOpened added in v1.7.12

func (s *SegmentSink) FragmentOpened(filepath string, startTime uint64) error

func (*SegmentSink) Start added in v1.5.6

func (s *SegmentSink) Start() error

func (*SegmentSink) UpdateStartDate added in v1.5.6

func (s *SegmentSink) UpdateStartDate(t time.Time)

type SegmentUpdate added in v1.5.6

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

type Sink added in v1.5.6

type Sink interface {
	Start() error
	Close() error
	Cleanup()
}

type WebsocketSink added in v1.5.6

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

func (*WebsocketSink) Cleanup added in v1.5.6

func (s *WebsocketSink) Cleanup()

func (*WebsocketSink) Close added in v1.5.6

func (s *WebsocketSink) Close() error

func (*WebsocketSink) OnTrackMuted added in v1.5.6

func (s *WebsocketSink) OnTrackMuted(_ string)

func (*WebsocketSink) OnTrackUnmuted added in v1.7.8

func (s *WebsocketSink) OnTrackUnmuted(_ string, _ time.Duration)

func (*WebsocketSink) SinkCallbacks added in v1.7.8

func (s *WebsocketSink) SinkCallbacks() *app.SinkCallbacks

func (*WebsocketSink) Start added in v1.5.6

func (s *WebsocketSink) Start() error

func (*WebsocketSink) Write added in v1.5.6

func (s *WebsocketSink) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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