jsbindings/jsbindings.cpp
/**
 * @brief Stops any prevailing AAMP instances before exit of program
 */
@brief Stops any prevailing AAMP instances before exit of program
@brief Stops any prevailing AAMP instances before exit of program
void __attribute__ ((destructor(101))) _aamp_term()
{
	LOG("[AAMP_JS] %s:%d\n", __FUNCTION__, __LINE__);
	pthread_mutex_lock(&mutex);
	if (NULL != _allocated_aamp)
	{
		LOG("[AAMP_JS] %s:%d stopping aamp\n", __FUNCTION__, __LINE__);
		_allocated_aamp->Stop();
		LOG("[AAMP_JS] %s:%d stopped aamp\n", __FUNCTION__, __LINE__);
	}
	pthread_mutex_unlock(&mutex);
	ClearAAMPPlayerInstances();
}
void __attribute__ ( ( destructor ( 101 ) ) ) _aamp_term ( ) { LOG ( " \n " , __FUNCTION__ , __LINE__ ) ; pthread_mutex_lock ( & mutex ) ; if ( NULL != _allocated_aamp ) { LOG ( " \n " , __FUNCTION__ , __LINE__ ) ; _allocated_aamp -> Stop ( ) ; LOG ( " \n " , __FUNCTION__ , __LINE__ ) ; } pthread_mutex_unlock ( & mutex ) ; ClearAAMPPlayerInstances ( ) ; }
@brief Stops any prevailing AAMP instances before exit of program
@brief Stops any prevailing AAMP instances before exit of program
//Clear any active js mediaplayer instances on term