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

JavaScript bindings for AAMPMediaPlayer. More...

#include "jsbindings-version.h"
#include "jsbindings.h"
#include "jsutils.h"
#include "jseventlistener.h"
#include <functional>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for jsmediaplayer.cpp:

Go to the source code of this file.

Data Structures

struct  AAMPMediaPlayer_JS
 Private data structure of AAMPMediaPlayer JS object. More...
 
struct  ConfigParamMap
 Data structure to map ConfigParamType and its string equivalent. More...
 

Enumerations

enum  ConfigParamType
 

Functions

JS_EXPORT JSGlobalContextRef JSContextGetGlobalContext (JSContextRef)
 
void aamp_ApplyPageHttpHeaders (PlayerInstanceAAMP *)
 applies the parsed custom http headers into the aamp More...
 
bool ParseJSPropAsNumber (JSContextRef ctx, JSObjectRef jsObject, const char *prop, double &value)
 Helper function to parse a JS property value as number. More...
 
bool ParseJSPropAsString (JSContextRef ctx, JSObjectRef jsObject, const char *prop, char *&value)
 Helper function to parse a JS property value as string. More...
 
bool ParseJSPropAsObject (JSContextRef ctx, JSObjectRef jsObject, const char *prop, JSValueRef &value)
 Helper function to parse a JS property value as object. More...
 
bool ParseJSPropAsBoolean (JSContextRef ctx, JSObjectRef jsObject, const char *prop, bool &value)
 Helper function to parse a JS property value as boolean. More...
 
static void releaseNativeResources (AAMPMediaPlayer_JS *privObj)
 API to release internal resources of an AAMPMediaPlayerJS object NOTE that this function does NOT free AAMPMediaPlayer_JS It is done in AAMPMediaPlayerJS_release ( APP initiated ) or AAMPMediaPlayer_JS_finalize ( GC initiated) More...
 
static bool findInGlobalCacheAndRelease (AAMPMediaPlayer_JS *privObj)
 API to check if AAMPMediaPlayer_JS object present in cache and release it. More...
 
void parseDRMConfiguration (JSContextRef ctx, AAMPMediaPlayer_JS *privObj, JSValueRef drmConfigParam)
 Helper function to parse DRM config params received from JS. More...
 
