Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadHLS ¶
DownloadHLS 下载一个已结束的 HLS 媒体播放列表,并将解密后的媒体分片串接到 target。
Types ¶
type MediaEndpoint ¶
type MediaEndpoint struct {
// contains filtered or unexported fields
}
MediaEndpoint 提供图片与 HLS 预览媒体的下载 capability。
func NewMedia ¶
func NewMedia(fetch Fetch) *MediaEndpoint
NewMedia 用 transport 提供的原始资源读取回调构造 media capability。
func (*MediaEndpoint) DownloadHLS ¶
func (e *MediaEndpoint) DownloadHLS(playlistURL, target string) (int64, error)
DownloadHLS 下载已结束的 HLS 预览媒体,委托包级纯实现。
func (*MediaEndpoint) DownloadImage ¶
func (e *MediaEndpoint) DownloadImage(sourceURL, target string) (int64, error)
DownloadImage 下载并还原图片媒体,委托包级纯实现。
Click to show internal directories.
Click to hide internal directories.