RDK Documentation (Open Sourced RDK Components)
fragmentcollector_mpd.h File Reference

Fragment collector MPEG DASH declarations. More...

#include "StreamAbstractionAAMP.h"
#include "AampJsonObject.h"
#include <string>
#include <stdint.h>
#include "libdash/IMPD.h"
#include "libdash/INode.h"
#include "libdash/IDASHManager.h"
#include "libdash/IProducerReferenceTime.h"
#include "libdash/xml/Node.h"
#include "libdash/helpers/Time.h"
#include "libdash/xml/DOMParser.h"
#include <libxml/xmlreader.h>
#include <thread>
#include "admanager_mpd.h"
Include dependency graph for fragmentcollector_mpd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ProfileInfo
 Manifest file adaptation and representation info. More...
 
struct  FragmentDescriptor
 Stores information of dash fragment. More...
 
class  StreamAbstractionAAMP_MPD
 Fragment collector for MPEG DASH. More...
 

Macros

#define MAX_MANIFEST_DOWNLOAD_RETRY_MPD   2
 

Functions

double aamp_GetPeriodNewContentDuration (dash::mpd::IMPD *mpd, IPeriod *period, uint64_t &curEndNumber)
 
double aamp_GetPeriodStartTimeDeltaRelativeToPTSOffset (IPeriod *period)
 Get difference between first segment start time and presentation offset from period. More...
 
double aamp_GetPeriodDuration (dash::mpd::IMPD *mpd, int periodIndex, uint64_t mpdDownloadTime=0)
 Get Period Duration. More...
 
Node * aamp_ProcessNode (xmlTextReaderPtr *reader, std::string url, bool isAd=false)
 Get xml node form reader. More...
 
uint64_t aamp_GetDurationFromRepresentation (dash::mpd::IMPD *mpd)
 Get duration though representation iteration. More...
 

yes

Fragment collector MPEG DASH declarations.

Definition in file fragmentcollector_mpd.h.


Data Structure Documentation

◆ ProfileInfo

struct ProfileInfo

Manifest file adaptation and representation info.

Definition at line 79 of file fragmentcollector_mpd.h.

Collaboration diagram for ProfileInfo:
Collaboration graph
Data Fields
int adaptationSetIndex
int representationIndex

Function Documentation

◆ aamp_GetPeriodStartTimeDeltaRelativeToPTSOffset()

double aamp_GetPeriodStartTimeDeltaRelativeToPTSOffset ( IPeriod *  period)

Get difference between first segment start time and presentation offset from period.

Return values
starttime delta in seconds

Definition at line 3661 of file fragmentcollector_mpd.cpp.

◆ aamp_GetPeriodDuration()

double aamp_GetPeriodDuration ( dash::mpd::IMPD *  mpd,
int  periodIndex,
uint64_t  mpdDownloadTime 
)

Get Period Duration.

Return values
periodduration in milli seconds

Definition at line 3966 of file fragmentcollector_mpd.cpp.

◆ aamp_ProcessNode()

Node* aamp_ProcessNode ( xmlTextReaderPtr *  reader,
std::string  url,
bool  isAd 
)

Get xml node form reader.

Return values
xmlnode

Definition at line 2914 of file fragmentcollector_mpd.cpp.

◆ aamp_GetDurationFromRepresentation()

uint64_t aamp_GetDurationFromRepresentation ( dash::mpd::IMPD *  mpd)

Get duration though representation iteration.

Return values
durationin milliseconds

Definition at line 4874 of file fragmentcollector_mpd.cpp.