javascript - Setting HTTP Header for DRM license server authentication with Tizen AVPlay -
i using avplay play drm contents. need set http header license url. how can it?
webapis.avplay.setdrm('playready', 'setproperties', angular.tojson({ licenseserver:entitlementdata.licenseurl, 'x-axdrm-message':entitlementdata.drmtoken }));
i need set x-axdrm-message
in http header
as may know, angular.tojson() , json.stringify() have significant difference.
difference between tojson() , json.stringify()
by checking out code example on api reference, seems json.stringify() should used.
http://developer.samsung.com/tv/develop/api-references/samsung-product-api-references/avplay-api
var drmparam = new object(); drmparam.licenseserver = "http://license.company.com"; drmparam.customdata = "mycustom"; playerobj.setdrm("playready", "setproperties", json.stringify(drmparam));
you may try format on source code.
in addition, document contains discussion on http header, though apple tvos may of use guess.
Comments
Post a Comment