Documentation
¶
Index ¶
Constants ¶
View Source
const (
MasterPlaylistName = "master.m3u8"
)
Variables ¶
This section is empty.
Functions ¶
func SetLogger ¶
func SetLogger(l *zap.SugaredLogger)
Types ¶
type CachedVideo ¶
type CachedVideo struct {
// contains filtered or unexported fields
}
func (*CachedVideo) DirName ¶
func (v *CachedVideo) DirName() string
func (*CachedVideo) Size ¶
func (v *CachedVideo) Size() int64
type Client ¶
type Client struct { *Configuration // contains filtered or unexported fields }
func New ¶
func New(cfg *Configuration) Client
func (Client) CacheVideo ¶
func (Client) Get ¶
func (c Client) Get(kind, lbryURL, sdHash string) (*CachedVideo, Downloadable)
Get returns either a cached video or downloadable instance for further processing.
func (Client) GetCachedVideo ¶
func (c Client) GetCachedVideo(sdHash string) *CachedVideo
func (Client) RestoreCache ¶
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
func Configure ¶
func Configure() *Configuration
func (*Configuration) CacheSize ¶
func (c *Configuration) CacheSize(size int64) *Configuration
CacheSize defines local disk cache size for downloaded transcoded videos.
func (*Configuration) HTTPClient ¶
func (c *Configuration) HTTPClient(httpClient HTTPRequester) *Configuration
func (*Configuration) Server ¶
func (c *Configuration) Server(server string) *Configuration
Server sets transcoder server API address.
func (*Configuration) VideoPath ¶
func (c *Configuration) VideoPath(videoPath string) *Configuration
Server sets transcoder server API address.
type Downloadable ¶
type HTTPRequester ¶
Click to show internal directories.
Click to hide internal directories.