 |
RDK Documentation (Open Sourced RDK Components)
|
20 #include "AampUtils.h"
36 bool replace(std::string &str,
const char *existingSubStringToReplace,
const char *replacementString)
48 struct timespec tspec;
71 bool aamp_WriteFile(std::string fileName,
const char* data,
size_t len,
MediaType &fileType,
unsigned int count,
const char *prefix)
76 std::size_t GetPrintableThreadID(
const std::thread &t )
static int replace(std::string &str, const std::string &from, uint64_t toNumber)
Replace matching token with given number.
int getHarvestConfigForMedia(MediaType fileType)
Get harvest config corresponds to Media type.
void aamp_DecodeUrlParameter(std::string &uriParam)
unescape uri-encoded uri parameter
bool aamp_WriteFile(std::string fileName, const char *data, size_t len, MediaType &fileType, unsigned int count, const char *prefix)
Write - file to storage.
bool aamp_IsLocalHost(std::string Hostname)
check is local or not from given hostname
struct timespec aamp_GetTimespec(int timeInMs)
To get the timespec.
float getWorkingTrickplayRate(float rate)
Get compatible trickplay for 6s cadense of iframe track from the given rates.
float getPseudoTrickplayRate(float rate)
Get reverse map the working rates to the rates given by platform player.
std::string aamp_getHostFromURL(std::string url)
Extract host string from url.
void getDefaultHarvestPath(std::string &value)
Get harvest path to dump the files.
long long aamp_GetCurrentTimeMS(void)
Get current time from epoch is milliseconds.