That's how I did it initially. I then changed it to be like so:mediaItem.loadAssetID = getFPSAssetId; mediaItem.loadCertficate = getCertificate; mediaItem.loadKey = getFPSKey; where getFPSAssetId, getCertificate, getFPSKey are defined at the top of the JS page like so: function getFPSAssetId(uri, callback) { console.log(===== HERE === ); var assetID = fpsMgr.assetIDFromURI(uri); if (assetID != null) { console.log(======= [FPS] =============== [FPS]: Successfully parsed asset ID: + assetID); callback(assetID); } else { console.log(=============== [FPS]: Error parsing asset ID from URI: + uri); callback(null, Error parsing asset ID from URI: + uri); } }; function getCertificate(uri, callback) { console.log(==== Getting the certificate); var certUrl = fpsMgr.getFPSCertURL(); SkyChnlApi.debugLog(======= [FPS] certUrl: + certUrl); http.apiRequest(certUrl, GET, true, , function(certRequest) { if (certRequest.status == 200) { console.log(Received cer
Topic:
App & System Services
SubTopic:
General
Tags: