Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Aes128 = new(aes128)
Functions ¶
Types ¶
type Config ¶
type Config struct {
Dir string `json:"dir,omitempty" yaml:"dir"`
UserAgent string `json:"user_agent,omitempty" yaml:"userAgent"`
RequestTimeout time.Duration `json:"request_timeout,omitempty" yaml:"requestTimeout"`
Ext string `json:"ext,omitempty" yaml:"ext"`
TsGoNum int `json:"ts_go_num,omitempty" yaml:"tsGoNum"`
}
var (
Cfg Config
)
type Decryption ¶
type Decryption interface {
// IsNeed 判断是否需要该解密算法
// 获取解密需要使用的密钥等
// head 为m3u8文件中的 #EXT-X-KEY:METHOD=....
// 如果返回 true 会使用 Decrypt 进行解密
IsNeed(head []byte) bool
// Decrypt 进行解密, 返回解密后的数据
Decrypt(dst []byte) ([]byte, error)
}
Decryption handler
Click to show internal directories.
Click to hide internal directories.