TSDuck v3.45-4787
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

Description of an encryption key in an HLS media segment. More...

#include <tshlsMediaKey.h>

Inheritance diagram for ts::hls::MediaKey:
Collaboration diagram for ts::hls::MediaKey:

Public Member Functions

 MediaKey ()=default
 Constructor.
 
bool isEncrypted () const
 Check if the media segment is encrypted.
 
bool isRawEncryptionKey () const
 Check if the encryption key is in the default raw binary format.
 
virtual UString toString () const override
 Convert to a string object.
 
UString urlString () const
 Get the URL string to use.
 

Public Attributes

UString file_path {}
 Full file path.
 
UString format {}
 Encryption key format (empty or "identity" means raw binary).
 
ByteBlock iv {}
 Initialization vector for encryption.
 
UString method {}
 Encryption key method (empty or "NONE" means unencrypted).
 
UString relative_uri {}
 Relative URI, verbatime from playlist.
 
URL url {}
 Full URL, invalid if accessed by file path only.
 

Detailed Description

Description of an encryption key in an HLS media segment.

Member Function Documentation

◆ isEncrypted()

bool ts::hls::MediaKey::isEncrypted ( ) const

Check if the media segment is encrypted.

Returns
True if the media segment is encrypted, false otherwise.

◆ isRawEncryptionKey()

bool ts::hls::MediaKey::isRawEncryptionKey ( ) const

Check if the encryption key is in the default raw binary format.

Returns
True if the encryption key is in the default raw binary format, false otherwise.

◆ urlString()

UString ts::hls::MediaElement::urlString ( ) const
inherited

Get the URL string to use.

Returns
The URL string to use.

◆ toString()

virtual UString ts::hls::MediaElement::toString ( ) const
overridevirtualinherited

Convert to a string object.

Returns
This object, converted as a string.

Implements ts::StringifyInterface.

Reimplemented in ts::hls::AltPlayList, and ts::hls::MediaPlayList.


The documentation for this class was generated from the following file: