Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoPublisher = errors.New("No publisher") ErrInvalidReq = errors.New("invalid req url path") ErrNoSupportVideoCodec = errors.New("no support video codec") ErrNoSupportAudioCodec = errors.New("no support audio codec") )
View Source
var (
ErrNoKey = errors.New("No key for cache")
)
Functions ¶
This section is empty.
Types ¶
type Source ¶
func (*Source) GetCacheInc ¶
func (self *Source) GetCacheInc() *TSCacheItem
func (*Source) SendPacket ¶
type TSCache ¶
type TSCache struct {
// contains filtered or unexported fields
}
func NewTSCache ¶
func NewTSCache() *TSCache
func (*TSCache) Get ¶
func (self *TSCache) Get(key string) *TSCacheItem
func (*TSCache) Set ¶
func (self *TSCache) Set(key string, e *TSCacheItem)
type TSCacheItem ¶
type TSCacheItem struct {
// contains filtered or unexported fields
}
func NewTSCacheItem ¶
func NewTSCacheItem(id string) *TSCacheItem
func (*TSCacheItem) GenM3U8PlayList ¶
func (self *TSCacheItem) GenM3U8PlayList() ([]byte, error)
TODO: found data race, fix it
func (*TSCacheItem) ID ¶
func (self *TSCacheItem) ID() string
func (*TSCacheItem) SetItem ¶
func (self *TSCacheItem) SetItem(key string, item TSItem)
Click to show internal directories.
Click to hide internal directories.