rtmp

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

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) 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(streamKey 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 string) 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 RTMPRelay

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

func NewRTMPRelay

func NewRTMPRelay(rtmpServer *RTMPServer) *RTMPRelay

func (*RTMPRelay) Start

func (r *RTMPRelay) Start(conf *config.Config) error

func (*RTMPRelay) Stop

func (r *RTMPRelay) Stop() 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(streamKey string, w io.WriteCloser) error

func (*RTMPServer) DissociateRelay

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

func (*RTMPServer) Start

func (s *RTMPServer) Start(conf *config.Config, onPublish func(streamKey string) 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