rtmprelay

package
v0.0.0-...-31c0fb5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var G_PushUrlList []string = nil
View Source
var G_StaticPushMap = make(map[string](*StaticPush))
View Source
var (
	STATIC_RELAY_STOP_CTRL = "STATIC_RTMPRELAY_STOP"
)
View Source
var (
	STOP_CTRL = "RTMPRELAY_STOP"
)

Functions

func GetStaticPushList

func GetStaticPushList(appname string) ([]string, error)

func ReleaseStaticPushObject

func ReleaseStaticPushObject(rtmpurl string)

Types

type RtmpRelay

type RtmpRelay struct {
	PlayUrl    string
	PublishUrl string
	// contains filtered or unexported fields
}

func NewRtmpRelay

func NewRtmpRelay(playurl *string, publishurl *string) *RtmpRelay

func (*RtmpRelay) Start

func (self *RtmpRelay) Start() error

func (*RtmpRelay) Stop

func (self *RtmpRelay) Stop()

type StaticPush

type StaticPush struct {
	RtmpUrl string
	// contains filtered or unexported fields
}

func GetAndCreateStaticPushObject

func GetAndCreateStaticPushObject(rtmpurl string) *StaticPush

func GetStaticPushObject

func GetStaticPushObject(rtmpurl string) (*StaticPush, error)

func NewStaticPush

func NewStaticPush(rtmpurl string) *StaticPush

func (*StaticPush) HandleAvPacket

func (self *StaticPush) HandleAvPacket()

func (*StaticPush) IsStart

func (self *StaticPush) IsStart() bool

func (*StaticPush) Start

func (self *StaticPush) Start() error

func (*StaticPush) Stop

func (self *StaticPush) Stop()

func (*StaticPush) WriteAvPacket

func (self *StaticPush) WriteAvPacket(packet *av.Packet)

Jump to

Keyboard shortcuts

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