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

#include <tshlsMediaSegment.h>

Inheritance diagram for ts::hls::MediaSegment:
Collaboration diagram for ts::hls::MediaSegment:

Public Member Functions

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

Public Attributes

BitRate bitrate = 0
 Indicative bitrate.
cn::milliseconds duration {}
 Segment duration in milliseconds.
UString file_path {}
 Absolute file path, in operating system native format.
bool gap = false
 Media is a "gap", should not be loaded by clients.
MediaKey key {}
 Encryption key for the segment.
UString relative_uri {}
 Relative URI, verbatime from playlist.
UString title {}
 Optional segment title.
URL url {}
 Full URL, invalid if accessed by file path only.

Detailed Description

Description of a media segment in an HLS playlist.

Constructor & Destructor Documentation

◆ MediaSegment()

ts::hls::MediaSegment::MediaSegment ( )
default

Constructor.

Member Function Documentation

◆ 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: