rtmprelay

package
v0.0.0-...-c4faa10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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