sdk

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppWriter

type AppWriter struct {
	*synchronizer.TrackSynchronizer
	// contains filtered or unexported fields
}

func NewAppWriter

func NewAppWriter(
	conf *config.PipelineConfig,
	track *webrtc.TrackRemote,
	pub lksdk.TrackPublication,
	rp *lksdk.RemoteParticipant,
	ts *config.TrackSource,
	synchronizer *synchronizer.Synchronizer,
	driftHandler DriftHandler,
	callbacks *gstreamer.Callbacks,
) (*AppWriter, error)

func (*AppWriter) Drain

func (w *AppWriter) Drain(force bool)

Drain blocks until finished

func (*AppWriter) Finished added in v1.13.0

func (w *AppWriter) Finished() <-chan struct{}

Finished returns a channel that is closed when the writer has finished.

func (*AppWriter) OnUnsubscribed added in v1.13.0

func (w *AppWriter) OnUnsubscribed()

OnUnsubscribed signals that the track was unsubscribed but allows the reader to continue reading until an error occurs or grace period elapses. This allows any remaining buffers in flight from the SFU to be processed.

func (*AppWriter) Playing added in v1.8.6

func (w *AppWriter) Playing()

func (*AppWriter) SetTimeProvider added in v1.11.0

func (w *AppWriter) SetTimeProvider(tp gstreamer.TimeProvider)

func (*AppWriter) TrackKind added in v1.13.0

func (w *AppWriter) TrackKind() webrtc.RTPCodecType

type DriftHandler added in v1.11.0

type DriftHandler interface {
	EnqueueDrift(t time.Duration)
	Processed() time.Duration
}

type G711Packet added in v1.13.0

type G711Packet struct{}

func (*G711Packet) IsPartitionHead added in v1.13.0

func (p *G711Packet) IsPartitionHead(_ []byte) bool

func (*G711Packet) IsPartitionTail added in v1.13.0

func (p *G711Packet) IsPartitionTail(_ bool, _ []byte) bool

func (*G711Packet) Unmarshal added in v1.13.0

func (p *G711Packet) Unmarshal(packet []byte) ([]byte, error)

type NullTranslator added in v1.7.8

type NullTranslator struct{}

func (*NullTranslator) Translate added in v1.7.8

func (t *NullTranslator) Translate(_ *rtp.Packet)

type Translator added in v1.7.2

type Translator interface {
	Translate(*rtp.Packet)
}

func NewNullTranslator added in v1.7.8

func NewNullTranslator() Translator

type VP8Translator added in v1.7.2

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

func NewVP8Translator added in v1.7.2

func NewVP8Translator(logger logger.Logger) *VP8Translator

func (*VP8Translator) Translate added in v1.7.2

func (t *VP8Translator) Translate(pkt *rtp.Packet)

Jump to

Keyboard shortcuts

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