#include <libmpd++/Representation.hh>
Public Types | |
using | time_type = std::chrono::system_clock::time_point |
The type used to represent date-time values in this class. | |
using | duration_type = std::chrono::microseconds |
The type used to represent duration values in this class. | |
![]() | |
enum | VideoScan { VIDEO_SCAN_PROGRESSIVE , VIDEO_SCAN_INTERLACED , VIDEO_SCAN_UNKNOWN } |
Representation class
This is the container for Representation elements from an MPD and follows the schema description of RepresentationType from ISO 23009-1:2022 Clause 5.3.5.3.
using com::bbc::libmpdpp::Representation::duration_type = std::chrono::microseconds |
The type used to represent duration values in this class.
using com::bbc::libmpdpp::Representation::time_type = std::chrono::system_clock::time_point |
The type used to represent date-time values in this class.
com::bbc::libmpdpp::Representation::Representation | ( | ) |
Default constructor
Create an empty Representation object
com::bbc::libmpdpp::Representation::Representation | ( | const Representation & | to_copy | ) |
Copy constructor
Create a new Representation as a copy of to_copy
.
to_copy | The Representation object to copy into the new Representation. |
com::bbc::libmpdpp::Representation::Representation | ( | Representation && | to_move | ) |
Move constructor
Create a new Representation using the values and resources of to_move
.
to_move | The Representation object take the values and resources from to create the new Representation. |
|
inlinevirtual |
Destructor
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the AdaptationSet this Representation is attached to
Gets the AdaptationSet object that this Representation is a child of. If the Representation has not been added to an AdaptationSet then nullptr
is returned.
nullptr
.
|
inline |
Get the AdaptationSet this Representation is attached to
Gets the AdaptationSet object that this Representation is a child of. If the Representation has not been added to an AdaptationSet then nullptr
is returned.
nullptr
. std::list< BaseURL > com::bbc::libmpdpp::Representation::getBaseURLs | ( | ) | const |
Get the list of relevant BaseURLs
Get the list of relevant BaseURLs, resolved to absolute URLs when possible.
URI com::bbc::libmpdpp::Representation::getInitializationURL | ( | ) | const |
URI com::bbc::libmpdpp::Representation::getMediaURL | ( | unsigned long | segment_number | ) | const |
MPD * com::bbc::libmpdpp::Representation::getMPD | ( | ) |
Get the MPD this Representation is attached to
Gets the MPD object this Representation is attached to. This is the equivalent of:
nullptr
const MPD * com::bbc::libmpdpp::Representation::getMPD | ( | ) | const |
Get the MPD this Representation is attached to
Gets the MPD object this Representation is attached to. This is the equivalent of:
nullptr
Period * com::bbc::libmpdpp::Representation::getPeriod | ( | ) |
Get the Period this Representation is attached to
Gets the Period object this Representation is attached to. This is the equivalent of:
nullptr
. const Period * com::bbc::libmpdpp::Representation::getPeriod | ( | ) | const |
Get the Period this Representation is attached to
Gets the Period object this Representation is attached to. This is the equivalent of:
nullptr
.
|
inline |
|
inline |
|
inline |
|
inline |
SegmentAvailability com::bbc::libmpdpp::Representation::initialisationSegmentAvailability | ( | ) | const |
Get the segment availability information of the initialisation segment
This returns the full segment availability information for the initialisation segment. If no initialization segment is available then the SegmentAvailability object returned will have an empty URL.
bool com::bbc::libmpdpp::Representation::isSelected | ( | ) | const |
Is this Representation selected by its AdaptationSet?
true
if the Representation is selected in its AdaptationSet.
|
inline |
Representation & com::bbc::libmpdpp::Representation::operator= | ( | const Representation & | to_copy | ) |
Copy operator
Make this Representation a copy of to_copy
.
to_copy | The Representation object to copy into this Representation. |
Representation & com::bbc::libmpdpp::Representation::operator= | ( | Representation && | to_move | ) |
Move operator
Make this Representation a copy of to_move
by moving the values and resources.
to_move | The Representation object to move into this Representation. |
bool com::bbc::libmpdpp::Representation::operator== | ( | const Representation & | to_compare | ) | const |
Equality operator
Check if to_compare
contains the same value as this Representation.
to_compare | The other Representation to compare to this Representation. |
true
if the values match, otherwise false
.
|
inline |
|
inline |
|
inline |
|
inline |
SegmentAvailability com::bbc::libmpdpp::Representation::segmentAvailability | ( | const time_type & | query_time | ) | const |
Get the full segment availability information
This returns the full segment availability information for the first segment on or after the query_time
provided.
If no segment is available then the SegmentAvailability object returned will have an empty URL.
query_time | The system wallclock time we are querying for. |