Documentation
¶
Overview ¶
Package decryptor handles decryption of encrypted DASH segments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseIV ¶
ParseIV parses a hex-encoded IV string (from #EXT-X-KEY IV attribute). Format: 0x... or plain hex string
func SegmentIV ¶
SegmentIV creates a default IV from segment sequence number. HLS spec: if no IV is specified, use the segment sequence number as a big-endian 128-bit value.
func ValidateKey ¶
ValidateKey checks if the decryption key format is valid.
Types ¶
type Decryptor ¶
type Decryptor struct {
// contains filtered or unexported fields
}
Decryptor handles decryption of encrypted media segments.
func New ¶
New creates a new Decryptor with the given decryption key. keyString should be in format "KID:KEY" where both are 32 hex characters. Empty keyString creates a no-op decryptor.
type HLSDecryptor ¶
type HLSDecryptor struct {
// contains filtered or unexported fields
}
HLSDecryptor handles AES-128 decryption for HLS streams.
func NewHLSDecryptor ¶
func NewHLSDecryptor(client *http.Client, headers map[string]string) *HLSDecryptor
NewHLSDecryptor creates a new HLS decryptor.