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

JavaScript bindings for AAMP. More...

#include <JavaScriptCore/JavaScript.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include "jsbindings-version.h"
#include "jsutils.h"
#include "main_aamp.h"
#include "priv_aamp.h"
Include dependency graph for jsbindings.cpp:

Go to the source code of this file.

Data Structures

struct  AAMP_JS
 Data structure of AAMP object. More...
 
class  AAMP_JSListener
 Event listener impl for AAMP events. More...
 
class  AAMP_JSListener_Progress
 Event listener impl for REPORT_PROGRESS AAMP event. More...
 
class  AAMP_JSListener_BitRateChanged
 Event listener impl for BITRATE_CHANGED AAMP event. More...
 
class  AAMP_JSListener_SpeedChanged
 Event listener impl for SPEED_CHANGED AAMP event. More...
 
class  AAMP_JSListener_TuneFailed
 Event listener impl for TUNE_FAILED AAMP event. More...
 
class  AAMP_JSListener_DRMMetadata
 Class handles JS Listener for DRM meta data operation. More...
 
class  AAMP_JSListener_AnomalyReport
 AAMP_JSListener_AnomalyReport to receive anomalyreport. More...
 
class  AAMP_JSListener_MetricsData
 AAMP_JSListener_MetricsData to receive aamp metrics. More...
 
class  AAMP_JSListener_CCHandleReceived
 Event listener impl for CC_HANDLE_RECEIVED AAMP event. More...
 
class  AAMP_JSListener_VideoMetadata
 Event listener impl for VIDEO_METADATA AAMP event. More...
 
class  AAMP_JSListener_BulkTimedMetadata
 Event listener impl for BULK_TIMED_METADATA AAMP event. More...
 
class  AAMP_JSListener_TimedMetadata
 Event listener impl for TIMED_METADATA AAMP event. More...
 
class  AAMP_JSListener_ContentGap
 Event listener impl for AAMP_EVENT_CONTENT_GAP event. More...
 
class  AAMP_JSListener_StatusChanged
 Event listener for STATUS_CHANGED AAMP event. More...
 
class  AAMP_JSListener_SpeedsChanged
 Event listener impl for SPEEDS_CHANGED AAMP event. More...
 
class  AAMP_JSListener_AdResolved
 Event listener impl for AD_RESOLVED AAMP event. More...
 
class  AAMP_JSListener_AdReservationStart
 Event listener impl for AD_RESOLVED AAMP event. More...
 
class  AAMP_JSListener_AdReservationEnd
 Event listener impl for AD_RESOLVED AAMP event. More...
 
class  AAMP_JSListener_AdPlacementStart
 Event listener impl for AD_RESOLVED AAMP event. More...
 
class  AAMP_JSListener_AdPlacementEnd
 Event listener impl for AD_RESOLVED AAMP event. More...
 
class  AAMP_JSListener_AdProgress
 Event listener impl for REPORT_AD_PROGRESS AAMP event. More...
 
class  AAMP_JSListener_AdPlacementEror
 Event listener impl for AD_RESOLVED AAMP event. More...
 
class  AAMP_JSListener_BufferingChanged
 Event listener impl for (AAMP_EVENT_BUFFER_UNDERFLOW) AAMP event. More...
 
class  AAMP_JSListener_Id3Metadata
 Event listener impl for (AAMP_JSListener_Id3Metadata) AAMP event. More...
 
class  AAMP_JSListener_DrmMessage
 Event listener impl for (AAMP_EVENT_DRM_MESSAGE) AAMP event. More...
 
class  AAMP_JSListener_ContentProtectionData
 Event listener impl for (AAMP_EVENT_CONTENT_PROTECTION_DATA_UPDATE) AAMP event. More...
 

Functions

void ClearAAMPPlayerInstances ()
 Clear any remaining/active AAMPPlayer instances.
 
JS_EXPORT JSGlobalContextRef JSContextGetGlobalContext (JSContextRef)
 Get the global JS execution context. More...
 
JSObjectRef AAMP_JS_AddEventTypeClass (JSGlobalContextRef context)
 Create a EventType JS object. More...
 
void aamp_ApplyPageHttpHeaders (PlayerInstanceAAMP *)
 applies the parsed custom http headers into the aamp More...
 
