Documentation
¶
Index ¶
- Constants
- func BuildAudioBin(pipeline *gstreamer.Pipeline, p *config.PipelineConfig) error
- func BuildFileBin(pipeline *gstreamer.Pipeline, p *config.PipelineConfig) (*gstreamer.Bin, error)
- func BuildImageBin(c *config.ImageConfig, pipeline *gstreamer.Pipeline, p *config.PipelineConfig) (*gstreamer.Bin, error)
- func BuildSegmentBin(pipeline *gstreamer.Pipeline, p *config.PipelineConfig) (*gstreamer.Bin, error)
- func BuildVideoBin(pipeline *gstreamer.Pipeline, p *config.PipelineConfig, ...) error
- func BuildWebsocketBin(pipeline *gstreamer.Pipeline, appSinkCallbacks *app.SinkCallbacks) (*gstreamer.Bin, error)
- type AudioBin
- type FirstSampleMetadata
- type LayoutManager
- type PadLayout
- type SpeakerInfo
- type Stream
- type StreamBin
- type TrackSource
- type VideoBin
Constants ¶
View Source
const ( TrackSourceCamera TrackSource = iota LayoutGrid = "grid" LayoutGridLight = "grid-light" LayoutGridDark = "grid-dark" LayoutSingleSpeaker = "single-speaker" LayoutSingleSpeakerLight = "single-speaker-light" LayoutSingleSpeakerDark = "single-speaker-dark" LayoutSpeaker = "speaker" LayoutSpeakerLight = "speaker-light" LayoutSpeakerDark = "speaker-dark" )
Variables ¶
This section is empty.
Functions ¶
func BuildAudioBin ¶ added in v1.7.8
func BuildAudioBin(pipeline *gstreamer.Pipeline, p *config.PipelineConfig) error
func BuildFileBin ¶ added in v1.7.8
func BuildImageBin ¶ added in v1.7.13
func BuildImageBin(c *config.ImageConfig, pipeline *gstreamer.Pipeline, p *config.PipelineConfig) (*gstreamer.Bin, error)
func BuildSegmentBin ¶ added in v1.7.8
func BuildVideoBin ¶ added in v1.7.8
func BuildWebsocketBin ¶ added in v1.7.8
Types ¶
type FirstSampleMetadata ¶ added in v1.7.8
type FirstSampleMetadata struct {
StartDate int64 // Real time date of the first media sample
}
type LayoutManager ¶ added in v1.15.0
type LayoutManager struct {
// contains filtered or unexported fields
}
func NewLayoutManager ¶ added in v1.15.0
func NewLayoutManager(layout string, width, height int) *LayoutManager
func (*LayoutManager) AddTrack ¶ added in v1.15.0
func (l *LayoutManager) AddTrack(trackID, identity string, source TrackSource) []PadLayout
func (*LayoutManager) Layout ¶ added in v1.15.0
func (l *LayoutManager) Layout() []PadLayout
func (*LayoutManager) RemoveTrack ¶ added in v1.15.0
func (l *LayoutManager) RemoveTrack(trackID string) []PadLayout
func (*LayoutManager) UpdateSpeakers ¶ added in v1.15.0
func (l *LayoutManager) UpdateSpeakers(speakers []SpeakerInfo) []PadLayout
UpdateSpeakers returns nil if the stabilized display order is unchanged.
type SpeakerInfo ¶ added in v1.15.0
type Stream ¶ added in v1.9.1
type Stream struct {
Conf *config.Stream
Bin *gstreamer.Bin
// contains filtered or unexported fields
}
func (*Stream) StartMonitor ¶ added in v1.14.0
func (s *Stream) StartMonitor()
func (*Stream) StopMonitor ¶ added in v1.14.0
func (s *Stream) StopMonitor()
StopMonitor signals the monitor goroutine to exit. Idempotent and safe to call before StartMonitor — runMonitor's first select observes the broken fuse and returns.
type StreamBin ¶ added in v1.7.8
type StreamBin struct {
Bin *gstreamer.Bin
OutputType types.OutputType
// contains filtered or unexported fields
}
func BuildStreamBin ¶ added in v1.7.8
func BuildStreamBin(pipeline *gstreamer.Pipeline, p *config.PipelineConfig, o *config.StreamConfig) (*StreamBin, error)
type TrackSource ¶ added in v1.15.0
type TrackSource int
Click to show internal directories.
Click to hide internal directories.