RDK Documentation (Open Sourced RDK Components)
main_aamp.cpp File Reference

Advanced Adaptive Media Player (AAMP) More...

#include "main_aamp.h"
#include "AampConfig.h"
#include "AampCacheHandler.h"
#include "AampUtils.h"
#include "helper/AampDrmHelper.h"
#include "StreamAbstractionAAMP.h"
#include "aampgstplayer.h"
#include <dlfcn.h>
#include <termios.h>
#include <errno.h>
#include <regex>
Include dependency graph for main_aamp.cpp:

Go to the source code of this file.

Macros

#define ERROR_STATE_CHECK_VOID()
 
#define ERROR_STATE_CHECK_VAL(val)
 
#define ERROR_OR_IDLE_STATE_CHECK_VOID()
 
#define NOT_IDLE_AND_NOT_RELEASED_STATE_CHECK_VOID()
 
#define ERROR_OR_IDLE_STATE_CHECK_VAL(val)
 
#define PLAYING_STATE_CHECK()
 

Functions

static gboolean SeekAfterPrepared (gpointer ptr)
 

Variables

AampConfiggpGlobalConfig =NULL
 Global configuration.
 
AampLogManagermLogObj =NULL
 
static bool iarmInitialized = false
 

yes

Advanced Adaptive Media Player (AAMP)

Definition in file main_aamp.cpp.

Macro Definition Documentation

◆ ERROR_STATE_CHECK_VOID

#define ERROR_STATE_CHECK_VOID ( )
Value:
PrivAAMPState state = GetState(); \
if( state == eSTATE_ERROR){ \
AAMPLOG_WARN("operation is not allowed when player in eSTATE_ERROR state !");\
return; \
}

Definition at line 55 of file main_aamp.cpp.

◆ ERROR_STATE_CHECK_VAL

#define ERROR_STATE_CHECK_VAL (   val)
Value:
PrivAAMPState state = GetState(); \
if( state == eSTATE_ERROR){ \
AAMPLOG_WARN("operation is not allowed when player in eSTATE_ERROR state !");\
return val; \
}

Definition at line 62 of file main_aamp.cpp.

◆ ERROR_OR_IDLE_STATE_CHECK_VOID

#define ERROR_OR_IDLE_STATE_CHECK_VOID ( )
Value:
PrivAAMPState state = GetState(); \
if( state == eSTATE_ERROR || state == eSTATE_IDLE){ \
AAMPLOG_WARN("operation is not allowed when player in %s state !",\
(state == eSTATE_ERROR) ? "eSTATE_ERROR" : "eSTATE_IDLE" );\
return; \
}

Definition at line 69 of file main_aamp.cpp.

◆ NOT_IDLE_AND_NOT_RELEASED_STATE_CHECK_VOID

#define NOT_IDLE_AND_NOT_RELEASED_STATE_CHECK_VOID ( )
Value:
PrivAAMPState state = GetState(); \
if( state != eSTATE_IDLE && state != eSTATE_RELEASED){ \
AAMPLOG_WARN("operation is not allowed when player not in eSTATE_IDLE or eSTATE_RELEASED state !");\
return; \
}

Definition at line 77 of file main_aamp.cpp.

◆ ERROR_OR_IDLE_STATE_CHECK_VAL

#define ERROR_OR_IDLE_STATE_CHECK_VAL (   val)
Value:
PrivAAMPState state = GetState(); \
if( state == eSTATE_ERROR || state == eSTATE_IDLE){ \
AAMPLOG_WARN("operation is not allowed in %s state !",\
(state == eSTATE_ERROR) ? "eSTATE_ERROR" : "eSTATE_IDLE" );\
return val; \
}

Definition at line 84 of file main_aamp.cpp.

◆ PLAYING_STATE_CHECK

#define PLAYING_STATE_CHECK ( )
Value:
PrivAAMPState state = GetState(); \
if( state != eSTATE_STOPPED && state != eSTATE_IDLE && state != eSTATE_COMPLETE && state != eSTATE_RELEASED){ \
AAMPLOG_WARN("Operation is not allowed when player in playing state !!");\
return; \
}

Definition at line 92 of file main_aamp.cpp.

eSTATE_STOPPED
@ eSTATE_STOPPED
Definition: AampEvent.h:168
eSTATE_ERROR
@ eSTATE_ERROR
Definition: AampEvent.h:170
eSTATE_RELEASED
@ eSTATE_RELEASED
Definition: AampEvent.h:171
PrivAAMPState
PrivAAMPState
Mapping all required status codes based on JS player requirement. These requirements may be forced by...
Definition: AampEvent.h:156
eSTATE_IDLE
@ eSTATE_IDLE
Definition: AampEvent.h:158
eSTATE_COMPLETE
@ eSTATE_COMPLETE
Definition: AampEvent.h:169