JSValueRef AAMPMediaPlayerJS_load (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.load() More...
 
JSValueRef AAMPMediaPlayerJS_initConfig (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.initConfig() More...
 
JSValueRef AAMPMediaPlayerJS_play (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.play() More...
 
JSValueRef AAMPMediaPlayerJS_detach (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.detach() More...
 
JSValueRef AAMPMediaPlayerJS_pause (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.pause() More...
 
JSValueRef AAMPMediaPlayerJS_stop (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.stop() More...
 
JSValueRef AAMPMediaPlayerJS_seek (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.seek() More...
 
JSValueRef AAMPMediaPlayerJS_getThumbnails (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.GetThumbnails() More...
 
JSValueRef AAMPMediaPlayerJS_getAvailableThumbnailTracks (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getAvailableThumbnailTracks() More...
 
JSValueRef AAMPMediaPlayerJS_getAudioTrackInfo (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getAudioTrackInfo() More...
 
JSValueRef AAMPMediaPlayerJS_getTextTrackInfo (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getTextTrackInfo() More...
 
JSValueRef AAMPMediaPlayerJS_getPreferredAudioProperties (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getPreferredAudioProperties() More...
 
JSValueRef AAMPMediaPlayerJS_getPreferredTextProperties (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getPreferredTextProperties() More...
 
JSValueRef AAMPMediaPlayerJS_setThumbnailTrack (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setThumbnailTrack() More...
 
JSValueRef AAMPMediaPlayerJS_getCurrentState (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getCurrentState() More...
 
JSValueRef AAMPMediaPlayerJS_getDurationSec (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getDurationSec() More...
 
JSValueRef AAMPMediaPlayerJS_getCurrentPosition (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getCurrentPosition() More...
 
JSValueRef AAMPMediaPlayerJS_getVideoBitrates (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getVideoBitrates() More...
 
JSValueRef AAMPMediaPlayerJS_getManifest (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getManifest() More...
 
JSValueRef AAMPMediaPlayerJS_getAudioBitrates (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getAudioBitrates() More...
 
JSValueRef AAMPMediaPlayerJS_getCurrentVideoBitrate (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getCurrentVideoBitrate() More...
 
JSValueRef AAMPMediaPlayerJS_setVideoBitrate (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setVideoBitrate() More...
 
JSValueRef AAMPMediaPlayerJS_getCurrentAudioBitrate (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getCurrentAudioBitrate() More...
 
JSValueRef AAMPMediaPlayerJS_setAudioBitrate (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setAudioBitrate() More...
 
JSValueRef AAMPMediaPlayerJS_getAudioTrack (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getAudioTrack() More...
 
JSValueRef AAMPMediaPlayerJS_setAudioTrack (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setAudioTrack() More...
 
JSValueRef AAMPMediaPlayerJS_getTextTrack (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getTextTrack() More...
 
JSValueRef AAMPMediaPlayerJS_setTextTrack (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setTextTrack() More...
 
JSValueRef AAMPMediaPlayerJS_getVolume (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getVolume() More...
 
JSValueRef AAMPMediaPlayerJS_setVolume (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setVolume() More...
 
JSValueRef AAMPMediaPlayerJS_setAudioLanguage (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setAudioLanguage() More...
 
JSValueRef AAMPMediaPlayerJS_getPlaybackRate (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getPlaybackRate() More...
 
JSValueRef AAMPMediaPlayerJS_setPlaybackRate (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setPlaybackRate() More...
 
JSValueRef AAMPMediaPlayerJS_getSupportedKeySystems (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getSupportedKeySystems() More...
 
JSValueRef AAMPMediaPlayerJS_setVideoMute (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setVideoMute() More...
 
JSValueRef AAMPMediaPlayerJS_setSubscribedTags (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setSubscribedTags() More...
 
JSValueRef AAMPMediaPlayerJS_subscribeResponseHeaders (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.subscribeResponseHeaders() More...
 
JSValueRef AAMPMediaPlayerJS_addEventListener (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.addEventListener() More...
 
JSValueRef AAMPMediaPlayerJS_removeEventListener (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.removeEventListener() More...
 
JSValueRef AAMPMediaPlayerJS_setDRMConfig (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setDRMConfig() More...
 
JSValueRef AAMPMediaPlayerJS_addCustomHTTPHeader (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.addCustomHTTPHeader() More...
 
JSValueRef AAMPMediaPlayerJS_removeCustomHTTPHeader (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.removeCustomHTTPHeader() More...
 
JSValueRef AAMPMediaPlayerJS_setVideoRect (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setVideoRect() More...
 
JSValueRef AAMPMediaPlayerJS_setVideoZoom (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setVideoZoom() More...
 
JSValueRef AAMPMediaPlayerJS_release (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.release() More...
 
static JSValueRef AAMPMediaPlayerJS_getAvailableVideoTracks (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getAvailableVideoTracks() More...
 
JSValueRef AAMPMediaPlayerJS_setVideoTracks (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setvideoTrack() More...
 
static JSValueRef AAMPMediaPlayerJS_getAvailableAudioTracks (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getAvailableAudioTracks() More...
 
static JSValueRef AAMPMediaPlayerJS_getAvailableTextTracks (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getAvailableTextTracks() More...
 
static JSValueRef AAMPMediaPlayerJS_getVideoRectangle (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getVideoRectangle() More...
 
static JSValueRef AAMPMediaPlayerJS_setAlternateContent (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setAlternateContent() More...
 
JSValueRef AAMPMediaPlayerJS_setPreferredAudioLanguage (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setPreferredAudioLanguage() More...
 
JSValueRef AAMPMediaPlayerJS_setPreferredTextLanguage (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setPreferredAudioLanguage() More...
 
JSValueRef AAMPMediaPlayerJS_setPreferredAudioCodec (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setPreferredAudioCodec() More...
 
static JSValueRef AAMPMediaPlayerJS_notifyReservationCompletion (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.notifyReservationCompletion() More...
 
JSValueRef AAMPMediaPlayerJS_setClosedCaptionStatus (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setClosedCaptionStatus() More...
 
JSValueRef AAMPMediaPlayerJS_setTextStyleOptions (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setTextStyleOptions() More...
 
static JSValueRef AAMPMediaPlayerJS_getTextStyleOptions (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getTextStyleOptions() More...
 
JSValueRef AAMPMediaPlayerJS_disableContentRestrictions (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.disableContentRestrictions() More...
 
JSValueRef AAMPMediaPlayerJS_enableContentRestrictions (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.enableContentRestrictions() More...
 
static JSValueRef AAMPMediaPlayerJS_setAuxiliaryLanguage (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.setAuxiliaryLanguage() More...
 
static JSValueRef AAMPMediaPlayerJS_getPlayeBackStats (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.getPlayeBackStats() More...
 
JSValueRef AAMPMediaPlayerJS_xreSupportedTune (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked from JS when executing AAMPMediaPlayer.xreSupportedTune() More...
 
JSValueRef AAMPMediaPlayerJS_setContentProtectionDataConfig (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to set update content protection data value on key rotation. More...
 
static JSValueRef AAMPMediaPlayerJS_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 AAMPMediaPlayerJS_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...
 
JSValueRef AAMPMediaPlayerJS_isOOBCCRenderingSupported (JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 Callback invoked from JS to check subtec CC mode is supported or not. More...
 
JSValueRef AAMPMediaPlayerJS_getProperty_Version (JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef *exception)
 API invoked from JS when reading value of AAMPMediaPlayer.version. More...
 
void AAMPMediaPlayer_JS_finalize (JSObjectRef object)
 API invoked from JS when an object of AAMPMediaPlayerJS is destroyed. More...
 
static JSClassRef AAMPMediaPlayer_object_ref ()
 Creates a JavaScript class of AAMPMediaPlayer object for use with JSObjectMake. More...
 
JSObjectRef AAMPMediaPlayer_JS_class_constructor (JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
 API invoked when AAMPMediaPlayer is used along with 'new'. More...
 
void ClearAAMPPlayerInstances (void)
 Clear any remaining/active AAMPPlayer instances.
 
void AAMPPlayer_LoadJS (void *context)
 Loads AAMPMediaPlayer JS constructor into JS context. More...
 
void AAMPPlayer_UnloadJS (void *context)
 Removes the AAMPMediaPlayer constructor from JS context. More...
 

Variables

static ConfigParamMap relockConditionParamNames []
 Map relockConditionParamNames and its string equivalent. More...
 
static pthread_mutex_t jsMediaPlayerCacheMutex = PTHREAD_MUTEX_INITIALIZER
 Mutex for global cache of AAMPMediaPlayer_JS instances.
 
static const JSStaticFunction AAMPMediaPlayer_JS_static_functions []
 Array containing the AAMPMediaPlayer's statically declared functions.
 
static const JSStaticValue AAMPMediaPlayer_JS_static_values []
 Array containing the AAMPMediaPlayer's statically declared value properties. More...
 
static JSClassDefinition AAMPMediaPlayer_JS_object_def
 Object declaration of AAMPMediaPlayer JS object. More...
 
static JSClassDefinition AAMPMediaPlayer_JS_class_def
 Class declaration of AAMPMediaPlayer JS object. More...
 

yes

JavaScript bindings for AAMPMediaPlayer.

Definition in file jsmediaplayer.cpp.


Data Structure Documentation

◆ ConfigParamMap

struct ConfigParamMap

Data structure to map ConfigParamType and its string equivalent.

Definition at line 164 of file jsmediaplayer.cpp.

Collaboration diagram for ConfigParamMap:
Collaboration graph
Data Fields
ConfigParamType paramType
const char * paramName

Function Documentation

◆ 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.

◆ ParseJSPropAsNumber()

bool ParseJSPropAsNumber ( JSContextRef  ctx,
JSObjectRef  jsObject,
const char *  prop,
double &  value 
)

Helper function to parse a JS property value as number.

Parameters
[in]ctxJS execution context
[in]jsObjectJS object whose property has to be parsed
[in]propproperty name
[out]valueto store parsed number return true if value was parsed sucessfully, false otherwise

Definition at line 196 of file jsmediaplayer.cpp.

◆ ParseJSPropAsString()

bool ParseJSPropAsString ( JSContextRef  ctx,
JSObjectRef  jsObject,
const char *  prop,
char *&  value 
)

Helper function to parse a JS property value as string.

Parameters
[in]ctxJS execution context
[in]jsObjectJS object whose property has to be parsed
[in]propproperty name
[out]valueto store parsed string return true if value was parsed sucessfully, false otherwise

Definition at line 226 of file jsmediaplayer.cpp.

◆ ParseJSPropAsObject()

bool ParseJSPropAsObject ( JSContextRef  ctx,
JSObjectRef  jsObject,
const char *  prop,
JSValueRef &  value 
)

Helper function to parse a JS property value as object.

Parameters
[in]ctxJS execution context
[in]jsObjectJS object whose property has to be parsed
[in]propproperty name
[out]valueto store parsed value return true if value was parsed sucessfully, false otherwise

Definition at line 255 of file jsmediaplayer.cpp.

◆ ParseJSPropAsBoolean()

bool ParseJSPropAsBoolean ( JSContextRef  ctx,
JSObjectRef  jsObject,
const char *  prop,
bool &  value 
)

Helper function to parse a JS property value as boolean.

Parameters
[in]ctxJS execution context
[in]jsObjectJS object whose property has to be parsed
[in]propproperty name
[out]valueto store parsed value return true if value was parsed sucessfully, false otherwise

Definition at line 284 of file jsmediaplayer.cpp.

◆ releaseNativeResources()

static void releaseNativeResources ( AAMPMediaPlayer_JS privObj)
static

API to release internal resources of an AAMPMediaPlayerJS object NOTE that this function does NOT free AAMPMediaPlayer_JS It is done in AAMPMediaPlayerJS_release ( APP initiated ) or AAMPMediaPlayer_JS_finalize ( GC initiated)

Parameters
[in]objectAAMPMediaPlayerJS object being released

Definition at line 310 of file jsmediaplayer.cpp.

◆ findInGlobalCacheAndRelease()

static bool findInGlobalCacheAndRelease ( AAMPMediaPlayer_JS privObj)
static

API to check if AAMPMediaPlayer_JS object present in cache and release it.

Parameters
[in]objectAAMPMediaPlayerJS object
Returns
true if instance was found and native resources released, false otherwise

Definition at line 340 of file jsmediaplayer.cpp.

◆ parseDRMConfiguration()

void parseDRMConfiguration ( JSContextRef  ctx,
AAMPMediaPlayer_JS privObj,
JSValueRef  drmConfigParam 
)

Helper function to parse DRM config params received from JS.

Parameters
[in]ctxJS execution context
[in]privObjAAMPMediaPlayer instance to set the drm configuration
[in]drmConfigParamparameters received as argument

Definition at line 376 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_load()

JSValueRef AAMPMediaPlayerJS_load ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.load()

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 460 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_initConfig()

JSValueRef AAMPMediaPlayerJS_initConfig ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.initConfig()

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 560 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_play()

JSValueRef AAMPMediaPlayerJS_play ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.play()

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 628 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_detach()

JSValueRef AAMPMediaPlayerJS_detach ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.detach()

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 656 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_pause()

JSValueRef AAMPMediaPlayerJS_pause ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.pause()

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 683 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_stop()

JSValueRef AAMPMediaPlayerJS_stop ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.stop()

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 727 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_seek()

JSValueRef AAMPMediaPlayerJS_seek ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.seek()

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 754 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getThumbnails()

JSValueRef AAMPMediaPlayerJS_getThumbnails ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.GetThumbnails()

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 793 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getAvailableThumbnailTracks()

JSValueRef AAMPMediaPlayerJS_getAvailableThumbnailTracks ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getAvailableThumbnailTracks()

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 851 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getAudioTrackInfo()

JSValueRef AAMPMediaPlayerJS_getAudioTrackInfo ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getAudioTrackInfo()

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 888 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getTextTrackInfo()

JSValueRef AAMPMediaPlayerJS_getTextTrackInfo ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getTextTrackInfo()

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 923 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getPreferredAudioProperties()

JSValueRef AAMPMediaPlayerJS_getPreferredAudioProperties ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getPreferredAudioProperties()

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 957 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getPreferredTextProperties()

JSValueRef AAMPMediaPlayerJS_getPreferredTextProperties ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getPreferredTextProperties()

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 992 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setThumbnailTrack()

JSValueRef AAMPMediaPlayerJS_setThumbnailTrack ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setThumbnailTrack()

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 1026 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getCurrentState()

JSValueRef AAMPMediaPlayerJS_getCurrentState ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getCurrentState()

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 1070 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getDurationSec()

JSValueRef AAMPMediaPlayerJS_getDurationSec ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getDurationSec()

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 1096 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getCurrentPosition()

JSValueRef AAMPMediaPlayerJS_getCurrentPosition ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getCurrentPosition()

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 1129 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getVideoBitrates()

JSValueRef AAMPMediaPlayerJS_getVideoBitrates ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getVideoBitrates()

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 1162 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getManifest()

JSValueRef AAMPMediaPlayerJS_getManifest ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getManifest()

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 1205 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getAudioBitrates()

JSValueRef AAMPMediaPlayerJS_getAudioBitrates ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getAudioBitrates()

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 1238 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getCurrentVideoBitrate()

JSValueRef AAMPMediaPlayerJS_getCurrentVideoBitrate ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getCurrentVideoBitrate()

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 1283 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setVideoBitrate()

JSValueRef AAMPMediaPlayerJS_setVideoBitrate ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setVideoBitrate()

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 1309 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getCurrentAudioBitrate()

JSValueRef AAMPMediaPlayerJS_getCurrentAudioBitrate ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getCurrentAudioBitrate()

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 1355 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setAudioBitrate()

JSValueRef AAMPMediaPlayerJS_setAudioBitrate ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setAudioBitrate()

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 1381 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getAudioTrack()

JSValueRef AAMPMediaPlayerJS_getAudioTrack ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getAudioTrack()

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 1426 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setAudioTrack()

JSValueRef AAMPMediaPlayerJS_setAudioTrack ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setAudioTrack()

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 1452 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getTextTrack()

JSValueRef AAMPMediaPlayerJS_getTextTrack ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getTextTrack()

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 1586 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setTextTrack()

JSValueRef AAMPMediaPlayerJS_setTextTrack ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setTextTrack()

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 1612 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getVolume()

JSValueRef AAMPMediaPlayerJS_getVolume ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getVolume()

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 1665 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setVolume()

JSValueRef AAMPMediaPlayerJS_setVolume ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setVolume()

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 1692 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setAudioLanguage()

JSValueRef AAMPMediaPlayerJS_setAudioLanguage ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setAudioLanguage()

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 1743 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getPlaybackRate()

JSValueRef AAMPMediaPlayerJS_getPlaybackRate ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getPlaybackRate()

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 1782 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setPlaybackRate()

JSValueRef AAMPMediaPlayerJS_setPlaybackRate ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setPlaybackRate()

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 1808 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getSupportedKeySystems()

JSValueRef AAMPMediaPlayerJS_getSupportedKeySystems ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.getSupportedKeySystems()

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 1852 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setVideoMute()

JSValueRef AAMPMediaPlayerJS_setVideoMute ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setVideoMute()

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 1878 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setSubscribedTags()

JSValueRef AAMPMediaPlayerJS_setSubscribedTags ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setSubscribedTags()

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 1917 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_subscribeResponseHeaders()

JSValueRef AAMPMediaPlayerJS_subscribeResponseHeaders ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.subscribeResponseHeaders()

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 1959 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_addEventListener()

JSValueRef AAMPMediaPlayerJS_addEventListener ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.addEventListener()

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 2001 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_removeEventListener()

JSValueRef AAMPMediaPlayerJS_removeEventListener ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.removeEventListener()

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 2057 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setDRMConfig()

JSValueRef AAMPMediaPlayerJS_setDRMConfig ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setDRMConfig()

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 2113 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_addCustomHTTPHeader()

JSValueRef AAMPMediaPlayerJS_addCustomHTTPHeader ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.addCustomHTTPHeader()

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 2151 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_removeCustomHTTPHeader()

JSValueRef AAMPMediaPlayerJS_removeCustomHTTPHeader ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.removeCustomHTTPHeader()

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 2219 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setVideoRect()

JSValueRef AAMPMediaPlayerJS_setVideoRect ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setVideoRect()

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 2258 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setVideoZoom()

JSValueRef AAMPMediaPlayerJS_setVideoZoom ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setVideoZoom()

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 2300 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_release()

JSValueRef AAMPMediaPlayerJS_release ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.release()

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 2347 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getAvailableVideoTracks()

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

API invoked from JS when executing AAMPMediaPlayer.getAvailableVideoTracks()

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 2390 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setVideoTracks()

JSValueRef AAMPMediaPlayerJS_setVideoTracks ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setvideoTrack()

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 2423 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getAvailableAudioTracks()

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

API invoked from JS when executing AAMPMediaPlayer.getAvailableAudioTracks()

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 2455 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getAvailableTextTracks()

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

API invoked from JS when executing AAMPMediaPlayer.getAvailableTextTracks()

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 2494 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getVideoRectangle()

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

API invoked from JS when executing AAMPMediaPlayer.getVideoRectangle()

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 2533 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setAlternateContent()

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

API invoked from JS when executing AAMPMediaPlayer.setAlternateContent()

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 2560 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setPreferredAudioLanguage()

JSValueRef AAMPMediaPlayerJS_setPreferredAudioLanguage ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setPreferredAudioLanguage()

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 2685 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setPreferredTextLanguage()

JSValueRef AAMPMediaPlayerJS_setPreferredTextLanguage ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setPreferredAudioLanguage()

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 2742 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setPreferredAudioCodec()

JSValueRef AAMPMediaPlayerJS_setPreferredAudioCodec ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setPreferredAudioCodec()

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 2779 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_notifyReservationCompletion()

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

API invoked from JS when executing AAMPMediaPlayer.notifyReservationCompletion()

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 2817 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setClosedCaptionStatus()

JSValueRef AAMPMediaPlayerJS_setClosedCaptionStatus ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setClosedCaptionStatus()

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 2857 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setTextStyleOptions()

JSValueRef AAMPMediaPlayerJS_setTextStyleOptions ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.setTextStyleOptions()

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 2895 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getTextStyleOptions()

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

API invoked from JS when executing AAMPMediaPlayer.getTextStyleOptions()

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 2941 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_disableContentRestrictions()

JSValueRef AAMPMediaPlayerJS_disableContentRestrictions ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.disableContentRestrictions()

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 2974 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_enableContentRestrictions()

JSValueRef AAMPMediaPlayerJS_enableContentRestrictions ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.enableContentRestrictions()

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 3073 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setAuxiliaryLanguage()

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

API invoked from JS when executing AAMPMediaPlayer.setAuxiliaryLanguage()

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 3100 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getPlayeBackStats()

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

API invoked from JS when executing AAMPMediaPlayer.getPlayeBackStats()

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 3136 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_xreSupportedTune()

JSValueRef AAMPMediaPlayerJS_xreSupportedTune ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked from JS when executing AAMPMediaPlayer.xreSupportedTune()

**

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 3161 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setContentProtectionDataConfig()

JSValueRef AAMPMediaPlayerJS_setContentProtectionDataConfig ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

Callback invoked from JS to set 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 3198 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setContentProtectionDataUpdateTimeout()

static JSValueRef AAMPMediaPlayerJS_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 3236 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_setRuntimeDRMConfig()

static JSValueRef AAMPMediaPlayerJS_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 3274 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_isOOBCCRenderingSupported()

JSValueRef AAMPMediaPlayerJS_isOOBCCRenderingSupported ( JSContextRef  ctx,
JSObjectRef  function,
JSObjectRef  thisObject,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

Callback invoked from JS to check subtec CC mode is supported or not.

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 3311 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayerJS_getProperty_Version()

JSValueRef AAMPMediaPlayerJS_getProperty_Version ( JSContextRef  ctx,
JSObjectRef  object,
JSStringRef  propertyName,
JSValueRef *  exception 
)

API invoked from JS when reading value of AAMPMediaPlayer.version.

Parameters
[in]ctxJS execution context
[in]objectJSObject 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 3413 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayer_JS_finalize()

void AAMPMediaPlayer_JS_finalize ( JSObjectRef  object)

API invoked from JS when an object of AAMPMediaPlayerJS is destroyed.

Parameters
[in]objectJSObject being finalized

Definition at line 3440 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayer_object_ref()

static JSClassRef AAMPMediaPlayer_object_ref ( )
static

Creates a JavaScript class of AAMPMediaPlayer object for use with JSObjectMake.

Return values
singletoninstance of JavaScript class created

Definition at line 3503 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayer_JS_class_constructor()

JSObjectRef AAMPMediaPlayer_JS_class_constructor ( JSContextRef  ctx,
JSObjectRef  constructor,
size_t  argumentCount,
const JSValueRef  arguments[],
JSValueRef *  exception 
)

API invoked when AAMPMediaPlayer 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]exceptionpointer to a JSValueRef in which to return an exception, if any
Return values
JSObjectthat is the constructor's return value

Definition at line 3521 of file jsmediaplayer.cpp.

◆ AAMPPlayer_LoadJS()

void AAMPPlayer_LoadJS ( void *  context)

Loads AAMPMediaPlayer JS constructor into JS context.

Parameters
[in]contextJS execution context

Definition at line 3877 of file jsmediaplayer.cpp.

◆ AAMPPlayer_UnloadJS()

void AAMPPlayer_UnloadJS ( void *  context)

Removes the AAMPMediaPlayer constructor from JS context.

Parameters
[in]contextJS execution context

Definition at line 3906 of file jsmediaplayer.cpp.

Variable Documentation

◆ relockConditionParamNames

ConfigParamMap relockConditionParamNames[]
static
Initial value:
=
{
{ ePARAM_RELOCKONTIMEOUT, "time" },
{ ePARAM_RELOCKONPROGRAMCHANGE, "programChange" },
{ ePARAM_MAX_COUNT, "" }
}

Map relockConditionParamNames and its string equivalent.

Definition at line 173 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayer_JS_static_values

const JSStaticValue AAMPMediaPlayer_JS_static_values[]
static
Initial value:
= {
{ "version", AAMPMediaPlayerJS_getProperty_Version, NULL, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly },
{ NULL, NULL, NULL, 0 }
}

Array containing the AAMPMediaPlayer's statically declared value properties.

Definition at line 3430 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayer_JS_object_def

JSClassDefinition AAMPMediaPlayer_JS_object_def
static
Initial value:
{
0,
kJSClassAttributeNone,
"__AAMPMediaPlayer",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}

Object declaration of AAMPMediaPlayer JS object.

Definition at line 3476 of file jsmediaplayer.cpp.

◆ AAMPMediaPlayer_JS_class_def

JSClassDefinition AAMPMediaPlayer_JS_class_def
static
Initial value:
{
0,
kJSClassAttributeNone,
"__AAMPMediaPlayer__class",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}

Class declaration of AAMPMediaPlayer JS object.

Definition at line 3588 of file jsmediaplayer.cpp.

AAMPMediaPlayer_JS_static_functions
static const JSStaticFunction AAMPMediaPlayer_JS_static_functions[]
Array containing the AAMPMediaPlayer's statically declared functions.
Definition: jsmediaplayer.cpp:3332
AAMPMediaPlayerJS_getProperty_Version
JSValueRef AAMPMediaPlayerJS_getProperty_Version(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef *exception)
API invoked from JS when reading value of AAMPMediaPlayer.version.
Definition: jsmediaplayer.cpp:3413
AAMPMediaPlayer_JS_class_constructor
JSObjectRef AAMPMediaPlayer_JS_class_constructor(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception)
API invoked when AAMPMediaPlayer is used along with 'new'.
Definition: jsmediaplayer.cpp:3521
AAMPMediaPlayer_JS_static_values
static const JSStaticValue AAMPMediaPlayer_JS_static_values[]
Array containing the AAMPMediaPlayer's statically declared value properties.
Definition: jsmediaplayer.cpp:3430
AAMPMediaPlayer_JS_finalize
void AAMPMediaPlayer_JS_finalize(JSObjectRef object)
API invoked from JS when an object of AAMPMediaPlayerJS is destroyed.
Definition: jsmediaplayer.cpp:3440