lksdk_output

package
v1.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyFrameEmitter added in v1.3.0

type KeyFrameEmitter interface {
	ForceKeyFrame() error
}

type LKSDKOutput

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

func NewLKSDKOutput

func NewLKSDKOutput(ctx context.Context, p *params.Params) (*LKSDKOutput, error)

func (*LKSDKOutput) AddAudioTrack

func (s *LKSDKOutput) AddAudioTrack(mimeType string, disableDTX bool, stereo bool) (*lksdk.LocalTrack, error)

func (*LKSDKOutput) AddOutputs added in v1.3.0

func (s *LKSDKOutput) AddOutputs(o ...SampleProvider)

func (*LKSDKOutput) AddVideoTrack

func (s *LKSDKOutput) AddVideoTrack(layers []*livekit.VideoLayer, mimeType string) ([]*lksdk.LocalTrack, []*RTCPHandler, error)

func (*LKSDKOutput) Close

func (s *LKSDKOutput) Close() error

func (*LKSDKOutput) WriteRTCP added in v1.4.0

func (s *LKSDKOutput) WriteRTCP(pkts []rtcp.Packet) error

type PacketSink added in v1.4.0

type PacketSink interface {
	HandleRTCPPacket(pkt rtcp.Packet) error
}

type RTCPHandler added in v1.4.0

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

func (*RTCPHandler) HandlePLI added in v1.4.0

func (h *RTCPHandler) HandlePLI() error

func (*RTCPHandler) HandleRTCP added in v1.4.0

func (h *RTCPHandler) HandleRTCP(pkt rtcp.Packet) error

func (*RTCPHandler) SetKeyFrameEmitter added in v1.4.0

func (h *RTCPHandler) SetKeyFrameEmitter(k KeyFrameEmitter)

func (*RTCPHandler) SetPacketSink added in v1.4.0

func (h *RTCPHandler) SetPacketSink(p PacketSink)

type SampleProvider added in v1.3.0

type SampleProvider interface {
	Close() error
}

type Watchdog added in v1.4.0

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

func NewWatchdog added in v1.4.0

func NewWatchdog(onFire func(), deadline time.Duration) *Watchdog

func (*Watchdog) TrackAdded added in v1.4.0

func (w *Watchdog) TrackAdded()

func (*Watchdog) TrackBound added in v1.4.0

func (w *Watchdog) TrackBound()

func (*Watchdog) TrackUnbound added in v1.4.0

func (w *Watchdog) TrackUnbound()

Jump to

Keyboard shortcuts

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