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