rtmp

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: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RTMPHandler

type RTMPHandler struct {
	rtmp.DefaultHandler
	// contains filtered or unexported fields
}

func NewRTMPHandler

func NewRTMPHandler() *RTMPHandler

func (*RTMPHandler) Close added in v1.4.0

func (h *RTMPHandler) Close()

func (*RTMPHandler) OnAudio

func (h *RTMPHandler) OnAudio(timestamp uint32, payload io.Reader) error

func (*RTMPHandler) OnClose

func (h *RTMPHandler) OnClose()

func (*RTMPHandler) OnCloseCallback

func (h *RTMPHandler) OnCloseCallback(cb func(resourceId string))

func (*RTMPHandler) OnPublish

func (h *RTMPHandler) OnPublish(_ *rtmp.StreamContext, timestamp uint32, cmd *rtmpmsg.NetStreamPublish) error

func (*RTMPHandler) OnPublishCallback

func (h *RTMPHandler) OnPublishCallback(cb func(streamKey, resourceId string) (*params.Params, *stats.LocalMediaStatsGatherer, error))

func (*RTMPHandler) OnSetDataFrame

func (h *RTMPHandler) OnSetDataFrame(timestamp uint32, data *rtmpmsg.NetStreamSetDataFrame) error

func (*RTMPHandler) OnVideo

func (h *RTMPHandler) OnVideo(timestamp uint32, payload io.Reader) error

func (*RTMPHandler) SetWriter

func (h *RTMPHandler) SetWriter(w io.WriteCloser) error

type RTMPRelayHandler

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

func NewRTMPRelayHandler

func NewRTMPRelayHandler(rtmpServer *RTMPServer) *RTMPRelayHandler

func (*RTMPRelayHandler) ServeHTTP

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

type RTMPServer

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

func NewRTMPServer

func NewRTMPServer() *RTMPServer

func (*RTMPServer) AssociateRelay

func (s *RTMPServer) AssociateRelay(resourceId string, token string, w io.WriteCloser) error

func (*RTMPServer) CloseHandler added in v1.4.0

func (s *RTMPServer) CloseHandler(resourceId string)

func (*RTMPServer) DissociateRelay

func (s *RTMPServer) DissociateRelay(resourceId string) error

func (*RTMPServer) Start

func (s *RTMPServer) Start(conf *config.Config, onPublish func(streamKey, resourceId string) (*params.Params, *stats.LocalMediaStatsGatherer, error)) error

func (*RTMPServer) Stop

func (s *RTMPServer) Stop() error

Jump to

Keyboard shortcuts

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