Documentation
¶
Index ¶
- func ClientAbsoluteURL(base *url.URL, relative string) (*url.URL, error)
- func FetchMediaPlaylist(httpClient *znet.Client, rawURL string) (*playlist.Media, []byte, error)
- func FetchPlaylist(httpClient *znet.Client, rawURL string) (playlist.Playlist, []byte, error)
- func FetchSegment(httpClient *znet.Client, rawURL string) ([]byte, error)
- func PickLeadingPlaylist(variants []*playlist.MultivariantVariant) *playlist.MultivariantVariant
- type AfterFirstPlaylistDownloadFunc
- type ClientAfterDownloadSegmentFunc
- type Publisher
- type PullSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchMediaPlaylist ¶ added in v0.2.6
func FetchPlaylist ¶ added in v0.2.6
func FetchSegment ¶ added in v0.2.6
func PickLeadingPlaylist ¶ added in v0.2.6
func PickLeadingPlaylist(variants []*playlist.MultivariantVariant) *playlist.MultivariantVariant
Types ¶
type ClientAfterDownloadSegmentFunc ¶
type ClientAfterDownloadSegmentFunc func(*playlist.MediaSegment, []byte)
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher(ctx context.Context, session logic.ICustomizePubSessionContext) *Publisher
type PullSession ¶
type PullSession struct { URI string AfterFirstPlaylistDownload AfterFirstPlaylistDownloadFunc AfterDownloadSegment ClientAfterDownloadSegmentFunc // contains filtered or unexported fields }
func NewPullSession ¶
func NewPullSession(uri string, hc *znet.Client, afterDownloadSegment ClientAfterDownloadSegmentFunc) *PullSession
func (*PullSession) SetParallel ¶
func (c *PullSession) SetParallel(n int)
func (*PullSession) Start ¶
func (c *PullSession) Start() error
func (*PullSession) Wait ¶
func (c *PullSession) Wait() chan error
Wait waits for any error of the Client.
Click to show internal directories.
Click to hide internal directories.