Documentation
¶
Index ¶
- type Gop
- type GopCache
- type HookSession
- func (session *HookSession) AddConsumer(consumerId string, subscriber IHookSessionSubscriber)
- func (session *HookSession) GetAllConsumer() []base.StatSub
- func (session *HookSession) GetAudioSeqHeaderMsg() *base.RtmpMsg
- func (session *HookSession) GetVideoSeqHeaderMsg() *base.RtmpMsg
- func (session *HookSession) OnMsg(msg base.RtmpMsg)
- func (session *HookSession) OnStop()
- func (session *HookSession) RemoveConsumer(consumerId string)
- type HookSessionMangaer
- type IHookSessionSubscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GopCache ¶
type GopCache struct {
// contains filtered or unexported fields
}
GopCache gop cache
func NewGopCache ¶
NewGopCache 创建 gop 缓存
func (*GopCache) GetGopCount ¶
type HookSession ¶
type HookSession struct {
// contains filtered or unexported fields
}
func NewHookSession ¶
func NewHookSession(uniqueKey, streamName string, hlssvr *hls.HlsServer, gopNum, singleGopMaxFrameNum int) *HookSession
func (*HookSession) AddConsumer ¶
func (session *HookSession) AddConsumer(consumerId string, subscriber IHookSessionSubscriber)
func (*HookSession) GetAllConsumer ¶
func (session *HookSession) GetAllConsumer() []base.StatSub
func (*HookSession) GetAudioSeqHeaderMsg ¶
func (session *HookSession) GetAudioSeqHeaderMsg() *base.RtmpMsg
func (*HookSession) GetVideoSeqHeaderMsg ¶
func (session *HookSession) GetVideoSeqHeaderMsg() *base.RtmpMsg
func (*HookSession) OnMsg ¶
func (session *HookSession) OnMsg(msg base.RtmpMsg)
func (*HookSession) OnStop ¶
func (session *HookSession) OnStop()
func (*HookSession) RemoveConsumer ¶
func (session *HookSession) RemoveConsumer(consumerId string)
type HookSessionMangaer ¶
type HookSessionMangaer struct {
// contains filtered or unexported fields
}
func GetHookSessionManagerInstance ¶
func GetHookSessionManagerInstance() *HookSessionMangaer
func (*HookSessionMangaer) GetHookSession ¶
func (m *HookSessionMangaer) GetHookSession(streamName string) (bool, *HookSession)
func (*HookSessionMangaer) RemoveHookSession ¶
func (m *HookSessionMangaer) RemoveHookSession(streamName string)
func (*HookSessionMangaer) SetHookSession ¶
func (m *HookSessionMangaer) SetHookSession(streamName string, session *HookSession)
type IHookSessionSubscriber ¶
Click to show internal directories.
Click to hide internal directories.