TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::hls::MediaElement Class Reference

#include <tshlsMediaElement.h>

Inheritance diagram for ts::hls::MediaElement:
Collaboration diagram for ts::hls::MediaElement:

Public Member Functions

 MediaElement ()=default
virtual UString toString () const override
UString urlString () const

Public Attributes

UString file_path {}
 Absolute file path, in operating system native format.
UString relative_uri {}
 Relative URI, verbatime from playlist.
URL url {}
 Full URL, invalid if accessed by file path only.

Detailed Description

Description of a media "element" (sub-playlist or segment) inside an HLS playlist.

Constructor & Destructor Documentation

◆ MediaElement()

ts::hls::MediaElement::MediaElement ( )
default

Constructor.

Member Function Documentation

◆ urlString()

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

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
overridevirtual

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: