Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModelMerged = 0 ModelConvertToMP4 = 1 )
View Source
const ( CryptMethodAES = "AES-128" CryptMethodNONE = "NONE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptMeta ¶
type Event ¶
type Event struct {
*Segment
Merged *bool
MergedFilePath string
MergeErr string // 仅在Merged不为nil且*Merged为false时不为nil
ConvToMP4 *bool
ConvToMP4Err string // 仅在ConvToMP4不为nil且*ConvToMP4为false时不为nil
MP4FilePath string
}
Segment, Merger和ConvToMP4中有且只有一个为非nil
type Option ¶
type PlayInfo ¶
type PlayInfo struct {
M3u8Url string
ProgramId int64
BandWidth int64
Resolution Resolution
}
type Resolution ¶
type Result ¶
type Result struct {
Segments []Segment
Merged bool
MergeErr string
MergedFilePath string
ConvToMP4 bool
ConvToMP4Err string
MP4FilePath string
}
Click to show internal directories.
Click to hide internal directories.