whip

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParamsUnavailable = psrpc.NewErrorf(psrpc.InvalidArgument, "codec parameters unavailable in sample")
)

Functions

func NewWHIPHandler

func NewWHIPHandler(webRTCConfig *rtcconfig.WebRTCConfig) *whipHandler

Types

type HealthHandlers added in v1.2.2

type HealthHandlers map[string]http.HandlerFunc

type MediaSink

type MediaSink interface {
	PushSample(s *media.Sample, ts time.Duration) error
	Close() error
	SetStatsGatherer(g *stats.LocalMediaStatsGatherer)
}

type RelayMediaSink

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

func NewRelayMediaSink

func NewRelayMediaSink(logger logger.Logger) *RelayMediaSink

func (*RelayMediaSink) Close

func (rs *RelayMediaSink) Close() error

func (*RelayMediaSink) PushSample

func (rs *RelayMediaSink) PushSample(s *media.Sample, ts time.Duration) error

func (*RelayMediaSink) SetStatsGatherer added in v1.3.0

func (sp *RelayMediaSink) SetStatsGatherer(st *stats.LocalMediaStatsGatherer)

func (*RelayMediaSink) SetWriter

func (rs *RelayMediaSink) SetWriter(w io.WriteCloser) error

type SDKMediaSink

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

func NewSDKMediaSink

func NewSDKMediaSink(
	l logger.Logger, p *params.Params, sdkOutput *lksdk_output.LKSDKOutput,
	codecParameters webrtc.RTPCodecParameters, streamKind types.StreamKind,
	outputSync *utils.TrackOutputSynchronizer,
) *SDKMediaSink

func (*SDKMediaSink) AddTrack added in v1.3.0

func (sp *SDKMediaSink) AddTrack(quality livekit.VideoQuality)

func (*SDKMediaSink) Close

func (sp *SDKMediaSink) Close() error

func (*SDKMediaSink) SetWritePLI added in v1.3.0

func (sp *SDKMediaSink) SetWritePLI(quality livekit.VideoQuality, writePLI func()) *SDKMediaSinkTrack

type SDKMediaSinkTrack added in v1.3.0

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

func (*SDKMediaSinkTrack) Close added in v1.3.0

func (t *SDKMediaSinkTrack) Close() error

func (*SDKMediaSinkTrack) ForceKeyFrame added in v1.3.0

func (t *SDKMediaSinkTrack) ForceKeyFrame() error

func (*SDKMediaSinkTrack) OnBind added in v1.3.0

func (t *SDKMediaSinkTrack) OnBind() error

func (*SDKMediaSinkTrack) OnUnbind added in v1.3.0

func (t *SDKMediaSinkTrack) OnUnbind() error

func (*SDKMediaSinkTrack) PushSample added in v1.3.0

func (t *SDKMediaSinkTrack) PushSample(s *media.Sample, ts time.Duration) error

func (*SDKMediaSinkTrack) SetStatsGatherer added in v1.3.0

func (t *SDKMediaSinkTrack) SetStatsGatherer(st *stats.LocalMediaStatsGatherer)

type WHIPRelayHandler

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

func NewWHIPRelayHandler

func NewWHIPRelayHandler(whipServer *WHIPServer) *WHIPRelayHandler

func (*WHIPRelayHandler) ServeHTTP

func (h *WHIPRelayHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WHIPServer

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

func NewWHIPServer

func NewWHIPServer(rpcClient rpc.IngressHandlerClient) *WHIPServer

func (*WHIPServer) AssociateRelay

func (s *WHIPServer) AssociateRelay(resourceId string, kind types.StreamKind, token string, w io.WriteCloser) error

func (*WHIPServer) IsIdle

func (s *WHIPServer) IsIdle() bool

func (*WHIPServer) Start

func (s *WHIPServer) Start(
	conf *config.Config,
	onPublish func(streamKey, resourceId string, ihs rpc.IngressHandlerServerImpl) (*params.Params, func(mimeTypes map[types.StreamKind]string, err error) *stats.LocalMediaStatsGatherer, func(error), error),
	healthHandlers HealthHandlers,
) error

func (*WHIPServer) Stop

func (s *WHIPServer) Stop()

Jump to

Keyboard shortcuts

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