jsbindings/jscontroller-jsbindings.cpp
/**
 * @brief Callback invoked from JS to get the CC enabled property
 *
 * @param[in] context JS execution context
 * @param[in] thisObject JSObject to search for the property
 * @param[in] propertyName JSString containing the name of the property to get
 * @param[out] exception pointer to a JSValueRef in which to return an exception, if any
 *
 * @retval property's value if object has the property, otherwise NULL
 */


@retval property's value if object has the property, otherwise NULL
@retval property ' s value if object has the property otherwise NULL
static JSValueRef AAMPJSC_getProperty_closedCaptionEnabled(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef* exception)
{
	LOG("[AAMP_JSController] %s()\n", __FUNCTION__);
	AAMP_JSController* obj = (AAMP_JSController*) JSObjectGetPrivate(thisObject);
	if (obj == NULL)
	{
		*exception = aamp_GetException(context, AAMPJS_MISSING_OBJECT, "Can only call AAMP_JSController.closedCaptionEnabled on instances of AAMP_JSController");
		return JSValueMakeUndefined(context);
	}
	return JSValueMakeBoolean(context, obj->_closedCaptionEnabled);
}
static JSValueRef AAMPJSC_getProperty_closedCaptionEnabled ( JSContextRef context , JSObjectRef thisObject , JSStringRef propertyName , JSValueRef * exception ) { LOG ( " \n " , __FUNCTION__ ) ; AAMP_JSController * obj = ( AAMP_JSController * ) JSObjectGetPrivate ( thisObject ) ; if ( obj == NULL ) { * exception = aamp_GetException ( context , AAMPJS_MISSING_OBJECT , " " ) ; return JSValueMakeUndefined ( context ) ; } return JSValueMakeBoolean ( context , obj -> _closedCaptionEnabled ) ; }
@brief Callback invoked from JS to get the CC enabled property
 @param[in] context JS execution context
 @param[in] thisObject JSObject to search for the property
 @param[in] propertyName JSString containing the name of the property to get
 @param[out] exception pointer to a JSValueRef in which to return an exception, if any
@brief Callback invoked from JS to get the CC enabled property @param [ in ] context JS execution context @param [ in ] thisObject JSObject to search for the property @param [ in ] propertyName JSString containing the name of the property to get @param [ out ] exception pointer to a JSValueRef in which to return an exception if any