RDK Documentation (Open Sourced RDK Components)
|
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>
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... | |
JavaScript bindings for AAMPMediaPlayer.
Definition in file jsmediaplayer.cpp.
struct ConfigParamMap |
Data structure to map ConfigParamType and its string equivalent.
Definition at line 164 of file jsmediaplayer.cpp.
Data Fields | ||
---|---|---|
ConfigParamType | paramType | |
const char * | paramName |
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.
bool ParseJSPropAsNumber | ( | JSContextRef | ctx, |
JSObjectRef | jsObject, | ||
const char * | prop, | ||
double & | value | ||
) |
Helper function to parse a JS property value as number.
[in] | ctx | JS execution context |
[in] | jsObject | JS object whose property has to be parsed |
[in] | prop | property name |
[out] | value | to store parsed number return true if value was parsed sucessfully, false otherwise |
Definition at line 196 of file jsmediaplayer.cpp.
bool ParseJSPropAsString | ( | JSContextRef | ctx, |
JSObjectRef | jsObject, | ||
const char * | prop, | ||
char *& | value | ||
) |
Helper function to parse a JS property value as string.
[in] | ctx | JS execution context |
[in] | jsObject | JS object whose property has to be parsed |
[in] | prop | property name |
[out] | value | to store parsed string return true if value was parsed sucessfully, false otherwise |
Definition at line 226 of file jsmediaplayer.cpp.
bool ParseJSPropAsObject | ( | JSContextRef | ctx, |
JSObjectRef | jsObject, | ||
const char * | prop, | ||
JSValueRef & | value | ||
) |
Helper function to parse a JS property value as object.
[in] | ctx | JS execution context |
[in] | jsObject | JS object whose property has to be parsed |
[in] | prop | property name |
[out] | value | to store parsed value return true if value was parsed sucessfully, false otherwise |
Definition at line 255 of file jsmediaplayer.cpp.
bool ParseJSPropAsBoolean | ( | JSContextRef | ctx, |
JSObjectRef | jsObject, | ||
const char * | prop, | ||
bool & | value | ||
) |
Helper function to parse a JS property value as boolean.
[in] | ctx | JS execution context |
[in] | jsObject | JS object whose property has to be parsed |
[in] | prop | property name |
[out] | value | to store parsed value return true if value was parsed sucessfully, false otherwise |
Definition at line 284 of file jsmediaplayer.cpp.
|
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)
[in] | object | AAMPMediaPlayerJS object being released |
Definition at line 310 of file jsmediaplayer.cpp.
|
static |
API to check if AAMPMediaPlayer_JS object present in cache and release it.
[in] | object | AAMPMediaPlayerJS object |
Definition at line 340 of file jsmediaplayer.cpp.
void parseDRMConfiguration | ( | JSContextRef | ctx, |
AAMPMediaPlayer_JS * | privObj, | ||
JSValueRef | drmConfigParam | ||
) |
Helper function to parse DRM config params received from JS.
[in] | ctx | JS execution context |
[in] | privObj | AAMPMediaPlayer instance to set the drm configuration |
[in] | drmConfigParam | parameters received as argument |
Definition at line 376 of file jsmediaplayer.cpp.
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()
[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 460 of file jsmediaplayer.cpp.
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()
[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 560 of file jsmediaplayer.cpp.
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()
[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 628 of file jsmediaplayer.cpp.
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()
[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 656 of file jsmediaplayer.cpp.
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()
[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 683 of file jsmediaplayer.cpp.
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()
[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 727 of file jsmediaplayer.cpp.
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()
[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 754 of file jsmediaplayer.cpp.
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()
[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 793 of file jsmediaplayer.cpp.
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()
[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 851 of file jsmediaplayer.cpp.
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()
[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 888 of file jsmediaplayer.cpp.
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()
[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 923 of file jsmediaplayer.cpp.
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()
[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 957 of file jsmediaplayer.cpp.
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()
[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 992 of file jsmediaplayer.cpp.
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()
[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 1026 of file jsmediaplayer.cpp.
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()
[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 1070 of file jsmediaplayer.cpp.
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()
[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 1096 of file jsmediaplayer.cpp.
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()
[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 1129 of file jsmediaplayer.cpp.
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()
[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 1162 of file jsmediaplayer.cpp.
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()
[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 1205 of file jsmediaplayer.cpp.
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()
[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 1238 of file jsmediaplayer.cpp.
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()
[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 1283 of file jsmediaplayer.cpp.
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()
[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 1309 of file jsmediaplayer.cpp.
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()
[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 1355 of file jsmediaplayer.cpp.
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()
[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 1381 of file jsmediaplayer.cpp.
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()
[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 1426 of file jsmediaplayer.cpp.
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()
[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 1452 of file jsmediaplayer.cpp.
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()
[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 1586 of file jsmediaplayer.cpp.
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()
[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 1612 of file jsmediaplayer.cpp.
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()
[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 1665 of file jsmediaplayer.cpp.
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()
[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 1692 of file jsmediaplayer.cpp.
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()
[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 1743 of file jsmediaplayer.cpp.
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()
[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 1782 of file jsmediaplayer.cpp.
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()
[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 1808 of file jsmediaplayer.cpp.
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()
[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 1852 of file jsmediaplayer.cpp.
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()
[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 1878 of file jsmediaplayer.cpp.
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()
[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 1917 of file jsmediaplayer.cpp.
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()
[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 1959 of file jsmediaplayer.cpp.
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()
[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 2001 of file jsmediaplayer.cpp.
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()
[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 2057 of file jsmediaplayer.cpp.
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()
[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 2113 of file jsmediaplayer.cpp.
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()
[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 2151 of file jsmediaplayer.cpp.
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()
[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 2219 of file jsmediaplayer.cpp.
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()
[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 2258 of file jsmediaplayer.cpp.
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()
[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 2300 of file jsmediaplayer.cpp.
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()
[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 2347 of file jsmediaplayer.cpp.
|
static |
API invoked from JS when executing AAMPMediaPlayer.getAvailableVideoTracks()
[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 2390 of file jsmediaplayer.cpp.
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()
[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 2423 of file jsmediaplayer.cpp.
|
static |
API invoked from JS when executing AAMPMediaPlayer.getAvailableAudioTracks()
[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 2455 of file jsmediaplayer.cpp.
|
static |
API invoked from JS when executing AAMPMediaPlayer.getAvailableTextTracks()
[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 2494 of file jsmediaplayer.cpp.
|
static |
API invoked from JS when executing AAMPMediaPlayer.getVideoRectangle()
[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 2533 of file jsmediaplayer.cpp.
|
static |
API invoked from JS when executing AAMPMediaPlayer.setAlternateContent()
[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 2560 of file jsmediaplayer.cpp.
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()
[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 2685 of file jsmediaplayer.cpp.
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()
[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 2742 of file jsmediaplayer.cpp.
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()
[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 2779 of file jsmediaplayer.cpp.
|
static |
API invoked from JS when executing AAMPMediaPlayer.notifyReservationCompletion()
[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 2817 of file jsmediaplayer.cpp.
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()
[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 2857 of file jsmediaplayer.cpp.
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()
[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 2895 of file jsmediaplayer.cpp.
|
static |
API invoked from JS when executing AAMPMediaPlayer.getTextStyleOptions()
[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 2941 of file jsmediaplayer.cpp.
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()
[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 2974 of file jsmediaplayer.cpp.
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()
[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 3073 of file jsmediaplayer.cpp.
|
static |
API invoked from JS when executing AAMPMediaPlayer.setAuxiliaryLanguage()
[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 3100 of file jsmediaplayer.cpp.
|
static |
API invoked from JS when executing AAMPMediaPlayer.getPlayeBackStats()
[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 3136 of file jsmediaplayer.cpp.
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()
**
[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 3161 of file jsmediaplayer.cpp.
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.
[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 3198 of file jsmediaplayer.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 3236 of file jsmediaplayer.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 3274 of file jsmediaplayer.cpp.
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.
[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 3311 of file jsmediaplayer.cpp.
JSValueRef AAMPMediaPlayerJS_getProperty_Version | ( | JSContextRef | ctx, |
JSObjectRef | object, | ||
JSStringRef | propertyName, | ||
JSValueRef * | exception | ||
) |
API invoked from JS when reading value of AAMPMediaPlayer.version.
[in] | ctx | JS execution context |
[in] | object | 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 3413 of file jsmediaplayer.cpp.
void AAMPMediaPlayer_JS_finalize | ( | JSObjectRef | object | ) |
API invoked from JS when an object of AAMPMediaPlayerJS is destroyed.
[in] | object | JSObject being finalized |
Definition at line 3440 of file jsmediaplayer.cpp.
|
static |
Creates a JavaScript class of AAMPMediaPlayer object for use with JSObjectMake.
singleton | instance of JavaScript class created |
Definition at line 3503 of file jsmediaplayer.cpp.
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'.
[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] | exception | pointer to a JSValueRef in which to return an exception, if any |
JSObject | that is the constructor's return value |
Definition at line 3521 of file jsmediaplayer.cpp.
void AAMPPlayer_LoadJS | ( | void * | context | ) |
Loads AAMPMediaPlayer JS constructor into JS context.
[in] | context | JS execution context |
Definition at line 3877 of file jsmediaplayer.cpp.
void AAMPPlayer_UnloadJS | ( | void * | context | ) |
Removes the AAMPMediaPlayer constructor from JS context.
[in] | context | JS execution context |
Definition at line 3906 of file jsmediaplayer.cpp.
|
static |
Map relockConditionParamNames and its string equivalent.
Definition at line 173 of file jsmediaplayer.cpp.
|
static |
Array containing the AAMPMediaPlayer's statically declared value properties.
Definition at line 3430 of file jsmediaplayer.cpp.
|
static |
Object declaration of AAMPMediaPlayer JS object.
Definition at line 3476 of file jsmediaplayer.cpp.
|
static |
Class declaration of AAMPMediaPlayer JS object.
Definition at line 3588 of file jsmediaplayer.cpp.