pusher

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpStreamerManager = &upStreamerManager{streams: sync.Map{}}

Functions

func GetAllStreamInfos

func GetAllStreamInfos() (infos []string)

func Handler

func Handler(h *avutil.RegisterHandler)

func Launch

func Launch(name string, pusher Pusher, duration time.Duration) error

func Stop

func Stop(name string) error

func StopAll

func StopAll()

Types

type Hook

type Hook interface {
	OnPlayOrPublish(info common.Info) error
}

type Pusher

type Pusher interface {
	Publish(ctx context.Context) error
}

type RtmpOverTcpUpStreamer

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

func NewRtmpPusher

func NewRtmpPusher(rtmpUrl string, filename string, option ...rtmp.Option) *RtmpOverTcpUpStreamer

func (*RtmpOverTcpUpStreamer) Publish

func (r *RtmpOverTcpUpStreamer) Publish(ctx context.Context) error

Jump to

Keyboard shortcuts

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