RDK Documentation (Open Sourced RDK Components)
|
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"
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... | |
JavaScript bindings for AAMP.
Definition in file jsbindings.cpp.
struct AAMP_JS |
Data structure of AAMP object.
Definition at line 64 of file jsbindings.cpp.
Data Fields | ||
---|---|---|
JSGlobalContextRef | _ctx | |
class PlayerInstanceAAMP * | _aamp | |
class AAMP_JSListener * | _listeners | |
int | iPlayerId | |
bool | bInfoEnabled | |
JSObjectRef | _eventType | |
JSObjectRef | _subscribedTags | |
JSObjectRef | _promiseCallback |
JS_EXPORT JSGlobalContextRef JSContextGetGlobalContext | ( | JSContextRef | ) |
Get the global JS execution context.
[in] | JSContextRef | JS execution context |
global | execution context |
JSObjectRef AAMP_JS_AddEventTypeClass | ( | JSGlobalContextRef | context | ) |
Create a EventType JS object.
[in] | context | JS execute context |
JSObject | of EventType |
Definition at line 4638 of file jsbindings.cpp.
void aamp_ApplyPageHttpHeaders | ( | PlayerInstanceAAMP * | aampObject | ) |
applies the parsed custom http headers into the aamp
[in] | aampObject | main aamp object |
Definition at line 511 of file jscontroller-jsbindings.cpp.
|
static |
callback invoked when AAMP is used along with 'new'
[in] | context | JS execution context |
[in] | constructor | JSObject that is the constructor being called |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSObject | that is the constructor's return value |
Definition at line 86 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the closedCaptionEnabled property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 101 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the closedCaptionEnabled property value.
[in] | context | JS exception context |
[in] | thisObject | JSObject on which to set the property's value |
[in] | propertyName | JSString containing the name of the property to set |
[in] | value | JSValue to use as the property's value |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
true | if the property was set, otherwise false |
Definition at line 125 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the initialBufferTime property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 147 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the initialBufferTime property value.
[in] | context | JS exception context |
[in] | thisObject | JSObject on which to set the property's value |
[in] | propertyName | JSString containing the name of the property to set |
[in] | value | JSValue to use as the property's value |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
true | if the property was set, otherwise false |
Definition at line 171 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the trickPlayEnabled property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 193 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the trickPlayEnabled property value.
[in] | context | JS exception context |
[in] | thisObject | JSObject on which to set the property's value |
[in] | propertyName | JSString containing the name of the property to set |
[in] | value | JSValue to use as the property's value |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
true | if the property was set, otherwise false |
Definition at line 216 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the EventType property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 239 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the mediaType property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 261 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the version property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 291 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the audioLanguage property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 314 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the currentDRM property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 338 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the timedMetadata property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 363 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the stallErrorCode property value.
[in] | context | JS exception context |
[in] | thisObject | JSObject on which to set the property's value |
[in] | propertyName | JSString containing the name of the property to set |
[in] | value | JSValue to use as the property's value |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
true | if the property was set, otherwise false |
Definition at line 408 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the stallTimeout property value.
[in] | context | JS exception context |
[in] | thisObject | JSObject on which to set the property's value |
[in] | propertyName | JSString containing the name of the property to set |
[in] | value | JSValue to use as the property's value |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
true | if the property was set, otherwise false |
Definition at line 433 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the reportInterval property value.
[in] | context | JS exception context |
[in] | thisObject | JSObject on which to set the property's value |
[in] | propertyName | JSString containing the name of the property to set |
[in] | value | JSValue to use as the property's value |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
true | if the property was set, otherwise false |
Definition at line 458 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the enableNativeCC property value.
[in] | context | JS exception context |
[in] | thisObject | JSObject on which to set the property's value |
[in] | propertyName | JSString containing the name of the property to set |
[in] | value | JSValue to use as the property's value |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
true | if the property was set, otherwise false |
Definition at line 482 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the preferred CEA format property value.
[in] | context | JS exception context |
[in] | thisObject | JSObject on which to set the property's value |
[in] | propertyName | JSString containing the name of the property to set |
[in] | value | JSValue to use as the property's value |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
true | if the property was set, otherwise false |
Definition at line 506 of file jsbindings.cpp.
|
static |
Callback invoked from JS when an object of Event is first created.
[in] | ctx | JS execution context |
[in] | thisObject | JSObject being created |
Definition at line 557 of file jsbindings.cpp.
|
static |
Callback invoked when an object of Event is finalized.
[in] | thisObject | JSObject being finalized |
Definition at line 567 of file jsbindings.cpp.
|
static |
Creates a JavaScript class of Event for use with JSObjectMake.
singleton | instance of JavaScript class created |
Definition at line 625 of file jsbindings.cpp.
|
static |
callback invoked when Event is used along with 'new'
[in] | ctx | JS execution context |
[in] | constructor | JSObject that is the constructor being called |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | execption | pointer to a JSValueRef in which to return an exception, if any |
JSObject | that is the constructor's return value |
Definition at line 589 of file jsbindings.cpp.
|
static |
Callback invoked from JS to add an event listener for a particular event.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 1904 of file jsbindings.cpp.
|
static |
Callback invoked from JS to remove an event listener.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2080 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set AAMP object's properties.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2160 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get AAMP object's properties.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2177 of file jsbindings.cpp.
|
static |
Callback invoked from JS to start playback for requested URL.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2194 of file jsbindings.cpp.
|
static |
Callback invoked from JS to start playback for requested URL.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2253 of file jsbindings.cpp.
|
static |
Callback invoked from JS to stop active playback.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2350 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set playback rate.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2377 of file jsbindings.cpp.
|
static |
Callback invoked from JS to perform seek to a particular playback position.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2423 of file jsbindings.cpp.
|
static |
Callback invoked from JS to perform seek to live point.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2464 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set video rectangle co-ordinates.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2492 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set video mute status.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2533 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set audio volume.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2571 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set preferred zoom setting.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2608 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set preferred audio language.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2655 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set list of subscribed tags.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2694 of file jsbindings.cpp.
|
static |
Callback invoked from JS to add a custom HTTP header/s.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2745 of file jsbindings.cpp.
|
static |
Callback invoked from JS to remove custom HTTP headers.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2809 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set an ad.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2850 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get list of audio tracks.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2868 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get current audio track.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2908 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get current audio track.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2932 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get current text track info.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2967 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get current audio track.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 2999 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set audio track.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3033 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get preferred text properties.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3078 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get list of text tracks.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3113 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get current text track index.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3153 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set text track.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3178 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get list of video tracks.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3221 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set video track.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3254 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set license server URL.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3287 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the preferred DRM.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3324 of file jsbindings.cpp.
|
static |
Callback invoked from JS to en/disable anonymous request.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3368 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set vod trickplay FPS.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3404 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set alternate playback content URLs.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3441 of file jsbindings.cpp.
|
static |
Notify AAMP that the reservation is complete.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3576 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set linear trickplay FPS.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3614 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set live offset.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3652 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set live offset for 4K.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3689 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set download stall timeout value.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3726 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set download start timeout value.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3765 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set network timeout value.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3804 of file jsbindings.cpp.
|
static |
Callback invoked from JS to enable/disable CC rendering.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3842 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set text style.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3878 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get text style.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3924 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the preferred language format.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3958 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set the license caching config.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 3995 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set auxiliary audio language.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 4031 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get playback stats.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 4066 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set xre supported tune.
**
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 4090 of file jsbindings.cpp.
|
static |
Callback invoked from JS to set content protection data update timeout value on key rotation.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 4127 of file jsbindings.cpp.
|
static |
Callback invoked from JS to update content protection data value on key rotation.
[in] | ctx | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 4165 of file jsbindings.cpp.
|
static |
Callback invoked from JS to Enable/Disable Dynamic DRM Config support.
[in] | context | JS execution context |
[in] | function | JSObject that is the function being called |
[in] | thisObject | JSObject that is the 'this' variable in the function's scope |
[in] | argumentCount | number of args |
[in] | arguments[] | JSValue array of args |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSValue | that is the function's return value |
Definition at line 4202 of file jsbindings.cpp.
|
static |
Callback invoked when an object of AAMP is finalized.
[in] | thisObject | JSObject being finalized |
Definition at line 4297 of file jsbindings.cpp.
|
static |
Creates a JavaScript class of AAMP for use with JSObjectMake.
singleton | instance of JavaScript class created |
Definition at line 4376 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the AD_PLAYBACK_STARTED property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4393 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the AD_PLAYBACK_COMPLETED property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4408 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the AD_PLAYBACK_INTERRUPTED property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4423 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the BUFFERING_BEGIN property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4438 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the BUFFERING_END property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4453 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the DECODER_AVAILABLE property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4468 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the DRM_METADATA_INFO_AVAILABLE property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4483 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the DRM_METADATA property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4501 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the ENTERING_LIVE property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4518 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the MEDIA_OPENED property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4533 of file jsbindings.cpp.
|
static |
Callback invoked from JS to get the MEDIA_STOPPED property value.
[in] | context | JS execution context |
[in] | thisObject | JSObject to search for the property |
[in] | propertyName | JSString containing the name of the property to get |
[out] | exception | pointer to a JSValueRef in which to return an exception, if any |
property's | value if object has the property, otherwise NULL |
Definition at line 4548 of file jsbindings.cpp.
|
static |
Callback invoked from JS when an object of EventType is first created.
[in] | ctx | JS execution context |
[in] | thisObject | JSObject being created |
Definition at line 4579 of file jsbindings.cpp.
|
static |
Callback invoked when an object of EventType is finalized.
[in] | thisObject | JSObject being finalized |
Definition at line 4589 of file jsbindings.cpp.
|
static |
Creates a JavaScript class of EventType for use with JSObjectMake.
singleton | instance of JavaScript class created |
Definition at line 4624 of file jsbindings.cpp.
void aamp_UnloadJS | ( | void * | context | ) |
Unload aamp JS bindings.
Definition at line 4709 of file jsbindings.cpp.
|
static |
Array containing the AAMP's statically declared value properties.
Definition at line 524 of file jsbindings.cpp.
|
static |
Array containing the Event's statically declared functions.
Definition at line 546 of file jsbindings.cpp.
|
static |
Structure contains properties and callbacks of Event object.
Definition at line 599 of file jsbindings.cpp.
|
static |
Structure contains properties and callbacks of AAMP object.
Definition at line 4350 of file jsbindings.cpp.
|
static |
Array containing the EventType's statically declared value properties.
Definition at line 4558 of file jsbindings.cpp.
|
static |
Structure contains properties and callbacks of EventType object.
Definition at line 4598 of file jsbindings.cpp.