TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

#include <tshlsMediaKey.h>

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

Public Member Functions

 MediaKey ()=default
bool isEncrypted () const
bool isRawEncryptionKey () const
virtual UString toString () const override
UString urlString () const

Public Attributes

UString file_path {}
 Absolute file path, in operating system native format.
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.

Constructor & Destructor Documentation

◆ MediaKey()

ts::hls::MediaKey::MediaKey ( )
default

Constructor.

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 or file path string to use.

Returns
The URL or file path 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: