Native Player
1.0
|
This class is responsible for parsing DASH manifest file from the given URL. More...
#include <dash_manifest.h>
Public Member Functions | |
~DashManifest () | |
Destroys DashManifest object. More... | |
std::vector< AudioStream > | GetAudioStreams () const |
std::vector< VideoStream > | GetVideoStreams () const |
std::unique_ptr< MediaSegmentSequence > | GetSequence (MediaStreamType type, uint32_t id) |
std::unique_ptr< MediaSegmentSequence > | GetAudioSequence (uint32_t id) |
std::unique_ptr< MediaSegmentSequence > | GetVideoSequence (uint32_t id) |
const std::string & | GetDuration () const |
Static Public Member Functions | |
static std::unique_ptr< DashManifest > | ParseMPD (const std::string &url, ContentProtectionVisitor *visitor=nullptr) |
Friends | |
template<typename T , class... Args> | |
std::unique_ptr< T > | MakeUnique (Args &&...args) |
This class is responsible for parsing DASH manifest file from the given URL.
This class provides information about the media streams available in the DASH manifest. This class allows to:
For more details please refer to:
Definition at line 74 of file dash_manifest.h.
DashManifest::~DashManifest | ( | ) |
Destroys DashManifest
object.
std::unique_ptr<MediaSegmentSequence> DashManifest::GetAudioSequence | ( | uint32_t | id | ) |
Provides a segment sequence for the given parameter among audio stream representations.
[in] | id | An information about which audio stream representation MediaSegmentSequence is demanded. |
MediaSegmentSequence
object for the given id
. std::vector<AudioStream> DashManifest::GetAudioStreams | ( | ) | const |
Provides information about available AudioStream
representations.
AudioStream
representations parsed from DASH manifest. const std::string& DashManifest::GetDuration | ( | ) | const |
Provides duration of media content in text format parsed from DASH manifest.
xs:duration
which is in the following form "PnYnMnDTnHnMnS" where:std::unique_ptr<MediaSegmentSequence> DashManifest::GetSequence | ( | MediaStreamType | type, |
uint32_t | id | ||
) |
Provides a segment sequence for the given parameters. This method calls DashManifest::GetAudioSequence or DashManifest::GetVideoSequence depending of passed type
.
[in] | type | An information about MediaStreamType for which MediaSegmentSequence will be returned. |
[in] | id | An information about which media stream representation MediaSegmentSequence is demanded. |
MediaSegmentSequence
object for the given type
and id
. std::unique_ptr<MediaSegmentSequence> DashManifest::GetVideoSequence | ( | uint32_t | id | ) |
Provides a segment sequence for the given parameter among video stream representations.
[in] | id | An information about which video stream representation MediaSegmentSequence is demanded. |
MediaSegmentSequence
object for the given id
. std::vector<VideoStream> DashManifest::GetVideoStreams | ( | ) | const |
Provides information about available VideoStream
representations.
VideoStream
representations parsed from DASH manifest.
|
static |
Parses DASH manifest and creates DashManifest object from given URL.
[in] | url | A localization of the DASH manifest file |
[in] | visitor | A ContentProtectionVisitor which is used to extract content protection information from the DASH manifest |
empty unique_ptr
in case of an error e.g. wrong URL.
|
friend |