Documentation ¶
Index ¶
- Variables
- func NewWHIPHandler(webRTCConfig *rtcconfig.WebRTCConfig) *whipHandler
- type HealthHandlers
- type MediaSink
- type RelayMediaSink
- type SDKMediaSink
- type SDKMediaSinkTrack
- func (t *SDKMediaSinkTrack) Close() error
- func (t *SDKMediaSinkTrack) ForceKeyFrame() error
- func (t *SDKMediaSinkTrack) OnBind() error
- func (t *SDKMediaSinkTrack) OnUnbind() error
- func (t *SDKMediaSinkTrack) PushSample(s *media.Sample, ts time.Duration) error
- func (t *SDKMediaSinkTrack) SetStatsGatherer(st *stats.LocalMediaStatsGatherer)
- type WHIPRelayHandler
- type WHIPServer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)Functions ¶
func NewWHIPHandler ¶
func NewWHIPHandler(webRTCConfig *rtcconfig.WebRTCConfig) *whipHandler
Types ¶
type HealthHandlers ¶ added in v1.2.2
type HealthHandlers map[string]http.HandlerFunc
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 (*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 (*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()
Click to show internal directories.
Click to hide internal directories.