static JSObjectRef AAMP_class_constructor (JSContextRef context, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 callback invoked when AAMP is used along with 'new' More...
 
static JSValueRef AAMP_getProperty_closedCaptionEnabled (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the closedCaptionEnabled property value. More...
 
static bool AAMP_setProperty_closedCaptionEnabled (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
 Callback invoked from JS to set the closedCaptionEnabled property value. More...
 
static JSValueRef AAMP_getProperty_initialBufferTime (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the initialBufferTime property value. More...
 
static bool AAMP_setProperty_initialBufferTime (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
 Callback invoked from JS to set the initialBufferTime property value. More...
 
static JSValueRef AAMP_getProperty_trickPlayEnabled (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the trickPlayEnabled property value. More...
 
static bool AAMP_setProperty_trickPlayEnabled (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
 Callback invoked from JS to set the trickPlayEnabled property value. More...
 
static JSValueRef AAMP_getProperty_EventType (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the EventType property value. More...
 
static JSValueRef AAMP_getProperty_MediaType (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the mediaType property value. More...
 
static JSValueRef AAMP_getProperty_Version (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the version property value. More...
 
static JSValueRef AAMP_getProperty_AudioLanguage (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the audioLanguage property value. More...
 
static JSValueRef AAMP_getProperty_CurrentDRM (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the currentDRM property value. More...
 
static JSValueRef AAMP_getProperty_timedMetadata (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the timedMetadata property value. More...
 
static bool AAMP_setProperty_stallErrorCode (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
 Callback invoked from JS to set the stallErrorCode property value. More...
 
static bool AAMP_setProperty_stallTimeout (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
 Callback invoked from JS to set the stallTimeout property value. More...
 
static bool AAMP_setProperty_reportInterval (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
 Callback invoked from JS to set the reportInterval property value. More...
 
static bool AAMP_setProperty_enableNativeCC (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
 Callback invoked from JS to set the enableNativeCC property value. More...
 
static bool AAMP_setProperty_preferredCEAFormat (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
 Callback invoked from JS to set the preferred CEA format property value. More...
 
static void Event_init (JSContextRef ctx, JSObjectRef thisObject)
 Callback invoked from JS when an object of Event is first created. More...
 
static void Event_finalize (JSObjectRef thisObject)
 Callback invoked when an object of Event is finalized. More...
 
static JSClassRef Event_class_ref ()
 Creates a JavaScript class of Event for use with JSObjectMake. More...
 
static JSObjectRef Event_constructor (JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef *execption)
 callback invoked when Event is used along with 'new' More...
 
static JSValueRef AAMP_addEventListener (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to add an event listener for a particular event. More...
 
static JSValueRef AAMP_removeEventListener (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to remove an event listener. More...
 
static JSValueRef AAMP_setProperties (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set AAMP object's properties. More...
 
static JSValueRef AAMP_getProperties (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get AAMP object's properties. More...
 
static JSValueRef AAMP_tune (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to start playback for requested URL. More...
 
static JSValueRef AAMP_load (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to start playback for requested URL. More...
 
static JSValueRef AAMP_stop (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to stop active playback. More...
 
static JSValueRef AAMP_setRate (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set playback rate. More...
 
static JSValueRef AAMP_seek (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to perform seek to a particular playback position. More...
 
static JSValueRef AAMP_seekToLive (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to perform seek to live point. More...
 
static JSValueRef AAMP_setRect (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set video rectangle co-ordinates. More...
 
static JSValueRef AAMP_setVideoMute (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set video mute status. More...
 
static JSValueRef AAMP_setAudioVolume (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set audio volume. More...
 
static JSValueRef AAMP_setZoom (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set preferred zoom setting. More...
 
static JSValueRef AAMP_setLanguage (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set preferred audio language. More...
 
static JSValueRef AAMP_setSubscribeTags (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set list of subscribed tags. More...
 
static JSValueRef AAMP_addCustomHTTPHeader (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to add a custom HTTP header/s. More...
 
static JSValueRef AAMP_removeCustomHTTPHeader (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to remove custom HTTP headers. More...
 
static JSValueRef AAMP_setAds (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set an ad. More...
 
static JSValueRef AAMP_getAvailableAudioTracks (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get list of audio tracks. More...
 
static JSValueRef AAMP_getAudioTrack (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get current audio track. More...
 
static JSValueRef AAMP_getAudioTrackInfo (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get current audio track. More...
 
static JSValueRef AAMP_getTextTrackInfo (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get current text track info. More...
 
static JSValueRef AAMP_getPreferredAudioProperties (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get current audio track. More...
 
static JSValueRef AAMP_setAudioTrack (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set audio track. More...
 
static JSValueRef AAMP_getPreferredTextProperties (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get preferred text properties. More...
 
static JSValueRef AAMP_getAvailableTextTracks (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get list of text tracks. More...
 
static JSValueRef AAMP_getTextTrack (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get current text track index. More...
 
static JSValueRef AAMP_setTextTrack (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set text track. More...
 
static JSValueRef AAMP_getAvailableVideoTracks (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get list of video tracks. More...
 
static JSValueRef AAMP_setVideoTracks (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set video track. More...
 
static JSValueRef AAMP_setLicenseServerURL (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set license server URL. More...
 
static JSValueRef AAMP_setPreferredDRM (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set the preferred DRM. More...
 
static JSValueRef AAMP_setAnonymousRequest (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to en/disable anonymous request. More...
 
static JSValueRef AAMP_setVODTrickplayFPS (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set vod trickplay FPS. More...
 
static JSValueRef AAMP_setAlternateContent (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set alternate playback content URLs. More...
 
static JSValueRef AAMP_notifyReservationCompletion (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Notify AAMP that the reservation is complete. More...
 
static JSValueRef AAMP_setLinearTrickplayFPS (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set linear trickplay FPS. More...
 
static JSValueRef AAMP_setLiveOffset (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set live offset. More...
 
static JSValueRef AAMP_setLiveOffset4K (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set live offset for 4K. More...
 
static JSValueRef AAMP_setDownloadStallTimeout (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set download stall timeout value. More...
 
static JSValueRef AAMP_setDownloadStartTimeout (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set download start timeout value. More...
 
static JSValueRef AAMP_setNetworkTimeout (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set network timeout value. More...
 
static JSValueRef AAMP_setClosedCaptionStatus (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to enable/disable CC rendering. More...
 
static JSValueRef AAMP_setTextStyleOptions (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set text style. More...
 
static JSValueRef AAMP_getTextStyleOptions (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get text style. More...
 
static JSValueRef AAMP_setLanguageFormat (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set the preferred language format. More...
 
static JSValueRef AAMP_setLicenseCaching (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set the license caching config. More...
 
static JSValueRef AAMP_setAuxiliaryLanguage (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set auxiliary audio language. More...
 
static JSValueRef AAMP_getPlayeBackStats (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to get playback stats. More...
 
static JSValueRef AAMP_xreSupportedTune (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set xre supported tune. More...
 
static JSValueRef AAMP_setContentProtectionDataUpdateTimeout (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set content protection data update timeout value on key rotation. More...
 
static JSValueRef AAMP_setContentProtectionDataConfig (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to update content protection data value on key rotation. More...
 
static JSValueRef AAMP_setRuntimeDRMConfig (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to Enable/Disable Dynamic DRM Config support. More...
 
static void AAMP_finalize (JSObjectRef thisObject)
 Callback invoked when an object of AAMP is finalized. More...
 
static JSClassRef AAMP_class_ref ()
 Creates a JavaScript class of AAMP for use with JSObjectMake. More...
 
static JSValueRef EventType_getproperty_AD_PLAYBACK_STARTED (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the AD_PLAYBACK_STARTED property value. More...
 
static JSValueRef EventType_getproperty_AD_PLAYBACK_COMPLETED (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the AD_PLAYBACK_COMPLETED property value. More...
 
static JSValueRef EventType_getproperty_AD_PLAYBACK_INTERRUPTED (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the AD_PLAYBACK_INTERRUPTED property value. More...
 
static JSValueRef EventType_getproperty_BUFFERING_BEGIN (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the BUFFERING_BEGIN property value. More...
 
static JSValueRef EventType_getproperty_BUFFERING_END (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the BUFFERING_END property value. More...
 
static JSValueRef EventType_getproperty_DECODER_AVAILABLE (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the DECODER_AVAILABLE property value. More...
 
static JSValueRef EventType_getproperty_DRM_METADATA_INFO_AVAILABLE (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the DRM_METADATA_INFO_AVAILABLE property value. More...
 
static JSValueRef EventType_getproperty_DRM_METADATA (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the DRM_METADATA property value. More...
 
static JSValueRef EventType_getproperty_ENTERING_LIVE (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the ENTERING_LIVE property value. More...
 
static JSValueRef EventType_getproperty_MEDIA_OPENED (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the MEDIA_OPENED property value. More...
 
static JSValueRef EventType_getproperty_MEDIA_STOPPED (JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
 Callback invoked from JS to get the MEDIA_STOPPED property value. More...
 
static void EventType_init (JSContextRef ctx, JSObjectRef thisObject)
 Callback invoked from JS when an object of EventType is first created. More...
 
static void EventType_finalize (JSObjectRef thisObject)
 Callback invoked when an object of EventType is finalized. More...
 
static JSClassRef EventType_class_ref ()
 Creates a JavaScript class of EventType for use with JSObjectMake. More...
 
void aamp_LoadJS (void *context, void *playerInstanceAAMP)
 Load aamp JS bindings.
 
void aamp_UnloadJS (void *context)
 Unload aamp JS bindings. More...
 

Variables

static class PlayerInstanceAAMP_allocated_aamp = NULL
 
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
 
static const JSStaticValue AAMP_static_values []
 Array containing the AAMP's statically declared value properties. More...
 
static const JSStaticFunction Event_staticfunctions []
 Array containing the Event's statically declared functions. More...
 
static const JSClassDefinition Event_object_def
 Structure contains properties and callbacks of Event object. More...
 
static const JSStaticFunction AAMP_staticfunctions []
 Array containing the AAMP's statically declared functions.
 
static const JSClassDefinition AAMP_class_def
 Structure contains properties and callbacks of AAMP object. More...
 
static const JSStaticValue EventType_staticprops []
 Array containing the EventType's statically declared value properties. More...
 
static const JSClassDefinition EventType_object_def
 Structure contains properties and callbacks of EventType object. More...
 

yes

JavaScript bindings for AAMP.

Definition in file jsbindings.cpp.


Data Structure Documentation

◆ AAMP_JS

struct AAMP_JS

Data structure of AAMP object.

Definition at line 64 of file jsbindings.cpp.

Collaboration diagram for AAMP_JS:
Collaboration graph
Data Fields
JSGlobalContextRef _ctx
class PlayerInstanceAAMP * _aamp
class AAMP_JSListener * _listeners
int iPlayerId
bool bInfoEnabled
JSObjectRef _eventType
JSObjectRef _subscribedTags
JSObjectRef _promiseCallback

Function Documentation

◆ JSContextGetGlobalContext()

JS_EXPORT JSGlobalContextRef JSContextGetGlobalContext ( JSContextRef  )

Get the global JS execution context.

Parameters
[in]JSContextRefJS execution context
Return values
globalexecution context

◆ AAMP_JS_AddEventTypeClass()

JSObjectRef AAMP_JS_AddEventTypeClass ( JSGlobalContextRef  context)

Create a EventType JS object.

Parameters
[in]contextJS execute context
Return values
JSObjectof EventType

Definition at line 4638 of file jsbindings.cpp.

◆ aamp_ApplyPageHttpHeaders()

void aamp_ApplyPageHttpHeaders ( PlayerInstanceAAMP aampObject)

applies the parsed custom http headers into the aamp

Parameters
[in]aampObjectmain aamp object

Definition at line 511 of file jscontroller-jsbindings.cpp.

◆ AAMP_class_constructor()

static JSObjectRef AAMP_class_constructor ( JSContextRef  context,
JSObjectRef  constructor,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

callback invoked when AAMP is used along with 'new'

Parameters
[in]contextJS execution context
[in]constructorJSObject that is the constructor being called
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSObjectthat is the constructor's return value

Definition at line 86 of file jsbindings.cpp.

◆ AAMP_getProperty_closedCaptionEnabled()

static JSValueRef AAMP_getProperty_closedCaptionEnabled ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the closedCaptionEnabled property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 101 of file jsbindings.cpp.

◆ AAMP_setProperty_closedCaptionEnabled()

static bool AAMP_setProperty_closedCaptionEnabled ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef  value,
JSValueRef *  exception 
)
static

Callback invoked from JS to set the closedCaptionEnabled property value.

Parameters
[in]contextJS exception context
[in]thisObjectJSObject on which to set the property's value
[in]propertyNameJSString containing the name of the property to set
[in]valueJSValue to use as the property's value
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
trueif the property was set, otherwise false

Definition at line 125 of file jsbindings.cpp.

◆ AAMP_getProperty_initialBufferTime()

static JSValueRef AAMP_getProperty_initialBufferTime ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the initialBufferTime property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 147 of file jsbindings.cpp.

◆ AAMP_setProperty_initialBufferTime()

static bool AAMP_setProperty_initialBufferTime ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef  value,
JSValueRef *  exception 
)
static

Callback invoked from JS to set the initialBufferTime property value.

Parameters
[in]contextJS exception context
[in]thisObjectJSObject on which to set the property's value
[in]propertyNameJSString containing the name of the property to set
[in]valueJSValue to use as the property's value
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
trueif the property was set, otherwise false

Definition at line 171 of file jsbindings.cpp.

◆ AAMP_getProperty_trickPlayEnabled()

static JSValueRef AAMP_getProperty_trickPlayEnabled ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the trickPlayEnabled property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 193 of file jsbindings.cpp.

◆ AAMP_setProperty_trickPlayEnabled()

static bool AAMP_setProperty_trickPlayEnabled ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef  value,
JSValueRef *  exception 
)
static

Callback invoked from JS to set the trickPlayEnabled property value.

Parameters
[in]contextJS exception context
[in]thisObjectJSObject on which to set the property's value
[in]propertyNameJSString containing the name of the property to set
[in]valueJSValue to use as the property's value
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
trueif the property was set, otherwise false

Definition at line 216 of file jsbindings.cpp.

◆ AAMP_getProperty_EventType()

static JSValueRef AAMP_getProperty_EventType ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the EventType property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 239 of file jsbindings.cpp.

◆ AAMP_getProperty_MediaType()

static JSValueRef AAMP_getProperty_MediaType ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the mediaType property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 261 of file jsbindings.cpp.

◆ AAMP_getProperty_Version()

static JSValueRef AAMP_getProperty_Version ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the version property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 291 of file jsbindings.cpp.

◆ AAMP_getProperty_AudioLanguage()

static JSValueRef AAMP_getProperty_AudioLanguage ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the audioLanguage property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 314 of file jsbindings.cpp.

◆ AAMP_getProperty_CurrentDRM()

static JSValueRef AAMP_getProperty_CurrentDRM ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the currentDRM property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 338 of file jsbindings.cpp.

◆ AAMP_getProperty_timedMetadata()

static JSValueRef AAMP_getProperty_timedMetadata ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the timedMetadata property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 363 of file jsbindings.cpp.

◆ AAMP_setProperty_stallErrorCode()

static bool AAMP_setProperty_stallErrorCode ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef  value,
JSValueRef *  exception 
)
static

Callback invoked from JS to set the stallErrorCode property value.

Parameters
[in]contextJS exception context
[in]thisObjectJSObject on which to set the property's value
[in]propertyNameJSString containing the name of the property to set
[in]valueJSValue to use as the property's value
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
trueif the property was set, otherwise false

Definition at line 408 of file jsbindings.cpp.

◆ AAMP_setProperty_stallTimeout()

static bool AAMP_setProperty_stallTimeout ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef  value,
JSValueRef *  exception 
)
static

Callback invoked from JS to set the stallTimeout property value.

Parameters
[in]contextJS exception context
[in]thisObjectJSObject on which to set the property's value
[in]propertyNameJSString containing the name of the property to set
[in]valueJSValue to use as the property's value
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
trueif the property was set, otherwise false

Definition at line 433 of file jsbindings.cpp.

◆ AAMP_setProperty_reportInterval()

static bool AAMP_setProperty_reportInterval ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef  value,
JSValueRef *  exception 
)
static

Callback invoked from JS to set the reportInterval property value.

Parameters
[in]contextJS exception context
[in]thisObjectJSObject on which to set the property's value
[in]propertyNameJSString containing the name of the property to set
[in]valueJSValue to use as the property's value
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
trueif the property was set, otherwise false

Definition at line 458 of file jsbindings.cpp.

◆ AAMP_setProperty_enableNativeCC()

static bool AAMP_setProperty_enableNativeCC ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef  value,
JSValueRef *  exception 
)
static

Callback invoked from JS to set the enableNativeCC property value.

Parameters
[in]contextJS exception context
[in]thisObjectJSObject on which to set the property's value
[in]propertyNameJSString containing the name of the property to set
[in]valueJSValue to use as the property's value
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
trueif the property was set, otherwise false

Definition at line 482 of file jsbindings.cpp.

◆ AAMP_setProperty_preferredCEAFormat()

static bool AAMP_setProperty_preferredCEAFormat ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef  value,
JSValueRef *  exception 
)
static

Callback invoked from JS to set the preferred CEA format property value.

Parameters
[in]contextJS exception context
[in]thisObjectJSObject on which to set the property's value
[in]propertyNameJSString containing the name of the property to set
[in]valueJSValue to use as the property's value
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
trueif the property was set, otherwise false

Definition at line 506 of file jsbindings.cpp.

◆ Event_init()

static void Event_init ( JSContextRef  ctx,
JSObjectRef  thisObject 
)
static

Callback invoked from JS when an object of Event is first created.

Parameters
[in]ctxJS execution context
[in]thisObjectJSObject being created

Definition at line 557 of file jsbindings.cpp.

◆ Event_finalize()

static void Event_finalize ( JSObjectRef  thisObject)
static

Callback invoked when an object of Event is finalized.

Parameters
[in]thisObjectJSObject being finalized

Definition at line 567 of file jsbindings.cpp.

◆ Event_class_ref()

static JSClassRef Event_class_ref ( )
static

Creates a JavaScript class of Event for use with JSObjectMake.

Return values
singletoninstance of JavaScript class created

Definition at line 625 of file jsbindings.cpp.

◆ Event_constructor()

static JSObjectRef Event_constructor ( JSContextRef  ctx,
JSObjectRef  constructor,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  execption 
)
static

callback invoked when Event is used along with 'new'

Parameters
[in]ctxJS execution context
[in]constructorJSObject that is the constructor being called
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]execptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSObjectthat is the constructor's return value

Definition at line 589 of file jsbindings.cpp.

◆ AAMP_addEventListener()

static JSValueRef AAMP_addEventListener ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to add an event listener for a particular event.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 1904 of file jsbindings.cpp.

◆ AAMP_removeEventListener()

static JSValueRef AAMP_removeEventListener ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to remove an event listener.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2080 of file jsbindings.cpp.

◆ AAMP_setProperties()

static JSValueRef AAMP_setProperties ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set AAMP object's properties.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2160 of file jsbindings.cpp.

◆ AAMP_getProperties()

static JSValueRef AAMP_getProperties ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get AAMP object's properties.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2177 of file jsbindings.cpp.

◆ AAMP_tune()

static JSValueRef AAMP_tune ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to start playback for requested URL.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2194 of file jsbindings.cpp.

◆ AAMP_load()

static JSValueRef AAMP_load ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to start playback for requested URL.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2253 of file jsbindings.cpp.

◆ AAMP_stop()

static JSValueRef AAMP_stop ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to stop active playback.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2350 of file jsbindings.cpp.

◆ AAMP_setRate()

static JSValueRef AAMP_setRate ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set playback rate.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2377 of file jsbindings.cpp.

◆ AAMP_seek()

static JSValueRef AAMP_seek ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to perform seek to a particular playback position.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2423 of file jsbindings.cpp.

◆ AAMP_seekToLive()

static JSValueRef AAMP_seekToLive ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to perform seek to live point.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2464 of file jsbindings.cpp.

◆ AAMP_setRect()

static JSValueRef AAMP_setRect ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set video rectangle co-ordinates.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2492 of file jsbindings.cpp.

◆ AAMP_setVideoMute()

static JSValueRef AAMP_setVideoMute ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set video mute status.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2533 of file jsbindings.cpp.

◆ AAMP_setAudioVolume()

static JSValueRef AAMP_setAudioVolume ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set audio volume.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2571 of file jsbindings.cpp.

◆ AAMP_setZoom()

static JSValueRef AAMP_setZoom ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set preferred zoom setting.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2608 of file jsbindings.cpp.

◆ AAMP_setLanguage()

static JSValueRef AAMP_setLanguage ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set preferred audio language.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2655 of file jsbindings.cpp.

◆ AAMP_setSubscribeTags()

static JSValueRef AAMP_setSubscribeTags ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set list of subscribed tags.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2694 of file jsbindings.cpp.

◆ AAMP_addCustomHTTPHeader()

static JSValueRef AAMP_addCustomHTTPHeader ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to add a custom HTTP header/s.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2745 of file jsbindings.cpp.

◆ AAMP_removeCustomHTTPHeader()

static JSValueRef AAMP_removeCustomHTTPHeader ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to remove custom HTTP headers.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2809 of file jsbindings.cpp.

◆ AAMP_setAds()

static JSValueRef AAMP_setAds ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set an ad.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2850 of file jsbindings.cpp.

◆ AAMP_getAvailableAudioTracks()

static JSValueRef AAMP_getAvailableAudioTracks ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get list of audio tracks.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2868 of file jsbindings.cpp.

◆ AAMP_getAudioTrack()

static JSValueRef AAMP_getAudioTrack ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get current audio track.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2908 of file jsbindings.cpp.

◆ AAMP_getAudioTrackInfo()

static JSValueRef AAMP_getAudioTrackInfo ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get current audio track.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2932 of file jsbindings.cpp.

◆ AAMP_getTextTrackInfo()

static JSValueRef AAMP_getTextTrackInfo ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get current text track info.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2967 of file jsbindings.cpp.

◆ AAMP_getPreferredAudioProperties()

static JSValueRef AAMP_getPreferredAudioProperties ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get current audio track.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 2999 of file jsbindings.cpp.

◆ AAMP_setAudioTrack()

static JSValueRef AAMP_setAudioTrack ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set audio track.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3033 of file jsbindings.cpp.

◆ AAMP_getPreferredTextProperties()

static JSValueRef AAMP_getPreferredTextProperties ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get preferred text properties.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3078 of file jsbindings.cpp.

◆ AAMP_getAvailableTextTracks()

static JSValueRef AAMP_getAvailableTextTracks ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get list of text tracks.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3113 of file jsbindings.cpp.

◆ AAMP_getTextTrack()

static JSValueRef AAMP_getTextTrack ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get current text track index.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3153 of file jsbindings.cpp.

◆ AAMP_setTextTrack()

static JSValueRef AAMP_setTextTrack ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set text track.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3178 of file jsbindings.cpp.

◆ AAMP_getAvailableVideoTracks()

static JSValueRef AAMP_getAvailableVideoTracks ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get list of video tracks.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3221 of file jsbindings.cpp.

◆ AAMP_setVideoTracks()

static JSValueRef AAMP_setVideoTracks ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set video track.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3254 of file jsbindings.cpp.

◆ AAMP_setLicenseServerURL()

static JSValueRef AAMP_setLicenseServerURL ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set license server URL.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3287 of file jsbindings.cpp.

◆ AAMP_setPreferredDRM()

static JSValueRef AAMP_setPreferredDRM ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set the preferred DRM.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3324 of file jsbindings.cpp.

◆ AAMP_setAnonymousRequest()

static JSValueRef AAMP_setAnonymousRequest ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to en/disable anonymous request.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3368 of file jsbindings.cpp.

◆ AAMP_setVODTrickplayFPS()

static JSValueRef AAMP_setVODTrickplayFPS ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set vod trickplay FPS.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3404 of file jsbindings.cpp.

◆ AAMP_setAlternateContent()

static JSValueRef AAMP_setAlternateContent ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set alternate playback content URLs.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3441 of file jsbindings.cpp.

◆ AAMP_notifyReservationCompletion()

static JSValueRef AAMP_notifyReservationCompletion ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Notify AAMP that the reservation is complete.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3576 of file jsbindings.cpp.

◆ AAMP_setLinearTrickplayFPS()

static JSValueRef AAMP_setLinearTrickplayFPS ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set linear trickplay FPS.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3614 of file jsbindings.cpp.

◆ AAMP_setLiveOffset()

static JSValueRef AAMP_setLiveOffset ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set live offset.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3652 of file jsbindings.cpp.

◆ AAMP_setLiveOffset4K()

static JSValueRef AAMP_setLiveOffset4K ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set live offset for 4K.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3689 of file jsbindings.cpp.

◆ AAMP_setDownloadStallTimeout()

static JSValueRef AAMP_setDownloadStallTimeout ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set download stall timeout value.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3726 of file jsbindings.cpp.

◆ AAMP_setDownloadStartTimeout()

static JSValueRef AAMP_setDownloadStartTimeout ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set download start timeout value.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3765 of file jsbindings.cpp.

◆ AAMP_setNetworkTimeout()

static JSValueRef AAMP_setNetworkTimeout ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set network timeout value.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3804 of file jsbindings.cpp.

◆ AAMP_setClosedCaptionStatus()

static JSValueRef AAMP_setClosedCaptionStatus ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to enable/disable CC rendering.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3842 of file jsbindings.cpp.

◆ AAMP_setTextStyleOptions()

static JSValueRef AAMP_setTextStyleOptions ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set text style.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3878 of file jsbindings.cpp.

◆ AAMP_getTextStyleOptions()

static JSValueRef AAMP_getTextStyleOptions ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get text style.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3924 of file jsbindings.cpp.

◆ AAMP_setLanguageFormat()

static JSValueRef AAMP_setLanguageFormat ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set the preferred language format.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3958 of file jsbindings.cpp.

◆ AAMP_setLicenseCaching()

static JSValueRef AAMP_setLicenseCaching ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set the license caching config.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 3995 of file jsbindings.cpp.

◆ AAMP_setAuxiliaryLanguage()

static JSValueRef AAMP_setAuxiliaryLanguage ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set auxiliary audio language.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 4031 of file jsbindings.cpp.

◆ AAMP_getPlayeBackStats()

static JSValueRef AAMP_getPlayeBackStats ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to get playback stats.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 4066 of file jsbindings.cpp.

◆ AAMP_xreSupportedTune()

static JSValueRef AAMP_xreSupportedTune ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set xre supported tune.

**

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 4090 of file jsbindings.cpp.

◆ AAMP_setContentProtectionDataUpdateTimeout()

static JSValueRef AAMP_setContentProtectionDataUpdateTimeout ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to set content protection data update timeout value on key rotation.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 4127 of file jsbindings.cpp.

◆ AAMP_setContentProtectionDataConfig()

static JSValueRef AAMP_setContentProtectionDataConfig ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to update content protection data value on key rotation.

Parameters
[in]ctxJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 4165 of file jsbindings.cpp.

◆ AAMP_setRuntimeDRMConfig()

static JSValueRef AAMP_setRuntimeDRMConfig ( JSContextRef  context,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)
static

Callback invoked from JS to Enable/Disable Dynamic DRM Config support.

Parameters
[in]contextJS execution context
[in]functionJSObject that is the function being called
[in]thisObjectJSObject that is the 'this' variable in the function's scope
[in]argumentCountnumber of args
[in]arguments[]JSValue array of args
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSValuethat is the function's return value

Definition at line 4202 of file jsbindings.cpp.

◆ AAMP_finalize()

static void AAMP_finalize ( JSObjectRef  thisObject)
static

Callback invoked when an object of AAMP is finalized.

Parameters
[in]thisObjectJSObject being finalized

Definition at line 4297 of file jsbindings.cpp.

◆ AAMP_class_ref()

static JSClassRef AAMP_class_ref ( )
static

Creates a JavaScript class of AAMP for use with JSObjectMake.

Return values
singletoninstance of JavaScript class created

Definition at line 4376 of file jsbindings.cpp.

◆ EventType_getproperty_AD_PLAYBACK_STARTED()

static JSValueRef EventType_getproperty_AD_PLAYBACK_STARTED ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the AD_PLAYBACK_STARTED property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4393 of file jsbindings.cpp.

◆ EventType_getproperty_AD_PLAYBACK_COMPLETED()

static JSValueRef EventType_getproperty_AD_PLAYBACK_COMPLETED ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the AD_PLAYBACK_COMPLETED property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4408 of file jsbindings.cpp.

◆ EventType_getproperty_AD_PLAYBACK_INTERRUPTED()

static JSValueRef EventType_getproperty_AD_PLAYBACK_INTERRUPTED ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the AD_PLAYBACK_INTERRUPTED property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4423 of file jsbindings.cpp.

◆ EventType_getproperty_BUFFERING_BEGIN()

static JSValueRef EventType_getproperty_BUFFERING_BEGIN ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the BUFFERING_BEGIN property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4438 of file jsbindings.cpp.

◆ EventType_getproperty_BUFFERING_END()

static JSValueRef EventType_getproperty_BUFFERING_END ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the BUFFERING_END property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4453 of file jsbindings.cpp.

◆ EventType_getproperty_DECODER_AVAILABLE()

static JSValueRef EventType_getproperty_DECODER_AVAILABLE ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the DECODER_AVAILABLE property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4468 of file jsbindings.cpp.

◆ EventType_getproperty_DRM_METADATA_INFO_AVAILABLE()

static JSValueRef EventType_getproperty_DRM_METADATA_INFO_AVAILABLE ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the DRM_METADATA_INFO_AVAILABLE property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4483 of file jsbindings.cpp.

◆ EventType_getproperty_DRM_METADATA()

static JSValueRef EventType_getproperty_DRM_METADATA ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the DRM_METADATA property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4501 of file jsbindings.cpp.

◆ EventType_getproperty_ENTERING_LIVE()

static JSValueRef EventType_getproperty_ENTERING_LIVE ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the ENTERING_LIVE property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4518 of file jsbindings.cpp.

◆ EventType_getproperty_MEDIA_OPENED()

static JSValueRef EventType_getproperty_MEDIA_OPENED ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the MEDIA_OPENED property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4533 of file jsbindings.cpp.

◆ EventType_getproperty_MEDIA_STOPPED()

static JSValueRef EventType_getproperty_MEDIA_STOPPED ( JSContextRef  context,
JSObjectRef  thisObject,
JSStringRef  propertyName,
JSValueRef *  exception 
)
static

Callback invoked from JS to get the MEDIA_STOPPED property value.

Parameters
[in]contextJS execution context
[in]thisObjectJSObject to search for the property
[in]propertyNameJSString containing the name of the property to get
[out]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
property'svalue if object has the property, otherwise NULL

Definition at line 4548 of file jsbindings.cpp.

◆ EventType_init()

static void EventType_init ( JSContextRef  ctx,
JSObjectRef  thisObject 
)
static

Callback invoked from JS when an object of EventType is first created.

Parameters
[in]ctxJS execution context
[in]thisObjectJSObject being created

Definition at line 4579 of file jsbindings.cpp.

◆ EventType_finalize()

static void EventType_finalize ( JSObjectRef  thisObject)
static

Callback invoked when an object of EventType is finalized.

Parameters
[in]thisObjectJSObject being finalized

Definition at line 4589 of file jsbindings.cpp.

◆ EventType_class_ref()

static JSClassRef EventType_class_ref ( )
static

Creates a JavaScript class of EventType for use with JSObjectMake.

Return values
singletoninstance of JavaScript class created

Definition at line 4624 of file jsbindings.cpp.

◆ aamp_UnloadJS()

void aamp_UnloadJS ( void *  context)

Unload aamp JS bindings.

Definition at line 4709 of file jsbindings.cpp.

Variable Documentation

◆ AAMP_static_values

const JSStaticValue AAMP_static_values[]
static
Initial value:
=
{
{"closedCaptionEnabled", AAMP_getProperty_closedCaptionEnabled, AAMP_setProperty_closedCaptionEnabled, kJSPropertyAttributeDontDelete },
{"initialBufferTime", AAMP_getProperty_initialBufferTime, AAMP_setProperty_initialBufferTime, kJSPropertyAttributeDontDelete },
{"trickPlayEnabled", AAMP_getProperty_trickPlayEnabled, AAMP_setProperty_trickPlayEnabled, kJSPropertyAttributeDontDelete },
{"EventType", AAMP_getProperty_EventType, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{"mediaType", AAMP_getProperty_MediaType, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{"version", AAMP_getProperty_Version, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{"audioLanguage", AAMP_getProperty_AudioLanguage, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{"currentDRM", AAMP_getProperty_CurrentDRM, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{"timedMetadata", AAMP_getProperty_timedMetadata, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{"stallErrorCode", NULL, AAMP_setProperty_stallErrorCode, kJSPropertyAttributeDontDelete },
{"stallTimeout", NULL, AAMP_setProperty_stallTimeout, kJSPropertyAttributeDontDelete },
{"reportInterval", NULL, AAMP_setProperty_reportInterval, kJSPropertyAttributeDontDelete },
{"enableNativeCC", NULL, AAMP_setProperty_enableNativeCC, kJSPropertyAttributeDontDelete },
{"preferredCEAFormat", NULL, AAMP_setProperty_preferredCEAFormat, kJSPropertyAttributeDontDelete },
{NULL, NULL, NULL, 0}
}

Array containing the AAMP's statically declared value properties.

Definition at line 524 of file jsbindings.cpp.

◆ Event_staticfunctions

const JSStaticFunction Event_staticfunctions[]
static
Initial value:
=
{
{ NULL, NULL, 0 }
}

Array containing the Event's statically declared functions.

Definition at line 546 of file jsbindings.cpp.

◆ Event_object_def

const JSClassDefinition Event_object_def
static
Initial value:
=
{
0,
kJSClassAttributeNone,
"__Event__AAMP",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}

Structure contains properties and callbacks of Event object.

Definition at line 599 of file jsbindings.cpp.

◆ AAMP_class_def

const JSClassDefinition AAMP_class_def
static
Initial value:
=
{
0,
kJSClassAttributeNone,
"__AAMP__class",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}

Structure contains properties and callbacks of AAMP object.

Definition at line 4350 of file jsbindings.cpp.

◆ EventType_staticprops

const JSStaticValue EventType_staticprops[]
static
Initial value:
=
{
{ "AD_PLAYBACK_STARTED", EventType_getproperty_AD_PLAYBACK_STARTED, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ "AD_PLAYBACK_COMPLETED", EventType_getproperty_AD_PLAYBACK_COMPLETED, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ "AD_PLAYBACK_INTERRUPTED", EventType_getproperty_AD_PLAYBACK_INTERRUPTED, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ "BUFFERING_BEGIN", EventType_getproperty_BUFFERING_BEGIN, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ "BUFFERING_END", EventType_getproperty_BUFFERING_END, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ "DECODER_AVAILABLE", EventType_getproperty_DECODER_AVAILABLE, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ "DRM_METADATA_INFO_AVAILABLE", EventType_getproperty_DRM_METADATA_INFO_AVAILABLE, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ "ENTERING_LIVE", EventType_getproperty_ENTERING_LIVE, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ "MEDIA_OPENED", EventType_getproperty_MEDIA_OPENED, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ "MEDIA_STOPPED", EventType_getproperty_MEDIA_STOPPED, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ NULL, NULL, NULL, 0 }
}

Array containing the EventType's statically declared value properties.

Definition at line 4558 of file jsbindings.cpp.

◆ EventType_object_def

const JSClassDefinition EventType_object_def
static
Initial value:
=
{
0,
kJSClassAttributeNone,
"__EventType",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}

Structure contains properties and callbacks of EventType object.

Definition at line 4598 of file jsbindings.cpp.

EventType_getproperty_DRM_METADATA_INFO_AVAILABLE
static JSValueRef EventType_getproperty_DRM_METADATA_INFO_AVAILABLE(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the DRM_METADATA_INFO_AVAILABLE property value.
Definition: jsbindings.cpp:4483
EventType_getproperty_MEDIA_OPENED
static JSValueRef EventType_getproperty_MEDIA_OPENED(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the MEDIA_OPENED property value.
Definition: jsbindings.cpp:4533
EventType_getproperty_BUFFERING_BEGIN
static JSValueRef EventType_getproperty_BUFFERING_BEGIN(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the BUFFERING_BEGIN property value.
Definition: jsbindings.cpp:4438
AAMP_getProperty_EventType
static JSValueRef AAMP_getProperty_EventType(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the EventType property value.
Definition: jsbindings.cpp:239
AAMP_setProperty_reportInterval
static bool AAMP_setProperty_reportInterval(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
Callback invoked from JS to set the reportInterval property value.
Definition: jsbindings.cpp:458
AAMP_getProperty_timedMetadata
static JSValueRef AAMP_getProperty_timedMetadata(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the timedMetadata property value.
Definition: jsbindings.cpp:363
EventType_getproperty_AD_PLAYBACK_INTERRUPTED
static JSValueRef EventType_getproperty_AD_PLAYBACK_INTERRUPTED(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the AD_PLAYBACK_INTERRUPTED property value.
Definition: jsbindings.cpp:4423
EventType_getproperty_AD_PLAYBACK_COMPLETED
static JSValueRef EventType_getproperty_AD_PLAYBACK_COMPLETED(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the AD_PLAYBACK_COMPLETED property value.
Definition: jsbindings.cpp:4408
AAMP_getProperty_initialBufferTime
static JSValueRef AAMP_getProperty_initialBufferTime(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the initialBufferTime property value.
Definition: jsbindings.cpp:147
Event_staticfunctions
static const JSStaticFunction Event_staticfunctions[]
Array containing the Event's statically declared functions.
Definition: jsbindings.cpp:546
AAMP_class_constructor
static JSObjectRef AAMP_class_constructor(JSContextRef context, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
callback invoked when AAMP is used along with 'new'
Definition: jsbindings.cpp:86
AAMP_getProperty_AudioLanguage
static JSValueRef AAMP_getProperty_AudioLanguage(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the audioLanguage property value.
Definition: jsbindings.cpp:314
AAMP_getProperty_closedCaptionEnabled
static JSValueRef AAMP_getProperty_closedCaptionEnabled(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the closedCaptionEnabled property value.
Definition: jsbindings.cpp:101
AAMP_getProperty_trickPlayEnabled
static JSValueRef AAMP_getProperty_trickPlayEnabled(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the trickPlayEnabled property value.
Definition: jsbindings.cpp:193
EventType_getproperty_AD_PLAYBACK_STARTED
static JSValueRef EventType_getproperty_AD_PLAYBACK_STARTED(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the AD_PLAYBACK_STARTED property value.
Definition: jsbindings.cpp:4393
AAMP_static_values
static const JSStaticValue AAMP_static_values[]
Array containing the AAMP's statically declared value properties.
Definition: jsbindings.cpp:524
AAMP_setProperty_initialBufferTime
static bool AAMP_setProperty_initialBufferTime(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
Callback invoked from JS to set the initialBufferTime property value.
Definition: jsbindings.cpp:171
AAMP_setProperty_preferredCEAFormat
static bool AAMP_setProperty_preferredCEAFormat(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
Callback invoked from JS to set the preferred CEA format property value.
Definition: jsbindings.cpp:506
EventType_getproperty_DECODER_AVAILABLE
static JSValueRef EventType_getproperty_DECODER_AVAILABLE(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the DECODER_AVAILABLE property value.
Definition: jsbindings.cpp:4468
EventType_getproperty_MEDIA_STOPPED
static JSValueRef EventType_getproperty_MEDIA_STOPPED(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the MEDIA_STOPPED property value.
Definition: jsbindings.cpp:4548
AAMP_getProperty_Version
static JSValueRef AAMP_getProperty_Version(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the version property value.
Definition: jsbindings.cpp:291
Event_constructor
static JSObjectRef Event_constructor(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef *execption)
callback invoked when Event is used along with 'new'
Definition: jsbindings.cpp:589
AAMP_staticfunctions
static const JSStaticFunction AAMP_staticfunctions[]
Array containing the AAMP's statically declared functions.
Definition: jsbindings.cpp:4230
Event_finalize
static void Event_finalize(JSObjectRef thisObject)
Callback invoked when an object of Event is finalized.
Definition: jsbindings.cpp:567
AAMP_getProperty_CurrentDRM
static JSValueRef AAMP_getProperty_CurrentDRM(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the currentDRM property value.
Definition: jsbindings.cpp:338
EventType_staticprops
static const JSStaticValue EventType_staticprops[]
Array containing the EventType's statically declared value properties.
Definition: jsbindings.cpp:4558
EventType_getproperty_ENTERING_LIVE
static JSValueRef EventType_getproperty_ENTERING_LIVE(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the ENTERING_LIVE property value.
Definition: jsbindings.cpp:4518
AAMP_setProperty_trickPlayEnabled
static bool AAMP_setProperty_trickPlayEnabled(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
Callback invoked from JS to set the trickPlayEnabled property value.
Definition: jsbindings.cpp:216
AAMP_setProperty_stallErrorCode
static bool AAMP_setProperty_stallErrorCode(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
Callback invoked from JS to set the stallErrorCode property value.
Definition: jsbindings.cpp:408
EventType_init
static void EventType_init(JSContextRef ctx, JSObjectRef thisObject)
Callback invoked from JS when an object of EventType is first created.
Definition: jsbindings.cpp:4579
EventType_finalize
static void EventType_finalize(JSObjectRef thisObject)
Callback invoked when an object of EventType is finalized.
Definition: jsbindings.cpp:4589
AAMP_getProperty_MediaType
static JSValueRef AAMP_getProperty_MediaType(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the mediaType property value.
Definition: jsbindings.cpp:261
AAMP_setProperty_stallTimeout
static bool AAMP_setProperty_stallTimeout(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
Callback invoked from JS to set the stallTimeout property value.
Definition: jsbindings.cpp:433
AAMP_setProperty_enableNativeCC
static bool AAMP_setProperty_enableNativeCC(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
Callback invoked from JS to set the enableNativeCC property value.
Definition: jsbindings.cpp:482
AAMP_setProperty_closedCaptionEnabled
static bool AAMP_setProperty_closedCaptionEnabled(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef *exception)
Callback invoked from JS to set the closedCaptionEnabled property value.
Definition: jsbindings.cpp:125
EventType_getproperty_BUFFERING_END
static JSValueRef EventType_getproperty_BUFFERING_END(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef *exception)
Callback invoked from JS to get the BUFFERING_END property value.
Definition: jsbindings.cpp:4453
Event_init
static void Event_init(JSContextRef ctx, JSObjectRef thisObject)
Callback invoked from JS when an object of Event is first created.
Definition: jsbindings.cpp:557