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 ReleaseStaticPushObject ¶
func ReleaseStaticPushObject(rtmpurl string)
Types ¶
type RtmpRelay ¶
type RtmpRelay struct { PlayUrl string PublishUrl string // contains filtered or unexported fields }
func NewRtmpRelay ¶
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)
Click to show internal directories.
Click to hide internal directories.